Reputation: 1416
I want to merge two different files using Ant. How do I do it?
Ex a.java and B.java
<target name="merge">
<property prefix="app.properties" file="input1.txt" />
<property prefix="app.properties" file="input2.txt" />
<echoproperties destfile="output.txt">
<propertyset>
<propertyref prefix="app.properties"/>
<mapper type="glob" from="app.properties.*" to=""/>
</propertyset>
</echoproperties>
</target>
this is not working correctly
Upvotes: 0
Views: 282
Reputation: 1125
Use the concat task
<concat destfile="output.txt">
<fileset file="input1.txt" />
<fileset file="input2.txt" />
</concat>
Upvotes: 1