Hi all,

I'm currently building a plugin for generating source code using SableCC
(http://sourceforge.net/projects/sablecc-plugin). I did manage to get m2
to add the sources to the compilation classpath, but I haven't been able
to add a couple of resource files (also generated by the plugin) to the
jar file. So I have this:

    project.addCompileSourceRoot(targetDir.getAbsolutePath());
    Resource resource = new Resource();
    resource.setDirectory(targetDir.getAbsolutePath());
    ArrayList patterns = new ArrayList();
    patterns.add("**/*.dat");
    resource.setIncludes(patterns);
    project.getBuild().addResource(resource);

And the first line successfully adds the targetDir to the compilation
classpath, but the remainder of the snippet doesn't seem to have any
effect at all. 

Any clues?

Thanks,

Wilfred

-- 
_________________________________________________________________
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]

Reply via email to