I m having a problem with subant and have no ideas any more. Can anyone help? Using Ant to replace some strings for other (i.e Productname and Version for "Foo" and "1.2") I used such thing:
<copy todir="${Foo_Home}cm_buildsDeploymentDatabaseProduction.win">
<fileset dir="${Foo_Home}DeploymentDatabaseProduction.win"
includes="**/*.sql,**/*.cmd"/>
<filterset>
<filter token="PRODUCTNAME" value="Foo"/>
<filter token="VERSION" value="1.2"/>
</filterset>
</copy>
Can we do the same by means of subant? Because copy
and replacetoken
etc. are not supported by subant. But we need exactly subant...
Something like this:
<subant target="build" genericantfile="build.xml">
<dirset dir="${Foo_Home}cm_buildsDeploymentDatabaseProduction.win"
includes ="**/*.sql">
</subant>
Is that the right way to use subant? (Assume we have several targets like this)
http://ant.apache.org/manual/Tasks/subant.html for help =)
Update:
I suspect i use subant in a wrong way. Maybe there is no need to try to make subant run the same task as ant does? Maybe i should make subant run ant in a required directory and don t change anything for ant?