ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noel Grandin <n...@peralex.com>
Subject Re: AW: AW: using a <filelist> for both <javac> and <zip> ???
Date Wed, 03 Sep 2008 13:24:53 GMT
Hi

Hmmm, that actually works. But I need to call javac before I call zip,
and there is no way to define a zipgroupfileset in a standalone fashion.
And even if that worked, I can't use any of the *set tasks because I
need to preserve the order of the list.

I actually remember now - I logged this as a feature request a year ago.
   https://issues.apache.org/bugzilla/show_bug.cgi?id=41982

Looks like I'm just going to have to wait for Ant1.8.

Sigh.

Thanks for your help.

-- Noel.

Jan.Materne@rzf.fin-nrw.de wrote:
> I dont know if that works, but you could try
>    <zip><zipgroupfileset id="tozip">....
>    <javac classpathref="tozip"/>
>
> Jan
>
> -----Urspr√ľngliche Nachricht-----
> Von: Noel Grandin [mailto:noel@peralex.com] 
> Gesendet: Mittwoch, 3. September 2008 14:21
> An: Ant Users List
> Betreff: Re: AW: using a <filelist> for both <javac> and <zip> ???
>
> Hi
>
> Thanks, but that doesn't work.
>
> What I want is to define a list of JAR files in one place, and use that
> list of JAR files both as input to the <javac> task, and also to merge
> that list of JAR files into one big jar.
>
> For the first situation I need the list to be treated as files, and in
> the second situation I need to list to be treated as a collection of
> archives to be extracted.
>
> Regards, Noel.
>
> Jan.Materne@rzf.fin-nrw.de wrote:
>   
>> <zip> wants a resource collection and <zipfileset> is one. <fileset>
and <path> are other.
>>
>> Jan 
>>
>> -----Urspr√ľngliche Nachricht-----
>> Von: Noel Grandin [mailto:noel@peralex.com] 
>> Gesendet: Mittwoch, 3. September 2008 11:29
>> An: user@ant.apache.org
>> Betreff: using a <filelist> for both <javac> and <zip> ???
>>
>> Hi
>>
>> I want to do something like this,
>> but I can't seem to find any way to express this in ANT's standard
>> constructs,
>> since
>>    <javac> wants a normal <fileset> or <filelist>
>> while
>>    <zip> really wants a <zipfileset>
>>
>> Thanks, Noel.
>>
>>     <!-- using filelist because I need the order to stay consistent -->
>>     <filelist dir="V:\" id="peralex.libs">
>>         <file name="Peralex\PDFSLibs.jar" />
>>         <file name="Peralex\PeralexLibs.jar" />
>>     </filelist>
>>     
>>     <!-- compile my code -->
>>     <javac debug="on" destdir="${BuildClassDir}">
>>          <src path="${BuildSrcDir}" />
>>          <classpath>
>>              <filelist refid="peralex.libs" />
>>          </classpath>
>>      </javac>
>>      
>>     <!-- merge all of the various code related files into one big JAR -->
>>     <zip destfile="proguard_input.jar" duplicate="preserve">
>>         <zipgroupfileset refid="peralex.libs"/>
>>     </zip>
>>
>>
>> Disclaimer: http://www.peralex.com/disclaimer.html
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>>   
>>     
>
>
> Disclaimer: http://www.peralex.com/disclaimer.html
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>   


Disclaimer: http://www.peralex.com/disclaimer.html



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message