compilation - Netbeans: move a text file into dist folder when compiling -


i have text file (let's textfile.txt) stored in project folder in netbeans 7.3, e.g.

project folder   textfile.txt   src     package     package.subpackage       myclass.java 

when compile dist folder jar file put in, e.g.

project folder   textfile.txt   dist     myproject.jar   src     package     package.subpackage       myclass.java 

how can edit build.xml file make file textfile.txt being copied under dist folder?

edit "-post-compile" target inside build.xml follows:

<target name="-post-compile">     <copy file="textfile.txt" todir="${dist.dir}"/>         </target> 

Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -