Hi Jason, I'm creating an [m2] SableCC plug-in. SableCC generates both Java sources and a couple of other data files. (Like data for the lexical analyzer's finite state machine.)
The plug-in that I created will be called at the 'generate-sources' stage. The plug-in will add the directory containing the generated sources to the list of directories to be included in compilation. That means that (as a user of the plug-in) I don't need to be aware of anything at all: SableCC provides a clear separation between the parser and behavior associated to it for a particular application of the parser. That means that the jar file that is getting generated from a simple invocation of SableCC is a reusable component in its own right. (Unlike Antlr.) It's just a little bit odd that developers that are using the SableCC plug-in would need to be aware of the different files that are being generated only because of some resources that still need to be included 'manually'. Cheers, Wilfred On Wed, 2005-07-06 at 15:00, Jason van Zyl wrote: > On Wed, 2005-07-06 at 14:36 +0200, Wilfred Springer wrote: > > Does anybody know if it is possible to add resources to a POM > > automatically within my plugin? > > > > I'm looking for something like this: > > > > compileSourceRoots.add(....) > > > > - but then for resources. > > That sounds like a reasonable request, what's your particular use case? -- _________________________________________________________________ Wilfred Springer Phone : +31 (0)3 3451 5736 Software Architect Mobile : +31 (0)6 2295 7321 Client Solutions Fax : +31 (0)3 3451 5734 Enterprise Web Services Mail : [EMAIL PROTECTED] Sun Microsystems Netherlands AIM : wilfred springer http://blogs.sun.com/wilfred/ NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
