Sorry, I misread your example (didn't spot the includesfile attribute on
the jar element and just saw the fileset! Assuming that all your
filenames in the ${file.set.toJar} file are absolute filenames you
probably need to change basedir:
<jar destfile="${jar.name}" basedir="/" includesfile="${file.set.toJar}"
>
<fileset file="${jar.manifest.dir}"/>
<manifest>
<attribute name="Built-By" value="${build.by.jar}"/>
<attribute name="Manifest-Version" value="1.0"/>
<attribute name="Class-Path" value="${jar.classpath.dir}"/>
</manifest>
</jar>
> On Thu, 2004-11-11 at 14:33, [EMAIL PROTECTED] wrote:
> sorry I'm not sure to understand you ....
> a line like that <jar destfile="${jar.name}" basedir="."
> includesfile="${file.set.toJar}" >
> is not what u mean?
> Could you write me the xml line please
> Regards
>
>
>
> ---------- Initial Header -----------
>
> From : "Phil Weighill-Smith" [EMAIL PROTECTED]
> To : "Ant Developers List" [EMAIL PROTECTED]
> Cc :
> Date : Thu, 11 Nov 2004 14:26:40 +0000
> Subject : Re: getting files name by a text file and doing a jar
>
> > You must use the includesfile attribute, not the file attribute. You
> > will also have to specify a dir attribute that the files in the
> > includesfile are relative to... if they aren't relative, you could try
> > "/" as the directory for the fileset.
> >
> > On Thu, 2004-11-11 at 14:17, [EMAIL PROTECTED] wrote:
> >
> > > get problem!! It does a jar but does not include all the files described
> > > in file.set.toJar.Take a look please!
> > > I post you my build xml
> > >
> > > <?xml version="1.0"?>
> > > <!DOCTYPE project [
> > > ]>
> > > <project name="Automatic Packager" basedir=".">
> > > <property file="${basedir}/automaticPackager.properties"/>
> > > <property name="jar.output.dir" value="${jar.output.dir}"/>
> > > <property name="jar.name" value="${jar.name}"/>
> > > <property name="jar.base.dir"
> > > value="${jar.base.dir}"/>
> > > <property name="jar.manifest.file" value="${jar.manifest.file}"/>
> > > <property name="build.by.jar" value="${build.by.jar}"/>
> > > <property name="jar.classpath.dir" value="${jar.classpath.dir}"/>
> > > <!-- file.set.toJar e il file di test che contiene tutti i file da
> > > jarrare! -->
> > > <property name="file.set.toJar" value="${file.set.toJar}"/>
> > > <!--
> > > =================================================================== -->
> > > <!-- Make jar file
> > > -->
> > > <!--
> > > =================================================================== -->
> > > <target name="jar">
> > > <mkdir dir="${jar.output.dir}"/>
> > > <jar destfile="${jar.name}" basedir="."
> > > includesfile="${file.set.toJar}" >
> > > <fileset file="${jar.manifest.dir}"/>
> > > <manifest>
> > > <attribute name="Built-By"
> > > value="${build.by.jar}"/>
> > > <attribute name="Manifest-Version" value="1.0"/>
> > > <attribute name="Class-Path"
> > > value="${jar.classpath.dir}"/>
> > > </manifest>
> > > </jar>
> > > </target>
> > > </project>
> > >
> > > ---------- Initial Header -----------
> > >
> > > From : "Phil Weighill-Smith" [EMAIL PROTECTED]
> > > To : "Ant Developers List" [EMAIL PROTECTED]
> > > Cc :
> > > Date : Thu, 11 Nov 2004 13:47:23 +0000
> > > Subject : Re: getting files name by a text file and doing a jar
> > >
> > > > Can't you just use a <jar> task with a nested <fileset> with the
> > > > includesfile attribute set to point to your file containing the list of
> > > > filenames?
> > > >
> > > > Phil :n.
> > > >
> > > > On Thu, 2004-11-11 at 13:42, [EMAIL PROTECTED] wrote:
> > > >
> > > > > Hi all
> > > > > I'd like to read from a text file a sequence of files to add to a
> > > > > jar.Actually I do not know how ant can help me.
> > > > > What I want is a build.xml that real all the lines of a text file
> > > > > (each rows describe a file name to jar)
> > > > > and doing a unique jar.
> > > > > Is it possible?
> > > > > Regards
> > > > > Giovanni
> > > > >
> > > > >
> > > > >
> > > > > ____________________________________________________________
> > > > > Libero ADSL: navighi gratis a 1.2 Mega, senza canone e costi di
> > > > > attivazione.
> > > > > Abbonati subito su http://www.libero.it
> > > > >
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > > --
> > > > Phil Weighill-Smith <[EMAIL PROTECTED]>
> > > > Volantis Systems
> > > >
> > >
> > >
> > >
> > > ____________________________________________________________
> > > Libero ADSL: navighi gratis a 1.2 Mega, senza canone e costi di
> > > attivazione.
> > > Abbonati subito su http://www.libero.it
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> > --
> > Phil Weighill-Smith <[EMAIL PROTECTED]>
> > Volantis Systems
> >
>
>
>
> ____________________________________________________________
> Libero ADSL: navighi gratis a 1.2 Mega, senza canone e costi di attivazione.
> Abbonati subito su http://www.libero.it
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Phil Weighill-Smith <[EMAIL PROTECTED]>
Volantis Systems