On 4/27/06, Sean McNamara <[EMAIL PROTECTED]> wrote:

> I'm sure this is documented somewhere, but I could really use a quick answer: 
>  What needs to be done in order to package a directory of source code inside 
> a jar?

Treat it like any other resource you want to include:

        <resources>
            <resource>
                <directory>src/main/java</directory>
            </resource>
            ...
       </resources>

If you wanted it to appear in a 'src' directory rather than mixed in
with the .class files, you could add <targetPath>src/</targetPath> to
the <resource>.

If you also have files in the usual place, src/main/resources, I think
you'll have to explicitly add them since you're overriding the
<resources> element:

             <resource>
                <directory>src/main/resources</directory>
            </resource>

HTH,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to