Brian Quirk wrote:
Hi,If you want to put all your classes in a jar, you may want to just user the <jar> task.
I'd like to Jar all the classes (and dependent classes) in a package
without listing each class via the <class> element:
<genjar jarfile="Bar.jar">
<class name="com.foo.bar.class1"/>
<class name="com.foo.bar.class2"/>
<class name="com.foo.bar.class3"/>
</genjar>
Does anyone if its possible to replace the collective <class> elements with
something that would pull in the entire package?
Thanks,
Brian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
genjar is great when bundling the minimum you need for your jar.
Example: com.foo.bar.class3 uses com.foo.bar.class2 and com.foo.bar.class1
then you can just specify
<genjar jarfile="Bar.jar">
<class name="com.foo.bar.class3"/>
</genjar>
If you used the <jar> task to create a jar of common utilities, and then used genjar to create your deployed application, you can always include an entire jar with the library tag.
<genjar jarfile="Bar.jar">
<class name="com.foo.bar.class3"/>
<library jar="${common.lib}" />
</genjar>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]