diff options
author | Chien Yang <[email protected]> | 2007-04-03 05:30:20 +0000 |
---|---|---|
committer | Chien Yang <[email protected]> | 2007-04-03 05:30:20 +0000 |
commit | 1a9b22fe879d999ac84c7926a77f256c777ca6a1 (patch) | |
tree | bde53d3cd1f61f674a8bbaaba52d845747fec495 /build.xml | |
parent | f53cc0499e024f712e3b24f0b6cf282aeb7bdf4d (diff) |
Fixed to Issue 467 : Add Java3D source jar file as a separate or part of the distribution.
git-svn-id: https://svn.java.net/svn/j3d-core~svn/trunk@808 ba19aa83-45c5-6ac9-afd3-db810772062c
Diffstat (limited to 'build.xml')
-rw-r--r-- | build.xml | 84 |
1 files changed, 83 insertions, 1 deletions
@@ -480,7 +480,7 @@ <ant dir="src/classes" target="docs"/> </target> - <target name="dist" depends="jar-opt,docs-public"> + <target name="dist" depends="jar-opt,docs-public,src"> <ant dir="src/classes" target="dist"/> <ant dir="src/native" target="dist"/> </target> @@ -681,6 +681,86 @@ </zip> </target> + <target name="initSrc" depends="setupPlatform"> + <property name="platformSrc" location="${dist}/${platform}/src"/> + <property name="j3dZip" value="j3d-${version_base_file}-src.zip"/> + <property name="vecmathZip" value="vecmath-${version_base_file}-src.zip"/> + + <property name="j3dZipFile" location="${platformSrc}/${j3dZip}"/> + <property name="vecmathZipFile" location="${platformSrc}/${vecmathZip}"/> + <property name="cvsRootDir" location=".."/> + + <mkdir dir="${platformSrc}"/> + </target> + + <target name="echoSrc"> + <echo message="j3dZipFile = ${j3dZipFile}"/> + <echo message="vecmathZipFile = ${vecmathZipFile}"/> + <echo message="cvsRootDir = ${cvsRootDir}"/> + </target> + + <target name="src" depends="initSrc, echoSrc, j3dSrc, vecmathSrc"> + </target> + + <target name="j3dSrc" depends="j3dSrcClean"> + <zip destfile="${j3dZipFile}"> + + <fileset dir="${cvsRootDir}/j3d-core/release-info/src-release/j3d" + includes="README.txt"/> + + <zipfileset dir="${cvsRootDir}/j3d-core" prefix="javax" + includes="COPYRIGHT.txt *LICENSE*.*"/> + + <fileset dir="${cvsRootDir}/j3d-core/src/classes/share" + includes="*/**" + excludes="**/doc-files/** **/package.html"/> + + <fileset dir="${cvsRootDir}/j3d-core/src/classes/jogl" + includes="*/**" + excludes="**/doc-files/** **/package.html"/> + +<!-- We will not include platform specific source files in this release + + <fileset dir="${cvsRootDir}/j3d-core/src/classes/win32" + includes="*/**" + excludes="**/doc-files/** **/package.html"/> + <fileset dir="${cvsRootDir}/j3d-core/src/classes/x11" + includes="*/**" + excludes="**/doc-files/** **/package.html"/> +--> + + <zipfileset dir="${cvsRootDir}/j3d-core-utils" prefix="com" + includes="COPYRIGHT.txt *LICENSE*.*"/> + + <fileset dir="${cvsRootDir}/j3d-core-utils/src/classes/share" + includes="*/**" + excludes="**/doc-files/** **/package.html"/> + </zip> + </target> + + <target name="vecmathSrc" depends="vecmathSrcClean"> + <zip destfile="${vecmathZipFile}"> + + <fileset dir="${cvsRootDir}/j3d-core/release-info/src-release/vecmath" + includes="README.txt"/> + + <zipfileset dir="${cvsRootDir}/vecmath" prefix="javax" + includes="COPYRIGHT.txt *LICENSE*.*"/> + + <fileset dir="${cvsRootDir}/vecmath/src" + includes="*/**" + excludes="*/doc-files/** **/package.html VECMATH.MF"/> + </zip> + </target> + + <target name="j3dSrcClean" depends="initSrc"> + <delete file="${j3dZipFile}"/> + </target> + + <target name="vecmathSrcClean" depends="initSrc"> + <delete file="${vecmathZipFile}"/> + </target> + <target name="clean-dist"> <!-- Delete the ${dist} directory tree --> <delete dir="${dist}"/> @@ -781,6 +861,8 @@ The following ant targets are available ("jar-opt" is the default): install-debug - installs the debug build into the JDK pointed to by JAVA_HOME + src - generate a zip file Java 3D project source code. + uninstall - uninstalls Java 3D from the JDK pointed to by JAVA_HOME </description> </project> |