Featured Post

The great debacle of healthcare.gov

This is the first time in history when the president of the United States of America, or probably for any head of state around the world,...

Monday, August 4, 2008

Ant

Create an Ant script to concat multiple text files:

<?xml version="1.0"?>

<project name="concat files" default="build">
<target name="build">
<concat destfile="concatenated.txt" fixlastline="yes">
<path>
<pathelement path="<file_path>\text1.txt" />
<pathelement path="<file_path>\text2.txt" />
</concat>
</target>
</project>

Commands:

ant -buildfile build-file.xml build-target

No comments: