home.


Tagged: ant-sources


ant-sources-as-jar

To create a jar of your sources, the kind of this Eclipse likes to attach to jars so you can see what’s happening when you’re debugging, add this target:

 <target name="src-jar">
    <mkdir dir="${jar.dir}" />
    <jar destfile="${jar.dir}/${sourcesjar.name}" basedir="${src.dir}">
      <manifest>
      </manifest>
    </jar>
  </target>
ant ant-sources

Page 1 of 1