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/test.zip" whenempty="fail">
<filelist dir="/" files="${run.test.classpath.list}"/>
</zip>
</target>
===================================================
which fails with "Cannot create zip archive <path>/test.zip: 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?
TIA
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]