I haven't gotten a reply yet, so I'll try again.
Does anyone see any syntax or logic mistakes in this fileset?
I have this structure:
${WORKDIR}
|
+-BACKUP
+-DIR1
+-DIR2
+-file1
+-file2
How would I recursively copy all files and dirs below ${WORKDIR}
except BACKUP into BACKUP itself? This fileset doesn't seem to
exclude BACKUP:
<mkdir dir="${WORKDIR}/BACKUP" />
<copy todir="${WORKDIR}/BACKUP" preservelastmodified="true">
<fileset dir="${WORKDIR}">
<include name="**/*" />
<exclude name="BACKUP" />
</fileset>
</copy>
This creates:
${WORKDIR}
|
+-BACKUP
| +------+-BACKUP
+-DIR1 +-DIR1
+-DIR2 +-DIR2
+-file1 +-file1
+-file2 +-file2
when I want:
${WORKDIR}
|
+-BACKUP
| +------+-DIR1
+-DIR1 +-DIR2
+-DIR2 +-file2
+-file1 +-file2
+-file2
-Doug
P.S. I can't find the documentation on <include> and <exclude>
(only examples) in the Ant manual. They're not really documented
on the <fileset> page, as they are not attributes. For example,
it doesn't state if "name" can be a filename or directory name.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]