Created
December 12, 2012 21:44
-
-
Save garrettwilkin/4271909 to your computer and use it in GitHub Desktop.
Trying to create a source jar for use with Netbeans, so that it can intellisense me to the implementation of various functions. I've tried to add sources so many ways, and failed everytime. I thought that this jar of java files would do the trick. I was wrong. Check out the source-jar target.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project name="comFidessaUstpPairsDialogUtil" default="main" basedir="."> | |
<property environment="env"/> | |
<property name="srcDir" value="${basedir}/src"/> | |
<property name="bldDir" value="${basedir}/build"/> | |
<property name="jarDir" value="${env.CASE}/regional/classes"/> | |
<path id="case.jar"> | |
<pathelement path="${classpath}"/> | |
<pathelement location="${env.CASE}/case/classes/case.jar"/> | |
</path> | |
<path id="dbclasses"> | |
<pathelement path="${classpath}"/> | |
<pathelement location="${env.CASE}/runtime/db/classes/"/> | |
</path> | |
<target name="init"> | |
<mkdir dir="${bldDir}"/> | |
</target> | |
<target name="debug-compile"> | |
<javac srcdir="${srcDir}" destdir="${bldDir}" debug="true" debuglevel="lines,vars,source"> | |
<classpath refid="case.jar"/> | |
<classpath refid="dbclasses"/> | |
</javac> | |
</target> | |
<target name="compile"> | |
<javac srcdir="${srcDir}" destdir="${bldDir}" > | |
<classpath refid="case.jar"/> | |
<classpath refid="dbclasses"/> | |
</javac> | |
</target> | |
<target name="source-jar"> | |
<jar | |
destfile="${jarDir}/comFidessaUstpPairsDialogUtilSrc.jar" | |
includes="**/*.java" | |
basedir="${srcDir}"/> | |
</target> | |
<target name="jar" depends="source-jar"> | |
<jar | |
destfile="${jarDir}/comFidessaUstpPairsDialogUtil.jar" | |
includes="**/*.class" | |
basedir="${bldDir}"/> | |
</target> | |
<target name="clean"> | |
<delete dir="${bldDir}"/> | |
</target> | |
<target name="main" depends="init,compile,jar,clean"/> | |
<target name="debug" depends="init,debug-compile,jar,clean"/> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment