C
citizenkahn
I have a quick question. I have a posting build script that is batch
file now and I'm converting it over to ant. I have used copy and
filesets. It works reasonable well, but doesn't fail when a file is
missing. If a pattern yields no results the "build" still completes
successfully.
Example:
<copy todir="${doc}/API/AdminAPIUtil" flatten="yes">
<fileset dir="${basedir}/src/Admin/Foo" casesensitive="False">
<include name="*.cs"/>
<include name="Release/This.jar" />
</fileset>
</copy>
I looked at the DTD for an attribute that I might be missing, but there
was nothing. Hence, I'm not using the right task for my purposes.
Ideally, I would have an external list of groups of file and the ant
script would process this. I'd like to do this with the filelist
object, but it appears that a file list can not be used in copying.
This will be a script that needs modification by a wide array of folks
and I want to keep the area modified really clear for them.
Is there a way by which I can have objects that define specific files
and use them to copy these files somewhere?
Any ideas as to how folks usually solve this kind of thing? Thanks
for help.
file now and I'm converting it over to ant. I have used copy and
filesets. It works reasonable well, but doesn't fail when a file is
missing. If a pattern yields no results the "build" still completes
successfully.
Example:
<copy todir="${doc}/API/AdminAPIUtil" flatten="yes">
<fileset dir="${basedir}/src/Admin/Foo" casesensitive="False">
<include name="*.cs"/>
<include name="Release/This.jar" />
</fileset>
</copy>
I looked at the DTD for an attribute that I might be missing, but there
was nothing. Hence, I'm not using the right task for my purposes.
Ideally, I would have an external list of groups of file and the ant
script would process this. I'd like to do this with the filelist
object, but it appears that a file list can not be used in copying.
This will be a script that needs modification by a wide array of folks
and I want to keep the area modified really clear for them.
Is there a way by which I can have objects that define specific files
and use them to copy these files somewhere?
Any ideas as to how folks usually solve this kind of thing? Thanks
for help.