ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: Re-parenting classpath
Date Fri, 19 Oct 2007 15:52:50 GMT
I'm probably missing something basic, so maybe a new set of eyes can help me out here. I have
the following build.xml snippet:

    <!-- Put JAR files and directories into test.cp -->
    <path id="test.cp" path="${java.class.path}:${java.library.path}"/>  

    <!-- Convert path-like property to a list property-->
    <pathconvert pathsep="," property="run.test.classpath.list" refid="test.cp"/>

    <!-- Try to zip up the components of run.test.classpath.list -->
    <target name="create-test-bundle"
      description="Creates zip file with test environment">
      <zip destfile="${basedir}/dist/" whenempty="fail"> 
          <filelist dir="/" files="${run.test.classpath.list}"/>

which fails with "Cannot create zip archive <path>/ no files were included."
I would have expected the JAR files and the top-level directories to be "found" and added
to the zip file. What am I missing?

The ultimate goal, here, is to bundle the components (JAR & directory) of a classpath-like
property into a single zip file. Does anyone have any tips on how to do this?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message