ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin" <mgai...@hotmail.com>
Subject Re: jar building problem
Date Fri, 16 Aug 2002 02:12:30 GMT
Thomas-

The problem exists with the lack of documentation for specifying a Directory
in excludes/includes
TRY THIS:
> When I run it with ant I use:
>     <jar jarfile="${dist}/${jarfilename}" manifest="${MF}/MANIFEST.MF"
> duplicate="preserve">
>       <fileset dir="${build}">
>         <includes="**/*.class"/>
           <excludes="/**/*.class"/>
>       </fileset>
>     </jar>

die Zustimmung?
-Martin

> >
> > ----- Original Message -----
> > From: "Thomas Bauer" <pauli@xaidat.com>
> > To: "Martin" <webmaster@laconiadatasystems.com>
> > Cc: "Ant Users List" <ant-user@jakarta.apache.org>
> > Sent: Saturday, February 08, 2003 8:36 PM
> > Subject: Re: jar building problem
> >
> >
> > > Am Don, 2002-08-15 um 23.14 schrieb Martin:
> > > > Thomas-
> > > >
> > > > Assuming dist is set to distribution directory and build property is
set
> > to
> > > > the build directory
> > > >
> > > > jars all files in the ${build}/classes directory into a file called
> > app.jar
> > > > in the ${dist}/lib directory. Files with the name *.class are
included.
> > > > files with name mypackage are excluded
> > > >
> > > >   <jar destfile="${dist}/lib/app.jar"
> > > >        basedir="${build}/classes"
> > > >        includes="**/*.class"       excludes="mypackage"
> > > >   />Ok?
> > >
> > > No, I want the class files in mypackage too, but I just don't want an
> > > entry "mypackage" in my jar archive.
> > > e.g.:
> > > contents of jar:
> > > Top.class
> > > Top2.class
> > > mypackage/Sub.class
> > > mypackage/OtherSub.class
> > >
> > > when I build it with ant I get:
> > > Top.class
> > > Top2.class
> > > mypackage/
> > > mypackage/Sub.class
> > > mypackage/OtherSub.class
> > >
> > > And I need the first sample - without the "mypackage/".
> > > regards,
> > >
> > > Thomas
> > >
> > > > -M----- Original Message -----
> > > > From: "Thomas Bauer" <pauli@xaidat.com>
> > > > To: "ANT User Mailingliste" <ant-user@jakarta.apache.org>
> > > > Sent: Saturday, February 08, 2003 8:11 PM
> > > > Subject: jar building problem
> > > >
> > > >
> > > > > Hi!
> > > > >
> > > > > When I build a jar with ant's task "jar" it includes entries for
the
> > > > > directories (packages) in my jar. (like "mypackage/")
> > > > > How could I avoid this?
> > > > > So I only want *.class but no entries without "class" at the end.
> > > > > regards
> > > > >
> > > > > Thomas Bauer
> > > > > --
> > > > > Thomas Bauer <pauli@xaidat.com>
> > > > >
> > > > >
> > > >
> ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail: ant-user-help@jakarta.apache.org
> > > > >
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: ant-user-help@jakarta.apache.org
> > > --
> > > Thomas Bauer <pauli@xaidat.com>
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: ant-user-help@jakarta.apache.org
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: ant-user-help@jakarta.apache.org
> --
> Thomas Bauer <pauli@xaidat.com>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-user-help@jakarta.apache.org
>

Mime
View raw message