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.
Check this out:
http://java.sun.com/developer/technicalArticles/java_warehouse/single_jar/
Might be the trick, just change the targets names to be more appropriate for your use
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With