- cleanup build process

- unify jME3 jar file names
- build optional libraries
- build android jar as opt library
- build native bullet as opt library
- cleanup Natives.java
- add bullet native extraction to Natives.java
- add better macosx Java7 recgnition to JmeSystem.java
- add dependency finder ant lib for comparing native and java bullet API

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7403 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
nor..67 14 years ago
parent 862540833b
commit ba365cf8f3
  1. 53
      engine/build-android.xml
  2. 154
      engine/build.xml
  3. 11
      engine/lib/antlibs/depfinder/classes/dependencyfindertasks.properties
  4. 20
      engine/lib/antlibs/depfinder/classes/log4j.properties
  5. 304
      engine/lib/antlibs/depfinder/etc/DiffToHTML.xsl
  6. BIN
      engine/lib/antlibs/depfinder/lib/DependencyFinder.jar
  7. BIN
      engine/lib/antlibs/depfinder/lib/guava.jar
  8. 202
      engine/lib/antlibs/depfinder/lib/guava.lic
  9. BIN
      engine/lib/antlibs/depfinder/lib/jakarta-oro.jar
  10. 53
      engine/lib/antlibs/depfinder/lib/jakarta-oro.lic
  11. BIN
      engine/lib/antlibs/depfinder/lib/log4j.jar
  12. 202
      engine/lib/antlibs/depfinder/lib/log4j.lic
  13. 31
      engine/lib/antlibs/depfinder/license.txt
  14. 28
      engine/lib/antlibs/depfinder/readme.txt
  15. BIN
      engine/lib/bullet/jME3-bullet-natives.jar
  16. BIN
      engine/lib/bullet/jarcontent/native/macosx/libbulletjme.jnilib
  17. 2
      engine/lib/nblibraries.properties
  18. 3
      engine/master-application.jnlp
  19. 39
      engine/nbproject/build-impl.xml
  20. 4
      engine/nbproject/genfiles.properties
  21. 6
      engine/nbproject/project.properties
  22. 4
      engine/src/desktop/com/jme3/system/JmeSystem.java
  23. 217
      engine/src/desktop/com/jme3/system/Natives.java

@ -1,53 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
-
- ant build file for jMonkeyEngine Android Renderer
-
- author: Anton Yudin
- created: Sun Nov 7 22:38:27 EST 2010
-
-->
<project name="jMonkeyEngine Android Renderer" default="dist" basedir=".">
<path id="classpath">
<pathelement path="lib/android/android.jar"/>
<pathelement path="dist/jMonkeyEngine3.jar"/>
</path>
<target name="initialize">
<mkdir dir="build/android"/>
</target>
<target name="compile" depends="initialize">
<javac
target="1.6"
encoding="UTF-8"
debug="true"
deprecation="on"
srcdir="src/android"
destdir="build/android"
classpathref="classpath"
excludes="**/OGLESRenderer.java,**/TestsActivity.java,**/AboutActivity.java"
/>
</target>
<target name="dist" depends="compile">
<jar
jarfile="build/jmonkeyengine3-android-renderer.jar"
basedir="build/android"
/>
<jar
jarfile="build/jmonkeyengine3-android-tests.jar"
basedir="build/testclasses"
/>
<jar
jarfile="build/jmonkeyengine3-android-dist.jar"
basedir="build/classes"
excludes="com/jme3/system/JmeSystem*"
/>
</target>
</project>

@ -5,34 +5,103 @@
<import file="nbproject/build-impl.xml"/> <import file="nbproject/build-impl.xml"/>
<!-- <import file="nbproject/profiler-build-impl.xml"/> --> <!-- <import file="nbproject/profiler-build-impl.xml"/> -->
<target name="-post-compile" depends="-compile-bullet, -compile-android">
</target>
<target name="-pre-jar" depends="-prepare-separate-jar-files">
</target>
<target name="-post-jar" depends="-create-optional-packages">
</target>
<!-- compiles the java classes of the native bullet version (works on all systems) -->
<target name="-compile-bullet">
<mkdir dir="build/bullet"/>
<javac classpath="${javac.classpath}${path.separator}${build.classes.dir}" destdir="build/bullet" srcdir="src/bullet"/>
<jar jarfile="build/jME3-bullet.jar" basedir="build/bullet/" compress="true"/>
</target>
<!--this target creates the assets jar file and modifies the classpath to include it--> <!--this target creates the separate jar files for jme3 and modifies the classpath to include them-->
<target name="-pre-jar"> <target name="-prepare-separate-jar-files">
<!--separate test classes--> <!--separate test classes-->
<mkdir dir="build/testclasses/"/> <mkdir dir="build/testclasses/"/>
<move file="build/classes/jme3test" todir="build/testclasses/" failonerror="false"/> <move file="build/classes/jme3test" todir="build/testclasses/" failonerror="false"/>
<move file="build/classes/jme3game" todir="build/testclasses/" failonerror="false"/> <move file="build/classes/jme3game" todir="build/testclasses/" failonerror="false"/>
<jar jarfile="build/jme3test.jar" basedir="build/testclasses/" compress="true"/> <jar jarfile="build/jME3-test.jar" basedir="build/testclasses/" compress="true"/>
<!--create jar from assets--> <!--separate jbullet physics classes-->
<jar jarfile="build/jme3testdata.jar" basedir="src/test-data" compress="true"/> <mkdir dir="build/jbullet/com/jme3/"/>
<!--resolve assets and assets jar location--> <move file="build/classes/com/jme3/bullet" todir="build/jbullet/com/jme3/" failonerror="false"/>
<jar jarfile="build/jME3-jbullet.jar" basedir="build/jbullet/" compress="true"/>
<!--separate assets-->
<jar jarfile="build/jME3-testdata.jar" basedir="src/test-data" compress="true"/>
<property location="src/test-data" name="testdata.dir.resolved"/> <property location="src/test-data" name="testdata.dir.resolved"/>
<property location="build/jme3testdata.jar" name="testdata.jar.resolved"/> <property location="build/jME3-testdata.jar" name="testdata.jar.resolved"/>
<!--this sets properties that would normally later be created in the build-impl.xml--> <!--this sets properties that would normally later be created in the build-impl.xml-->
<property location="${build.classes.dir}" name="build.classes.dir.resolved"/> <property location="${build.classes.dir}" name="build.classes.dir.resolved"/>
<pathconvert property="run.classpath.without.build.classes.dir"> <pathconvert property="run.classpath.without.build.classes.dir">
<path path="${run.classpath}"/> <path path="${run.classpath}"/>
<map from="${build.classes.dir.resolved}" to=""/> <map from="${build.classes.dir.resolved}" to=""/>
<!--replace assets folder in dist classpath--> <!--replace assets folder in dist classpath-->
<map from="${testdata.dir.resolved}" to="${testdata.jar.resolved}"/> <map from="${testdata.dir.resolved}" to="${testdata.jar.resolved}"/>
<!--add tests jar to dist classpath-->
<path path="build/jme3test.jar"/> <!--add both bullet jar files to dist classpath, will both be in manifest-->
<path path="build/jME3-jbullet.jar"/>
<path path="build/jME3-bullet.jar"/>
<path path="build/jME3-test.jar"/>
</pathconvert> </pathconvert>
</target> </target>
<!-- compiles the android jar for jME3 -->
<target name="-compile-android" description="builds the jMonkeyEngine3 distribution for android">
<path id="android-classpath">
<pathelement path="lib/android/android.jar"/>
<pathelement path="build/classes"/>
</path>
<mkdir dir="build/android"/>
<javac target="1.6"
encoding="UTF-8"
debug="true"
deprecation="on"
srcdir="src/android"
destdir="build/android"
classpathref="android-classpath"
excludes="**/OGLESRenderer.java,**/TestsActivity.java,**/AboutActivity.java"/>
</target>
<!--separates and packs the o ptional packages-->
<target name="-create-optional-packages">
<!--native bullet-->
<mkdir dir="dist/opt/native-bullet"/>
<mkdir dir="dist/opt/native-bullet/lib"/>
<ant antfile="src/bullet/native/build.xml" target="bullet-api-diff"/>
<move file="bullet-api-diff.html" todir="dist/opt/native-bullet" overwrite="true"/>
<move file="dist/lib/jME3-bullet.jar" todir="dist/opt/native-bullet/lib" overwrite="true"/>
<move file="dist/lib/jME3-bullet-natives.jar" todir="dist/opt/native-bullet/lib" overwrite="true"/>
<!--android-->
<mkdir dir="dist/opt/android"/>
<jar jarfile="dist/opt/android/jMonkeyEngine3.jar"
basedir="build/android"
/>
<jar jarfile="dist/opt/android/jMonkeyEngine3.jar"
basedir="build/classes"
excludes="com/jme3/system/JmeSystem*"
update="true"/>
<!--<jar jarfile="dist/opt/jME3-android-tests.jar"
basedir="build/testclasses"/>-->
</target>
<!-- compiles the *native binary* of the native bullet version (read bullet-native-build.txt for more info) -->
<target name="build-bullet-natives" description="uses native build tools to build the bulletjme binary (read bullet-native-build.txt for more info)">
<ant antfile="src/bullet/native/build.xml" target="build-bullet-natives"/>
</target>
<!-- puts jme3 jars, libs, source and javadoc in a dated zip file --> <!-- puts jme3 jars, libs, source and javadoc in a dated zip file -->
<target name="dist" depends="clean, jar, javadoc"> <target name="dist" depends="clean, jar, javadoc" description="puts jme3 jars, libs, source and javadoc in a dated zip file">
<!-- create date in the format MM-dd-yyyy --> <!-- create date in the format MM-dd-yyyy -->
<tstamp> <tstamp>
<format property="date" pattern="yyyy-MM-dd" locale="en,US"/> <format property="date" pattern="yyyy-MM-dd" locale="en,US"/>
@ -72,37 +141,11 @@
</zip> </zip>
</target> </target>
<target name="dist-android" depends="jar" description="builds the jMonkeyEngine3 distribution for android"> <!--
<path id="android-classpath"> ****************************************************************
<pathelement path="lib/android/android.jar"/> Only Relevant for building on hudson nightly server from here on
<pathelement path="dist/jMonkeyEngine3.jar"/> ****************************************************************
</path> -->
<mkdir dir="build/android"/>
<javac target="1.6"
encoding="UTF-8"
debug="true"
deprecation="on"
srcdir="src/android"
destdir="build/android"
classpathref="android-classpath"
excludes="**/OGLESRenderer.java,**/TestsActivity.java,**/AboutActivity.java"/>
<jar jarfile="dist/jMonkeyEngine3-Android.jar"
basedir="build/android"/>
<jar jarfile="dist/jMonkeyEngine3-Android.jar"
basedir="build/classes"
excludes="com/jme3/system/JmeSystem*"
update="true"/>
<!--<jar jarfile="dist/jmonkeyengine3-android-tests.jar"
basedir="build/testclasses"/>-->
</target>
<!--target name="-post-jar" depends="build-bullet-natives">
</target-->
<target name="build-bullet-natives">
<ant antfile="src/jbullet/native/build.xml" target="build-bullet-natives"/>
<copy file="lib/bullet/libbulletjme.jnilib" todir="./" overwrite="true"/>
</target>
<!-- convenience target to transfer jme3 libraries to sdk (jMonkeyPlatform) --> <!-- convenience target to transfer jme3 libraries to sdk (jMonkeyPlatform) -->
<target name="update-sdk" depends="jar, javadoc"> <target name="update-sdk" depends="jar, javadoc">
@ -135,35 +178,42 @@
<delete dir="${jmp_dir}/jme3-project-baselibs/release/libs/"/> <delete dir="${jmp_dir}/jme3-project-baselibs/release/libs/"/>
<delete dir="${jmp_dir}/jme3-project-testdata/release/libs/"/> <delete dir="${jmp_dir}/jme3-project-testdata/release/libs/"/>
<!--jme3 base libs--> <!--jMonkeyPlatform jME3 libs-->
<copy file="${dist.jar}" toDir="${jmp_dir}/jme3-core-baselibs/release/modules/ext/" overwrite="true" failonerror="true" verbose="true"/> <copy file="${dist.jar}" toDir="${jmp_dir}/jme3-core-baselibs/release/modules/ext/" overwrite="true" failonerror="true" verbose="true"/>
<copy file="dist/opt/native-bullet/lib/jME3-bullet.jar" toDir="${jmp_dir}/jme3-core-baselibs/release/modules/ext/" overwrite="true" failonerror="true" verbose="true"/>
<copy file="dist/opt/native-bullet/lib/jME3-bullet-natives.jar" toDir="${jmp_dir}/jme3-core-baselibs/release/modules/ext/" overwrite="true" failonerror="true" verbose="true"/>
<!--natives need to be in jme3 package fro jme to work in jMP-->
<copy file="dist/lib/jME3-lwjgl-natives.jar" toDir="${jmp_dir}/jme3-core-baselibs/release/modules/ext/" overwrite="true" failonerror="true" verbose="true"/> <copy file="dist/lib/jME3-lwjgl-natives.jar" toDir="${jmp_dir}/jme3-core-baselibs/release/modules/ext/" overwrite="true" failonerror="true" verbose="true"/>
<!-- <copy file="dist/lib/jME3-jogl-natives.jar" toDir="${jmp_dir}/jme3-core-baselibs/release/modules/ext/" overwrite="true" failonerror="true" verbose="true"/>-->
<!-- <copy file="dist/lib/jME3-natives-joal.jar" toDir="${jmp_dir}/jme3-core-baselibs/release/modules/ext/" overwrite="true" failonerror="true" verbose="true"/>-->
<!--Project jME3 libs-->
<copy file="${dist.jar}" toDir="${jmp_dir}/jme3-project-baselibs/release/libs/" overwrite="true" failonerror="true" verbose="true"/> <copy file="${dist.jar}" toDir="${jmp_dir}/jme3-project-baselibs/release/libs/" overwrite="true" failonerror="true" verbose="true"/>
<copy file="dist/opt/native-bullet/lib/jME3-bullet.jar" toDir="${jmp_dir}/jme3-project-baselibs/release/libs/" overwrite="true" failonerror="true" verbose="true"/>
<copy file="dist/opt/native-bullet/lib/jME3-bullet-natives.jar" toDir="${jmp_dir}/jme3-project-baselibs/release/libs/" overwrite="true" failonerror="true" verbose="true"/>
<copy file="dist/lib/jME3-jbullet.jar" toDir="${jmp_dir}/jme3-project-baselibs/release/libs/" overwrite="true" failonerror="true" verbose="true"/>
<!--jme3 libraries--> <!--jMonkeyPlatform external libraries-->
<copy todir="${jmp_dir}/jme3-core-libraries/release/modules/ext/" overwrite="true" failonerror="true" verbose="true"> <copy todir="${jmp_dir}/jme3-core-libraries/release/modules/ext/" overwrite="true" failonerror="true" verbose="true">
<!--exclude jme3 test data from core--> <!--exclude jme3 test data from core-->
<fileset dir="dist/lib/"> <fileset dir="dist/lib/">
<exclude name="jme3testdata.jar"/> <exclude name="jME3-testdata.jar"/>
<exclude name="jme3test.jar"/> <exclude name="jME3-test.jar"/>
<exclude name="jME3-lwjgl-natives.jar"/> <exclude name="jME3-lwjgl-natives.jar"/>
<exclude name="jME3-jogl-natives.jar"/> <exclude name="jME3-jbullet.jar"/>
<exclude name="jME3-natives-joal.jar"/>
</fileset> </fileset>
</copy> </copy>
<!--Project external libraries-->
<copy todir="${jmp_dir}/jme3-project-libraries/release/libs/" overwrite="true" failonerror="true" verbose="true"> <copy todir="${jmp_dir}/jme3-project-libraries/release/libs/" overwrite="true" failonerror="true" verbose="true">
<!--exclude jme3 test data from libs--> <!--exclude jme3 test data from libs-->
<fileset dir="dist/lib/"> <fileset dir="dist/lib/">
<exclude name="jme3testdata.jar"/> <exclude name="jME3-testdata.jar"/>
<exclude name="jme3test.jar"/> <exclude name="jME3-test.jar"/>
<exclude name="jME3-jbullet.jar"/>
</fileset> </fileset>
</copy> </copy>
<!--test data--> <!--test data-->
<copy file="dist/lib/jme3testdata.jar" toDir="${jmp_dir}/jme3-project-testdata/release/libs/" overwrite="true" failonerror="true" verbose="true"/> <copy file="dist/lib/jME3-testdata.jar" toDir="${jmp_dir}/jme3-project-testdata/release/libs/" overwrite="true" failonerror="true" verbose="true"/>
<!--javadoc--> <!--javadoc-->
<zip destfile="dist/jMonkeyEngine3-javadoc.zip"> <zip destfile="dist/jMonkeyEngine3-javadoc.zip">

