Is there any ways to do strings concatination in a `build.xml file?
Concretely, suppose I have a build file that has this block:
<target name="test1" depends="build">
<property name ="fname1"/>
<property name ="fname2"/>
<echo message=<fname1 CONCAT fname2>/>
...
</target>
I’d like to concatenate fname1 and fname2 .
I tried <echo message = "${fname1}" + "${fname2}" but it doesn’t seem to work
You can just do:
or
Much more information on how properties work in ANT, and particularly how property expansion works can be found in the concepts section in the ant manual: http://ant.apache.org/manual/properties.html