How can I include a folder into the dist JAR as part of the build process using Netbeans?

冷暖自知 提交于 2019-12-01 18:43:01

http://ant.apache.org/manual/Tasks/copydir.html

  <copydir src="${base.path}/lib/"
           dest="${build.path}/lib"
  />

  <copydir src="${base.path}/images/"
           dest="${build.path}/images"
  />

  <copydir src="${base.path}/src/com/"
           dest="${build.path}/com"
  />
  <copydir src="${base.path}/META-INF/"
           dest="${build.path}/META-INF"
  />

http://ant.apache.org/manual/Tasks/jar.html

<jar destfile="project.jar"
     basedir="${build.path}"
     includes="**/*.*"
     />

In case someone see this, copydir is deprecated now, use:

<target name="-post-compile">
    <copy todir="${dist.dir}/ace">
        <fileset dir="src/ace"/>
    </copy>
</target>
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!