In the project, we have several source paths, so we defined a reference path for them:
<path id="de.his.path.srcpath"> <pathelement path="${de.his.dir.src.qis.java}"/> <pathelement path="${de.his.dir.src.h1.java}"/> ... </path>
Using help works fine in the <javac> tag:
<src refid="de.his.path.srcpath" />
In the next step, we need to copy files other than java to the pathpath folder:
<copy todir="${de.his.dir.bin.classes}" overwrite="true"> <fileset refid="de.his.path.srcpath"> <exclude name="**/*.java" /> </fileset> </copy>
Unfortunately, this does not work because the "refid" and nested elements may not mix.
Is there a way to get a collection of all non-java files in the source path without copying the list of source paths into separate file sets?
ant
Hendrik brummermann
source share