Quick tip: ‘copy’ task with Ant

Say, you need to copy a bunch of files from one location to another in your project structure after the JAR building is over. Add these lines to your ‘build.xml’ file: “


*copy todir="dist"#
*fileset dir="."#
*include name="*.sh"#
*/include#
*/fileset#
*/copy#
*/target#

Please replace ‘*’ with ”

If you know how to insert XML properly in blogger, please let me know!

Advertisement