ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: how to get a jar target to include subdirs in the jar
Date Thu, 01 May 2003 14:52:58 GMT
The easy way is to copy your images directory into
your build directory and get everything from the build
directory into your jar.

or this will pretty much do what you want...

<jar jarfile="${dist.home}/${jar.name}"
     filesonly="true">
  <zipfileset dir="build" includes="**/*.class" />
  <zipfileset dir="${src.home}" excludes="**/*.java"
/>
</jar>

-Matt

--- Jeff Ousley <jeofatima@yahoo.com> wrote:
> Anyone know how to accomplish this in ant with a jar
> target?
> 
> --- Jeff Ousley <jeofatima@yahoo.com> wrote:
> > Hello!
> > 
> > How do I get a jar target to include all the class
> > files in a directory called "build" and the entire
> > "images" directory from a directory called "src"
> so
> > the structure of the jar file is:
> > 
> > ./a.class
> > ./b.class
> > ./c.class
> > ./images/a.gif
> > ./images/b.gif
> > 
> > Does this make sense?
> > 
> > thanks!
> > -jeff
> > 
> > __________________________________
> > Do you Yahoo!?
> > The New Yahoo! Search - Faster. Easier. Bingo.
> > http://search.yahoo.com
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@ant.apache.org
> > For additional commands, e-mail:
> > user-help@ant.apache.org
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 



__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

Mime
View raw message