@ -0,0 +1,11 @@
classmetrics=com.jeantessier.dependencyfinder.ant.ClassMetrics
dependencycycles=com.jeantessier.dependencyfinder.ant.DependencyCycles
dependencyclosure=com.jeantessier.dependencyfinder.ant.DependencyClosure
dependencyextractor=com.jeantessier.dependencyfinder.ant.DependencyExtractor
dependencymetrics=com.jeantessier.dependencyfinder.ant.DependencyMetrics
dependencyreporter=com.jeantessier.dependencyfinder.ant.DependencyReporter
jarjardiff=com.jeantessier.dependencyfinder.ant.JarJarDiff
listdeprecatedelements=com.jeantessier.dependencyfinder.ant.ListDeprecatedElements
listdiff=com.jeantessier.dependencyfinder.ant.ListDiff
listsymbols=com.jeantessier.dependencyfinder.ant.ListSymbols
oometrics=com.jeantessier.dependencyfinder.ant.OOMetrics

@ -0,0 +1,20 @@
# Default logging settings for Dependency Finder applications
log4j.rootLogger=ERROR, CONSOLE
# log4j.logger.com.jeantessier.dependency=DEBUG, CHAINSAW
# log4j.logger.com.jeantessier.dependency.PackageNode=DEBUG, CHAINSAW
# log4j.logger.com.jeantessier.metrics.MetricsGatherer=DEBUG, CHAINSAW
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=[%d{yyyy/MM/dd HH:mm:ss.SSS}] %c{2} %m%n
log4j.appender.FILE=org.apache.log4j.FileAppender
log4j.appender.FILE.File=C:\\language\\Java\\myprojects\\DependencyFinder\\logs\\default.log
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.layout.ConversionPattern=[%d{yyyy/MM/dd HH:mm:ss.SSS}] %c{2} %m%n
log4j.appender.CHAINSAW=org.apache.log4j.net.SocketAppender
log4j.appender.CHAINSAW.RemoteHost=localhost
log4j.appender.CHAINSAW.Port=4445
log4j.appender.CHAINSAW.LocationInfo=true

@ -0,0 +1,304 @@
<?xml version="1.0"?>
<!--
Copyright (c) 2001-2009, Jean Tessier
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of Jean Tessier nor the names of his contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="*"/>
<xsl:template match="differences">
<html>
<head>
<title><xsl:if test="name/text()"><xsl:value-of select="name"/> - </xsl:if>API Change History</title>
</head>
<body bgcolor="#ffffff">
<h1><xsl:if test="name/text()"><xsl:value-of select="name"/> - </xsl:if>API Change History</h1>
<ul>
<li><a href="#{new}"><xsl:value-of select="old"/> to <xsl:value-of select="new"/></a></li>
</ul>
<hr />
<a name="{new}" />
<h2><xsl:value-of select="old"/> to <xsl:value-of select="new"/></h2>
<xsl:apply-templates/>
<hr />
</body>
</html>
</xsl:template>
<xsl:template match="differences/name | old | new"/>
<xsl:template match="removed-packages">
<h3>Removed Packages:</h3>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="removed-interfaces">
<h3>Removed Interfaces:</h3>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="removed-classes">
<h3>Removed Classes:</h3>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="deprecated-interfaces">
<h3>Newly Deprecated Interfaces:</h3>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="deprecated-classes">
<h3>Newly Deprecated Classes:</h3>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="modified-interfaces">
<h3>Modified Interfaces:</h3>
<blockquote>
<xsl:apply-templates/>
</blockquote>
</xsl:template>
<xsl:template match="modified-classes">
<h3>Modified Classes:</h3>
<blockquote>
<xsl:apply-templates/>
</blockquote>
</xsl:template>
<xsl:template match="undeprecated-interfaces">
<h3>Formerly Deprecated Interfaces:</h3>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="undeprecated-classes">
<h3>Formerly Deprecated Classes:</h3>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="new-packages">
<h3>New Packages:</h3>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="new-interfaces">
<h3>New Interfaces:</h3>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="new-classes">
<h3>New Classes:</h3>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="class">
<h4><code><xsl:value-of select="name"/></code></h4>
<blockquote>
<xsl:apply-templates/>
</blockquote>
</xsl:template>
<xsl:template match="removed-fields">
<h5>Removed Fields:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="removed-constructors">
<h5>Removed Constructors:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="removed-methods">
<h5>Removed Methods:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="deprecated-fields">
<h5>Newly Deprecated Fields:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="deprecated-constructors">
<h5>Newly Deprecated Constructors:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="deprecated-methods">
<h5>Newly Deprecated Methods:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="modified-fields">
<h5>Field Declaration Changes:</h5>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="modified-constructors">
<h5>Constructor Changes:</h5>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="modified-methods">
<h5>Method Changes:</h5>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="feature">
<blockquote>
<p><nobr><code>
<xsl:apply-templates/>
</code></nobr></p>
</blockquote>
</xsl:template>
<xsl:template match="modified-code">
<b>code:</b> <xsl:value-of select="."/>
</xsl:template>
<xsl:template match="modified-declaration">
<b>old:</b> <xsl:value-of select="old-declaration"/>
<xsl:if test="old-declaration[@deprecated='yes']"> <b>[deprecated]</b></xsl:if>
<br/>
<b>new:</b> <xsl:value-of select="new-declaration"/>
<xsl:if test="new-declaration[@deprecated='yes']"> <b>[deprecated]</b></xsl:if>
<xsl:if test="../modified-code"><br/></xsl:if>
</xsl:template>
<xsl:template match="undeprecated-fields">
<h5>Formerly Deprecated Fields:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="undeprecated-constructors">
<h5>Formerly Deprecated Constructors:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="undeprecated-methods">
<h5>Formerly Deprecated Methods:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="new-fields">
<h5>New Fields:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="new-constructors">
<h5>New Constructors:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="new-methods">
<h5>New Methods:</h5>
<ul>
<xsl:apply-templates/>
</ul>
</xsl:template>
<xsl:template match="class/name | feature/name"/>
<xsl:template match="class/modified-declaration">
<h5>Declaration Changes:</h5>
<blockquote>
<p><nobr><code>
<b>old:</b> <xsl:value-of select="old-declaration"/>
<xsl:if test="old-declaration[@deprecated='yes']"> <b>[deprecated]</b></xsl:if>
<br/>
<b>new:</b> <xsl:value-of select="new-declaration"/>
<xsl:if test="new-declaration[@deprecated='yes']"> <b>[deprecated]</b></xsl:if>
</code></nobr></p>
</blockquote>
</xsl:template>
<xsl:template match="new-packages/name[@deprecated='yes'] | new-interfaces/name[@deprecated='yes'] | new-classes/name[@deprecated='yes'] | new-fields/declaration[@deprecated='yes'] | new-constructors/declaration[@deprecated='yes'] | new-methods/declaration[@deprecated='yes']">
<li><nobr><code><xsl:value-of select="."/> <b>[deprecated]</b></code></nobr></li>
</xsl:template>
<xsl:template match="name | declaration">
<li><nobr><code><xsl:value-of select="."/></code></nobr></li>
</xsl:template>
</xsl:stylesheet>

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@ -0,0 +1,53 @@
/* ====================================================================
* The Apache Software License, Version 1.1
*
* Copyright (c) 2000-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
*
* 3. The end-user documentation included with the redistribution,
* if any, must include the following acknowledgment:
* "This product includes software developed by the
* Apache Software Foundation (http://www.apache.org/)."
* Alternately, this acknowledgment may appear in the software itself,
* if and wherever such third-party acknowledgments normally appear.
*
* 4. The names "Apache" and "Apache Software Foundation", "Jakarta-Oro"
* must not be used to endorse or promote products derived from this
* software without prior written permission. For written
* permission, please contact apache@apache.org.
*
* 5. Products derived from this software may not be called "Apache"
* or "Jakarta-Oro", nor may "Apache" or "Jakarta-Oro" appear in their
* name, without prior written permission of the Apache Software Foundation.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
* ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*/

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 1999-2005 The Apache Software Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@ -0,0 +1,31 @@
/*
* Copyright (c) 2001-2009, Jean Tessier
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Jean Tessier nor the names of his contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

@ -0,0 +1,28 @@
Content
-------
This is the Dependency Finder toolkit. It contains a number of
tools for exploring relationships in (compiled) Java code.
Licensing
---------
This software is licensed under the terms of BSD-like license.
A copy of the licensing terms is in the file license.txt. You
can get the original BSD License template at opensource.org.
This product includes software developed by the Apache Software
Foundation (http://www.apache.org/). The terms of the Apache
Software License are reproduced in the lib/ directory next to
the relevant binary .jar files.
Installation and Tools
----------------------
Installation instructions are included in docs/Manual.html.
A list of the tools and their usage is in docs/Tools.html.
These documents are also available online at:
http://depfind.sourceforge.net/

@ -1,3 +1,5 @@
libs.bullet.classpath=\
${base}/bullet/jME3-bullet-natives.jar
libs.CopyLibs.classpath=\ libs.CopyLibs.classpath=\
${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar ${base}/CopyLibs/org-netbeans-modules-java-j2seproject-copylibstask.jar
libs.jbullet.classpath=\ libs.jbullet.classpath=\

@ -13,7 +13,8 @@
<!--${JNLP.RESOURCES.RUNTIME}--> <!--${JNLP.RESOURCES.RUNTIME}-->
<!--${JNLP.RESOURCES.MAIN.JAR}--> <!--${JNLP.RESOURCES.MAIN.JAR}-->
<!--${JNLP.RESOURCES.JARS}--> <!--${JNLP.RESOURCES.JARS}-->
<jar href='lib/jme3testdata.jar'/> <jar href='lib/jME3-testdata.jar'/>
<jar href="lib/jME3-test.jar"/>
<!--${JNLP.RESOURCES.EXTENSIONS}--> <!--${JNLP.RESOURCES.EXTENSIONS}-->
</resources> </resources>
<application-desc main-class="${jnlp.main.class}"> <application-desc main-class="${jnlp.main.class}">

@ -923,66 +923,65 @@ is divided into following sections:
<classpath> <classpath>
<path path="${javac.classpath}"/> <path path="${javac.classpath}"/>
</classpath> </classpath>
<fileset dir="${src.core.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.core.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.core-data.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.core-data.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.core-plugins.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.core-plugins.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.terrain.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.terrain.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.networking.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.networking.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.desktop.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.desktop.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.desktop-fx.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.desktop-fx.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.games.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.games.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.jbullet.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.jbullet.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.niftygui.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.niftygui.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.jogg.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.jogg.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.lwjgl-oal.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.lwjgl-oal.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.lwjgl-ogl.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.lwjgl-ogl.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.ogre.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.ogre.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.pack.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.pack.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.jheora.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.jheora.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.test.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.test.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.tools.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.tools.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${src.xml.dir}" excludes="*.java,${excludes}" includes="${includes}"> <fileset dir="${src.xml.dir}" excludes="${excludes}" includes="${includes}">
<filename name="**/*.java"/> <filename name="**/*.java"/>
</fileset> </fileset>
<fileset dir="${build.generated.sources.dir}" erroronmissingdir="false"> <fileset dir="${build.generated.sources.dir}" erroronmissingdir="false">
<include name="**/*.java"/> <include name="**/*.java"/>
<exclude name="*.java"/>
</fileset> </fileset>
</javadoc> </javadoc>
<copy todir="${dist.javadoc.dir}"> <copy todir="${dist.javadoc.dir}">

@ -4,8 +4,8 @@ build.xml.stylesheet.CRC32=958a1d3e
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=759acdca nbproject/build-impl.xml.data.CRC32=759acdca
nbproject/build-impl.xml.script.CRC32=53d4e0e0 nbproject/build-impl.xml.script.CRC32=c2fd0217
nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.0.45 nbproject/build-impl.xml.stylesheet.CRC32=0c01fd8e@1.43.1.45
nbproject/profiler-build-impl.xml.data.CRC32=aff514c1 nbproject/profiler-build-impl.xml.data.CRC32=aff514c1
nbproject/profiler-build-impl.xml.script.CRC32=abda56ed nbproject/profiler-build-impl.xml.script.CRC32=abda56ed
nbproject/profiler-build-impl.xml.stylesheet.CRC32=f10cf54c@1.11.1 nbproject/profiler-build-impl.xml.stylesheet.CRC32=f10cf54c@1.11.1

@ -39,6 +39,7 @@ jar.index=${jnlp.enabled}
javac.classpath=\ javac.classpath=\
${libs.jogg.classpath}:\ ${libs.jogg.classpath}:\
${libs.jbullet.classpath}:\ ${libs.jbullet.classpath}:\
${libs.bullet.classpath}:\
${libs.lwjgl.classpath}:\ ${libs.lwjgl.classpath}:\
${libs.jheora.classpath}:\ ${libs.jheora.classpath}:\
${libs.niftygui1.3.classpath}:\ ${libs.niftygui1.3.classpath}:\
@ -74,9 +75,12 @@ jnlp.codebase.user=http://jmonkeyengine.com/javawebstart/
jnlp.descriptor=application jnlp.descriptor=application
jnlp.enabled=false jnlp.enabled=false
jnlp.icon=/Users/normenhansen/Pictures/jme/icons/jme-logo48.png jnlp.icon=/Users/normenhansen/Pictures/jme/icons/jme-logo48.png
jnlp.mixed.code=defaut jnlp.mixed.code=default
jnlp.offline-allowed=true jnlp.offline-allowed=true
jnlp.signed=true jnlp.signed=true
jnlp.signing=generated
jnlp.signing.alias=
jnlp.signing.keystore=
main.class=jme3test.TestChooser main.class=jme3test.TestChooser
manifest.file=MANIFEST.MF manifest.file=MANIFEST.MF
meta.inf.dir=${src.dir}/META-INF meta.inf.dir=${src.dir}/META-INF

@ -178,6 +178,8 @@ public class JmeSystem {
return true; return true;
else if (arch.equals("i386") || arch.equals("i686")) else if (arch.equals("i386") || arch.equals("i686"))
return false; return false;
else if (arch.equals("universal"))
return false;
else else
throw new UnsupportedOperationException("Unsupported architecture: "+arch); throw new UnsupportedOperationException("Unsupported architecture: "+arch);
} }
@ -190,7 +192,7 @@ public class JmeSystem {
return is64 ? Platform.Windows64 : Platform.Windows32; return is64 ? Platform.Windows64 : Platform.Windows32;
}else if (os.contains("linux") || os.contains("freebsd") || os.contains("sunos")){ }else if (os.contains("linux") || os.contains("freebsd") || os.contains("sunos")){
return is64 ? Platform.Linux64 : Platform.Linux32; return is64 ? Platform.Linux64 : Platform.Linux32;
}else if (os.contains("mac os x")){ }else if (os.contains("mac os x") || os.contains("darwin")){
if (arch.startsWith("ppc")){ if (arch.startsWith("ppc")){
return is64 ? Platform.MacOSX_PPC64 : Platform.MacOSX_PPC32; return is64 ? Platform.MacOSX_PPC64 : Platform.MacOSX_PPC32;
}else{ }else{

@ -29,7 +29,6 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
package com.jme3.system; package com.jme3.system;
import com.jme3.system.JmeSystem.Platform; import com.jme3.system.JmeSystem.Platform;
@ -54,19 +53,20 @@ public class Natives {
private static final byte[] buf = new byte[1024]; private static final byte[] buf = new byte[1024];
private static File workingDir = new File("").getAbsoluteFile(); private static File workingDir = new File("").getAbsoluteFile();
public static void setExtractionDir(String name){ public static void setExtractionDir(String name) {
workingDir = new File(name).getAbsoluteFile(); workingDir = new File(name).getAbsoluteFile();
} }
protected static void extractNativeLib(String sysName, String name) throws IOException{ protected static void extractNativeLib(String sysName, String name) throws IOException {
String fullname = System.mapLibraryName(name); String fullname = System.mapLibraryName(name);
String path = "native/"+sysName+"/" + fullname; String path = "native/" + sysName + "/" + fullname;
InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(path); InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
//InputStream in = Natives.class.getResourceAsStream(); //InputStream in = Natives.class.getResourceAsStream();
if (in == null) { if (in == null) {
if(name!="bulletjme")
logger.log(Level.WARNING, "Cannot locate native library: {0}/{1}", logger.log(Level.WARNING, "Cannot locate native library: {0}/{1}",
new String[]{ sysName, fullname} ); new String[]{sysName, fullname});
return; return;
} }
File targetFile = new File(workingDir, fullname); File targetFile = new File(workingDir, fullname);
@ -78,9 +78,10 @@ public class Natives {
} }
in.close(); in.close();
out.close(); out.close();
} catch (FileNotFoundException ex){ } catch (FileNotFoundException ex) {
if (ex.getMessage().contains("used by another process")) if (ex.getMessage().contains("used by another process")) {
return; return;
}
throw ex; throw ex;
} }
@ -88,7 +89,7 @@ public class Natives {
logger.log(Level.FINE, "Copied {0} to {1}", new Object[]{fullname, targetFile}); logger.log(Level.FINE, "Copied {0} to {1}", new Object[]{fullname, targetFile});
} }
private static String getExtractionDir(){ private static String getExtractionDir() {
URL temp = Natives.class.getResource(""); URL temp = Natives.class.getResource("");
if (temp != null) { if (temp != null) {
StringBuilder sb = new StringBuilder(temp.toString()); StringBuilder sb = new StringBuilder(temp.toString());
@ -106,36 +107,27 @@ public class Natives {
return null; return null;
} }
protected static void extractNativeLibs(Platform platform, AppSettings settings) throws IOException{ protected static void extractNativeLibs(Platform platform, AppSettings settings) throws IOException {
String renderer = settings.getRenderer(); String renderer = settings.getRenderer();
String audioRenderer = settings.getAudioRenderer(); String audioRenderer = settings.getAudioRenderer();
boolean needLWJGL = false; boolean needLWJGL = false;
boolean needGG = false;
boolean needJOGL = false;
boolean needJOAL = false;
boolean needOAL = false; boolean needOAL = false;
boolean needJInput = false; boolean needJInput = false;
if (renderer != null){ boolean needNativeBullet = true;
if (renderer.startsWith("LWJGL")){ if (renderer != null) {
if (renderer.startsWith("LWJGL")) {
needLWJGL = true; needLWJGL = true;
}else if (renderer.startsWith("JOGL")){
needGG = true;
needJOGL = true;
} }
} }
if (audioRenderer != null){ if (audioRenderer != null) {
if (audioRenderer.equals("LWJGL")){ if (audioRenderer.equals("LWJGL")) {
needLWJGL = true; needLWJGL = true;
needOAL = true; needOAL = true;
}else if (audioRenderer.equals("JOAL")){
needJOAL = true;
needGG = true;
needOAL = true;
} }
} }
needJInput = settings.useJoysticks(); needJInput = settings.useJoysticks();
if (needLWJGL){ if (needLWJGL) {
logger.log(Level.INFO, "Extraction Directory #1: {0}", getExtractionDir()); logger.log(Level.INFO, "Extraction Directory #1: {0}", getExtractionDir());
logger.log(Level.INFO, "Extraction Directory #2: {0}", workingDir.toString()); logger.log(Level.INFO, "Extraction Directory #2: {0}", workingDir.toString());
logger.log(Level.INFO, "Extraction Directory #3: {0}", System.getProperty("user.dir")); logger.log(Level.INFO, "Extraction Directory #3: {0}", System.getProperty("user.dir"));
@ -146,188 +138,81 @@ public class Natives {
System.setProperty("org.lwjgl.librarypath", workingDir.toString()); System.setProperty("org.lwjgl.librarypath", workingDir.toString());
} }
switch (platform){ switch (platform) {
case Windows64: case Windows64:
if (needLWJGL){ if (needLWJGL) {
extractNativeLib("windows", "lwjgl64"); extractNativeLib("windows", "lwjgl64");
} }
if (needJOGL){ if (needOAL) {
extractNativeLib("win64", "jogl_awt");
extractNativeLib("win64", "jogl");
}
if (needJOAL)
extractNativeLib("win64", "joal_native");
if (needGG)
extractNativeLib("win64", "gluegen-rt");
if (needOAL)
extractNativeLib("windows", "OpenAL64"); extractNativeLib("windows", "OpenAL64");
}
if (needJInput){ if (needJInput) {
extractNativeLib("windows", "jinput-dx8_64"); extractNativeLib("windows", "jinput-dx8_64");
extractNativeLib("windows", "jinput-raw_64"); extractNativeLib("windows", "jinput-raw_64");
} }
if(needNativeBullet){
extractNativeLib("windows", "bulletjme_64");
}
break; break;
case Windows32: case Windows32:
if (needLWJGL){ if (needLWJGL) {
extractNativeLib("windows", "lwjgl"); extractNativeLib("windows", "lwjgl");
} }
if (needJOGL){ if (needOAL) {
extractNativeLib("win32", "jogl_awt");
extractNativeLib("win32", "jogl");
}
if (needJOAL)
extractNativeLib("win32", "joal_native");
if (needGG)
extractNativeLib("win32", "gluegen-rt");
if (needOAL)
extractNativeLib("windows", "OpenAL32"); extractNativeLib("windows", "OpenAL32");
}
if (needJInput){ if (needJInput) {
extractNativeLib("windows", "jinput-dx8"); extractNativeLib("windows", "jinput-dx8");
extractNativeLib("windows", "jinput-raw"); extractNativeLib("windows", "jinput-raw");
} }
if(needNativeBullet){
extractNativeLib("windows", "bulletjme");
}
break; break;
case Linux64: case Linux64:
if (needLWJGL){ if (needLWJGL) {
extractNativeLib("linux", "lwjgl64"); extractNativeLib("linux", "lwjgl64");
} }
if (needJOGL){ if (needJInput) {
extractNativeLib("linux64", "jogl_awt");
extractNativeLib("linux64", "jogl");
}
if (needJOAL)
extractNativeLib("linux64", "joal_native");
if (needGG)
extractNativeLib("linux64", "gluegen-rt");
if (needJInput)
extractNativeLib("linux", "jinput-linux64"); extractNativeLib("linux", "jinput-linux64");
}
if (needOAL) if (needOAL) {
extractNativeLib("linux", "openal64"); extractNativeLib("linux", "openal64");
}
if(needNativeBullet){
extractNativeLib("linux", "bulletjme64");
}
break; break;
case Linux32: case Linux32:
if (needLWJGL){ if (needLWJGL) {
extractNativeLib("linux", "lwjgl"); extractNativeLib("linux", "lwjgl");
} }
if (needJOGL){ if (needJInput) {
extractNativeLib("linux32", "jogl_awt");
extractNativeLib("linux32", "jogl");
}
if (needJOAL)
extractNativeLib("linux32", "joal_native");
if (needGG)
extractNativeLib("linux32", "gluegen-rt");
if (needJInput)
extractNativeLib("linux", "jinput-linux"); extractNativeLib("linux", "jinput-linux");
}
if (needOAL) if (needOAL) {
extractNativeLib("linux", "openal"); extractNativeLib("linux", "openal");
break;
case MacOSX_PPC32:
if (needLWJGL){
extractNativeLib("macosx", "lwjgl");
} }
if (needJOGL){ if(needNativeBullet){
extractNativeLib("macosx_ppc", "jogl_awt"); extractNativeLib("linux", "bulletjme");
extractNativeLib("macosx_ppc", "jogl");
} }
if (needJOAL)
throw new UnsupportedOperationException("JOAL not available on Mac OS PPC");
if (needGG)
extractNativeLib("macosx_ppc", "gluegen-rt");
// if (needOAL)
// extractNativeLib("macosx", "openal");
if (needJInput)
extractNativeLib("macosx", "jinput-osx");
break; break;
case MacOSX_PPC32:
case MacOSX32: case MacOSX32:
if (needLWJGL){
extractNativeLib("macosx", "lwjgl");
}
if (needJOGL){
extractNativeLib("macosx_universal", "jogl_awt");
extractNativeLib("macosx_universal", "jogl");
}
if (needJOAL)
extractNativeLib("macosx_universal", "joal_native");
if (needGG)
extractNativeLib("macosx_universal", "gluegen-rt");
// if (needOAL)
// extractNativeLib("macosx", "openal");
if (needJInput)
extractNativeLib("macosx", "jinput-osx");
break;
case MacOSX_PPC64: case MacOSX_PPC64:
if (needLWJGL){ case MacOSX64:
if (needLWJGL) {
extractNativeLib("macosx", "lwjgl"); extractNativeLib("macosx", "lwjgl");
} }
if (needJOGL){
extractNativeLib("macosx_ppc", "jogl_awt");
extractNativeLib("macosx_ppc", "jogl");
}
if (needJOAL)
throw new UnsupportedOperationException("JOAL not available on Mac OS 64 bit");
if (needGG)
extractNativeLib("macosx_ppc", "gluegen-rt");
// if (needOAL) // if (needOAL)
// extractNativeLib("macosx", "openal"); // extractNativeLib("macosx", "openal");
if (needJInput) {
if (needJInput)
extractNativeLib("macosx", "jinput-osx"); extractNativeLib("macosx", "jinput-osx");
break;
case MacOSX64:
if (needLWJGL){
extractNativeLib("macosx", "lwjgl");
} }
if (needJOGL){ if(needNativeBullet){
extractNativeLib("macosx_universal", "jogl_awt"); extractNativeLib("macosx", "bulletjme");
extractNativeLib("macosx_universal", "jogl");
} }
if (needJOAL)
throw new UnsupportedOperationException("JOAL not available on Mac OS 64 bit");
if (needGG)
extractNativeLib("macosx_universal", "gluegen-rt");
// if (needOAL)
// extractNativeLib("macosx", "openal");
if (needJInput)
extractNativeLib("macosx", "jinput-osx");
break; break;
} }
} }
} }

Loading…
Cancel
Save