I currently have this command:
copy /b *.txt newfile.txt
But I want to include all files with folders as well.
- How can I do this? Is it possible to add this to Apache Ant as well?
I also consider doing this to minify JS files.
- Is there anyway to remove lines as well?
- Is there a better command to use than the one I am currently using?
CURRENT CODE
<target name="concatenate" description="Concatenate all js files">
<concat destfile="build/application.js">
<fileset dir="js" includes="**/*.js" />
</concat>
</target>
<target name="compress" depends="concatenate" description="Compress application.js to application-min.js">
<apply executable="java" parallel="false">
<filelist dir="build" files="application.js" />
<arg line="-jar" />
<arg path="C:\yuicompressor-2.4.7\build\yuicompressor-2.4.7.jar" />
<srcfile />
<arg line="-o" />
<mapper type="glob" from="*.js" to="build/*-min.js" />
<targetfile />
</apply>
</target>