ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject Fileset
Date Fri, 19 May 2006 12:40:15 GMT
Hello I want to create an Zip file with the zip and fileset tasks. The
problem I'm having is that it puts all files in the root directory.

<?xml version="1.0" encoding="utf-8" ?> 
<project basedir="." default="all" name="name">
   <target name="dtCompass-dist"> 
        <zip destfile="">
			<fileset dir="..\..\..\program\bin"/ >
			<fileset dir="..\..\..\program2\bin"/>
			<fileset dir="..\bin"/>
			<fileset dir="dir1" />
			<fileset dir="dir2" />
			<fileset dir="test" />
   <target name="all" depends="dtCompass-dist"/>

The files as said get's at the root of each of the filesets.

I instead would want the each of the included directories be an own
directory and under a other name. Something like this:

<dir> program   - Removed the \bin as well and replaced it with program
<dir> program2  - Removed the \bin and replaced with program2 name
<dir> dir1
<dir> dir2
<dir> test

Is there a target for the fileset I can use or another task?


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

View raw message