ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Examine jar file task
Date Tue, 02 Mar 2004 07:31:17 GMT
No, not directly a task.
But you can use <exec> and the jar tool.


Jan



<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
    <property name="zip" value="C:/seu/ant17.7/lib/ant-swing.jar"/>

    <exec outputproperty="zip.content" executable="jar">
        <arg line="-tf ${zip}"/>
    </exec>

    <echo>${zip}</echo>
    <echo>-------------------------------------------</echo>
    <echo>${zip.content}</echo>
</project>


C:\TEMP\xx>ant
Buildfile: build.xml
     [echo] C:/seu/ant17.7/lib/ant-swing.jar
     [echo] -------------------------------------------
     [echo] META-INF/
     [echo] META-INF/MANIFEST.MF
     [echo] org/
     [echo] org/apache/
     [echo] org/apache/tools/
     [echo] org/apache/tools/ant/
     [echo] org/apache/tools/ant/taskdefs/
     [echo] org/apache/tools/ant/taskdefs/optional/
     [echo] org/apache/tools/ant/taskdefs/optional/splash/
     [echo] org/apache/tools/ant/taskdefs/optional/splash/SplashScreen.class
     [echo] org/apache/tools/ant/taskdefs/optional/splash/SplashTask.class

BUILD SUCCESSFUL
Total time: 1 second



> -----Original Message-----
> From: Andrew Fleet [mailto:areconsulting@earthlink.net]
> Sent: Tuesday, March 02, 2004 1:58 AM
> To: user@ant.apache.org
> Subject: Examine jar file task
> 
> 
> Hi,
>    I use the jar task to create jar files, however is there a 
> task to dump
> the contents
> of a jar file (as in jar -tf foo.jar),
> 
> Thanks,
> 
> Andy
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

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