I ask the question more specific:
Using Netbeans, is there a possibility to create an additional custom build target, which would:
Notes:
Thank to Mark's resource hint, I reduces the example to minimum complexity:
Following is done to pack only the sources:
<!-- depends="jar" have to stay:
without it, we haven't the variable ${application.title} -->
<target name="MY-EXPORT-SOURCES" depends="jar">
<echo>MY TARGET: PACKAGING ${application.title} SOURCES</echo>
<delete file="dist/${application.title}.SOURCES.zip"/>
<zip destfile="dist/${application.title}.SOURCES.zip" basedir="src"
includes="**/*.java"/>
</target>
To run in Netbeans, do:
build.xml rightclick -> run targets -> other targets -> MY-EXPORT-SOURCES.