Hi,
Perhaps we should implement some form of build file validation.
* If a property is not a top-level element ignore it and generate a
warning/error
* If a property is set twice generate a warning/error
And to get around the problems with lack of template targets we can
decrease the overhead of doing the following
<target name="jar2">
<ant dir="." target="jar" >
<property name="jar.arg1" value="jar2" />
<property name="jar.arg2" value="2" />
</ant>
</target>
<!-- his is the subrutine -->
<target name="jar">
<echo message="Running target ${jar.arg1}..."/>
<someJarTask jarfileToUse="jar${jar.arg2}.jar"
includeList="**/someotherfiles-${jar.arg2}"/>
</target>
and perhaps add syntax such as
<ant-call target="jar" >
<property name="jar.arg1" value="jar2" />
<property name="jar.arg2" value="2" />
</ant-call>
to make it easier to optimize ?
Cheers,
Pete
*------------------------------------------------------*
| "Nearly all men can stand adversity, but if you want |
| to test a man's character, give him power." |
| -Abraham Lincoln |
*------------------------------------------------------*