David Garnier <[EMAIL PROTECTED]> wrote on 12/09/2002 
06:12:32 PM:

> First, could you give us an example of the a <jarResource> that would
> include all the non-source files present in the src directory in the
> target/classes directory ? 
Sure.

In project.xml specify:

    <resources>
      <includes>
        <include>**</include>
      </includes>
      <excludes>
        <exclude>**/*.java</exclude>
      </excludes>
    </resources>
 
> Second, java:jar-resources doesn't seems to be called from any task (in
> b6). Is it called automatically if a jarResource is present? I guess it
> should be called from java:compile. I am not packaging my app as a Jar,
> so putting it in java:jar won't cut it.

It *should* be called from the war task in b6, but it isn't. It is in the 
current development tree.
As a preGoal on war:build-war you could <attainGoal 
name="java:jar-resources" />, e.g. in your maven.xml, under the project 
tag:

<preGoal name="war:build-war">
  <attainGoal name="java:jar-resources" />
</preGoal>

Alternatively, you could upgrade to a later version of the war plugin.

> Best regards,
> David Garnier
--
dIon Gillard, Multitask Consulting
Work:      http://www.multitask.com.au
Developers: http://adslgateway.multitask.com.au/developers




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

Reply via email to