Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

using a <filelist> for both <javac> and <zip> ???

Noel Grandin

2008-09-03


Author LoginPost Reply
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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.