ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <ste...@apache.org>
Subject making empty jars
Date Wed, 13 Jun 2007 09:42:25 GMT

I'm trying to create empty jars


I have a target that creates a test jar, a target that should create an 
empty JAR when there
are no tests

   <target name="package-tests" depends="compile-tests"
       description="create the JAR file for the tests">
       <jar destfile="${test.jar}"
         basedir="${test.classes.dir}"
         whenmanifestonly="create"
         compress="true"
         duplicate="preserve"
         includes="**/*"/>
   </target>

    [jar] Warning: skipping jar archive 
/home/slo/Projects/SmartFrog/Forge/core/components/sfinstaller/dist/lib/sf-installer-test-3.10.slo.jar

because no files were included.
    [jar] Building MANIFEST-only jar: 
/home/slo/Projects/SmartFrog/Forge/core/components/sfinstaller/dist/lib/sf-installer-test-3.10.slo.jar
    [jar] adding directory META-INF/
    [jar] adding entry META-INF/MANIFEST.MF

so, why the message "skipping jar archive?"   Because an archive is 
being created.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message