If you'd like to zip up your source code as part of your NetBeans build, open up the build-impl.xml file and implement the -post-jar task as follows. You will find the zip file src.zip in your temp directory, given by the System property java.io.tmpdir

    <target name="-post-jar">
        <zip update="true" compress="${jar.compress}" file="${java.io.tmpdir}/source.zip">
                <fileset dir="${basedir}">
                    <include name="src/**"/>
                    <exclude name="**/META-INF/**"/>

Please support this site using the button below: