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
direction.

Thanks for your time.
Brian





                                                                                       
                                                
                      "Antoine                                                         
                                                
                      Levy-Lambert"            To:       "Ant Users List" 
<[EMAIL PROTECTED]>                                
                      <levylambert@tisc        cc:                                     
                                                
                      ali-dsl.de>              Subject:  Re: Quick GenJar Question     
                                                
                                                                                       
                                                
                      01/29/2003 01:06                                                 
                                                
                      PM                                                               
                                                
                      Please respond to                                                
                                                
                      "Ant Users List"                                                 
                                                
                                                                                       
                                                
                                                                                       
                                                




I have had a look for you in the doc of Genjar on SourceForge,
http://genjar.sourceforge.net/manual.html#classfilter
it looks like you can use this type of construct
<classfilter>
  <exclude name="org.apache." />  <!-- exclude the entire apache package
space -->
  <include name="org.apache.tools.ant.types." /> <!-- but include Ant
types
-->
</classfilter>

----- Original Message -----
From: "Brian Quirk" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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="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]
>


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







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

Reply via email to