ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: ?? Simple Newbie Question ??
Date Sun, 16 Jun 2002 02:10:51 GMT
--- Tony LaPaso <tlapaso@attbi.com> wrote:
> I want to take everything in the ${build_dir} directory and put it
> into the JAR. Simple, right?

Yes. See the first Example on the Jar task page.

> Also, a related but more difficult problem. [...]
> Here's what I want my resulting JAR file to look like:
> 
> /+ (root)
>  |
>  +--META-INF+
>  |          |
>  |          +--ejb-jar.xml
>  |          +--weblogic-ejb-jar.xml
>  |          +--MANIFEST.MF

See the <metainf> and <manifest> nested elements on the Jar task page.

>  |
>  +--com+
>        |
>        +--abc+
>              |
>              +--C_1.class
>              +--C_2.class
> 
> Note that I do *not* want the "classes-dir" directory to appear
> in my resulting JAR. Can I do this?

  <jar destfile="whatever.jar">
    <fileset dir="classes" includes="com/**"/>
  </jar>

Diane

=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message