ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Quirk" <>
Subject Re: Quick GenJar Question
Date Wed, 29 Jan 2003 19:03:08 GMT

Thank you for your quick response. However, I believe using <classfilter>
still requires me to list each class using <class> or else class1, class2,
and class3 would not be pulled into the jar.

The <library dir="${build.dir}/com/foo/bar/> element almost does the trick
but I get too much path information in my jar (c:/source/com/foo/bar) or
all path information is stripped ( when used as <library dir="
${build.dir}/com/foo/bar/*" ).

I'm new to Ant and curious how users are typically jaring up their files.
We currently use JBuilder 6 and like the option it provides to include
dependent classes and resources in jar files. However, we want to move
completely to Ant and are just trying to determine the best way to JAR are
files (We love the ejbjar task and its use of bcel).  Are most users using
the core jar task and determining dependent classes manually (not through
the likes of bcel or genjar)? If so, great, we just need to move in that

Thanks for your time.

                      Levy-Lambert"            To:       "Ant Users List" <>
                      <levylambert@tisc        cc:                                    
            >              Subject:  Re: Quick GenJar Question    
                      01/29/2003 01:06                                                   
                      Please respond to                                                  
                      "Ant Users List"                                                   

I have had a look for you in the doc of Genjar on SourceForge,
it looks like you can use this type of construct
  <exclude name="org.apache." />  <!-- exclude the entire apache package
space -->
  <include name="" /> <!-- but include Ant

----- Original Message -----
From: "Brian Quirk" <>
To: <>
Sent: Wednesday, January 29, 2003 6:53 PM
Subject: Quick GenJar Question

> Hi,
> 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=""/>
>           <class name=""/>
>           <class name=""/>
> </genjar>
> Does anyone if its possible to replace the collective <class> elements
> something that would pull in the entire package?
> Thanks,
> Brian
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message