Skip to content

Commit fbeb17e

Browse files
committed
move sdk to trunk
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@6972 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
0 parents  commit fbeb17e

File tree

1,235 files changed

+94676
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,235 files changed

+94676
-0
lines changed

BasicGameTemplate/MANIFEST.MF

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
X-Comment: Created with jMonkeyPlatform

BasicGameTemplate/build.xml

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- You may freely edit this file. See commented blocks below for -->
3+
<!-- some examples of how to customize the build. -->
4+
<!-- (If you delete it and reopen the project it will be recreated.) -->
5+
<!-- By default, only the Clean and Build commands use this build script. -->
6+
<!-- Commands such as Run, Debug, and Test only use this build script if -->
7+
<!-- the Compile on Save feature is turned off for the project. -->
8+
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9+
<!-- in the project's Project Properties dialog box.-->
10+
<project name="BasicGameTemplate" default="default" basedir=".">
11+
<description>Builds, tests, and runs the project BasicGameTemplate.</description>
12+
<import file="nbproject/build-impl.xml"/>
13+
14+
<!--
15+
16+
There exist several targets which are by default empty and which can be
17+
used for execution of your tasks. These targets are usually executed
18+
before and after some main targets. They are:
19+
20+
-pre-init: called before initialization of project properties
21+
-post-init: called after initialization of project properties
22+
-pre-compile: called before javac compilation
23+
-post-compile: called after javac compilation
24+
-pre-compile-single: called before javac compilation of single file
25+
-post-compile-single: called after javac compilation of single file
26+
-pre-compile-test: called before javac compilation of JUnit tests
27+
-post-compile-test: called after javac compilation of JUnit tests
28+
-pre-compile-test-single: called before javac compilation of single JUnit test
29+
-post-compile-test-single: called after javac compilation of single JUunit test
30+
-pre-jar: called before JAR building
31+
-post-jar: called after JAR building
32+
-post-clean: called after cleaning build products
33+
34+
(Targets beginning with '-' are not intended to be called on their own.)
35+
36+
Example of inserting an obfuscator after compilation could look like this:
37+
38+
<target name="-post-compile">
39+
<obfuscate>
40+
<fileset dir="${build.classes.dir}"/>
41+
</obfuscate>
42+
</target>
43+
44+
For list of available properties check the imported
45+
nbproject/build-impl.xml file.
46+
47+
48+
Another way to customize the build is by overriding existing main targets.
49+
The targets of interest are:
50+
51+
-init-macrodef-javac: defines macro for javac compilation
52+
-init-macrodef-junit: defines macro for junit execution
53+
-init-macrodef-debug: defines macro for class debugging
54+
-init-macrodef-java: defines macro for class execution
55+
-do-jar-with-manifest: JAR building (if you are using a manifest)
56+
-do-jar-without-manifest: JAR building (if you are not using a manifest)
57+
run: execution of project
58+
-javadoc-build: Javadoc generation
59+
test-report: JUnit report generation
60+
61+
An example of overriding the target for project execution could look like this:
62+
63+
<target name="run" depends="BasicGameTemplate-impl.jar">
64+
<exec dir="bin" executable="launcher.exe">
65+
<arg file="${dist.jar}"/>
66+
</exec>
67+
</target>
68+
69+
Notice that the overridden target depends on the jar target and not only on
70+
the compile target as the regular run target does. Again, for a list of available
71+
properties which you can use, check the target you are overriding in the
72+
nbproject/build-impl.xml file.
73+
74+
-->
75+
76+
</project>
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<jnlp spec="1.0+" codebase="${jnlp.codebase}" href="launch.jnlp">
2+
<information>
3+
<title>${APPLICATION.TITLE}</title>
4+
<vendor>${APPLICATION.VENDOR}</vendor>
5+
<homepage href="${APPLICATION.HOMEPAGE}"/>
6+
<description>${APPLICATION.DESC}</description>
7+
<description kind="short">${APPLICATION.DESC.SHORT}</description>
8+
<!--${JNLP.ICONS}-->
9+
<!--${JNLP.OFFLINE.ALLOWED}-->
10+
</information>
11+
<!--${JNLP.SECURITY}-->
12+
<resources>
13+
<!--${JNLP.RESOURCES.RUNTIME}-->
14+
<!--${JNLP.RESOURCES.MAIN.JAR}-->
15+
<!--${JNLP.RESOURCES.JARS}-->
16+
<jar href='lib/assets.jar'/>
17+
<!--${JNLP.RESOURCES.EXTENSIONS}-->
18+
</resources>
19+
<application-desc main-class="${jnlp.main.class}">
20+
<!--${JNLP.APPLICATION.ARGS}-->
21+
</application-desc>
22+
</jnlp>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build.xml.data.CRC32=94bf7c61
2+
build.xml.script.CRC32=79a29eb7
3+
build.xml.stylesheet.CRC32=[email protected]
4+
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
5+
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
6+
nbproject/build-impl.xml.data.CRC32=94bf7c61
7+
nbproject/build-impl.xml.script.CRC32=0f295843
8+
nbproject/build-impl.xml.stylesheet.CRC32=[email protected]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
application.title=MyGame
2+
application.vendor=MyCompany
3+
assets.jar.name=assets.jar
4+
assets.excludes=**/*.mesh\.xml,**/*.skeleton\.xml,**/*.scene,**/*.material,**/*.obj,**/*.mtl,**/*.j3odata
5+
assets.folder.name=assets
6+
assets.compress=true
7+
build.classes.dir=${build.dir}/classes
8+
build.classes.excludes=**/*.java,**/*.form
9+
# This directory is removed when the project is cleaned:
10+
build.dir=build
11+
build.generated.dir=${build.dir}/generated
12+
build.generated.sources.dir=${build.dir}/generated-sources
13+
# Only compile against the classpath explicitly listed here:
14+
build.sysclasspath=ignore
15+
build.test.classes.dir=${build.dir}/test/classes
16+
build.test.results.dir=${build.dir}/test/results
17+
# Uncomment to specify the preferred debugger connection transport:
18+
#debug.transport=dt_socket
19+
debug.classpath=\
20+
${run.classpath}
21+
debug.test.classpath=\
22+
${run.test.classpath}
23+
# This directory is removed when the project is cleaned:
24+
dist.dir=dist
25+
dist.jar=${dist.dir}/${application.title}.jar
26+
dist.javadoc.dir=${dist.dir}/javadoc
27+
endorsed.classpath=
28+
excludes=
29+
includes=**
30+
jar.compress=false
31+
javac.classpath=\
32+
${libs.jme3.classpath}:\
33+
${libs.jme3-libraries.classpath}
34+
# Space-separated list of extra javac options
35+
javac.compilerargs=
36+
javac.deprecation=false
37+
javac.source=1.5
38+
javac.target=1.5
39+
javac.test.classpath=\
40+
${javac.classpath}:\
41+
${build.classes.dir}:\
42+
${libs.junit.classpath}:\
43+
${libs.junit_4.classpath}
44+
javadoc.additionalparam=
45+
javadoc.author=false
46+
javadoc.encoding=${source.encoding}
47+
javadoc.noindex=false
48+
javadoc.nonavbar=false
49+
javadoc.notree=false
50+
javadoc.private=false
51+
javadoc.splitindex=true
52+
javadoc.use=true
53+
javadoc.version=false
54+
javadoc.windowtitle=
55+
jaxbwiz.endorsed.dirs="${netbeans.home}/../ide12/modules/ext/jaxb/api"
56+
jnlp.codebase.type=local
57+
jnlp.descriptor=application
58+
jnlp.enabled=false
59+
jnlp.offline-allowed=false
60+
jnlp.signed=false
61+
main.class=mygame.Main
62+
meta.inf.dir=${src.dir}/META-INF
63+
manifest.file=MANIFEST.MF
64+
platform.active=default_platform
65+
run.classpath=\
66+
${javac.classpath}:\
67+
${build.classes.dir}:\
68+
${assets.folder.name}
69+
# Space-separated list of JVM arguments used when running the project
70+
# (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value
71+
# or test-sys-prop.name=value to set system properties for unit tests):
72+
run.jvmargs=
73+
run.test.classpath=\
74+
${javac.test.classpath}:\
75+
${build.test.classes.dir}
76+
source.encoding=UTF-8
77+
src.dir=src
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://www.netbeans.org/ns/project/1">
3+
<type>org.netbeans.modules.java.j2seproject</type>
4+
<configuration>
5+
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
6+
<name>BasicGameTemplate</name>
7+
<source-roots>
8+
<root id="src.dir"/>
9+
</source-roots>
10+
<test-roots/>
11+
</data>
12+
</configuration>
13+
</project>
+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
package mygame;
2+
3+
import com.jme3.app.SimpleApplication;
4+
import com.jme3.material.Material;
5+
import com.jme3.math.ColorRGBA;
6+
import com.jme3.math.Vector3f;
7+
import com.jme3.renderer.RenderManager;
8+
import com.jme3.scene.Geometry;
9+
import com.jme3.scene.shape.Box;
10+
11+
/**
12+
* test
13+
* @author normenhansen
14+
*/
15+
public class Main extends SimpleApplication {
16+
17+
public static void main(String[] args) {
18+
Main app = new Main();
19+
app.start();
20+
}
21+
22+
@Override
23+
public void simpleInitApp() {
24+
Box b = new Box(Vector3f.ZERO, 1, 1, 1);
25+
Geometry geom = new Geometry("Box", b);
26+
geom.updateModelBound();
27+
28+
Material mat = new Material(assetManager, "Common/MatDefs/Misc/SolidColor.j3md");
29+
mat.setColor("m_Color", ColorRGBA.Blue);
30+
geom.setMaterial(mat);
31+
32+
rootNode.attachChild(geom);
33+
}
34+
35+
@Override
36+
public void simpleUpdate(float tpf) {
37+
//TODO: add update code
38+
}
39+
40+
@Override
41+
public void simpleRender(RenderManager rm) {
42+
//TODO: add render code
43+
}
44+
}

JME3TestsTemplate/build.xml

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- You may freely edit this file. See commented blocks below for -->
3+
<!-- some examples of how to customize the build. -->
4+
<!-- (If you delete it and reopen the project it will be recreated.) -->
5+
<!-- By default, only the Clean and Build commands use this build script. -->
6+
<!-- Commands such as Run, Debug, and Test only use this build script if -->
7+
<!-- the Compile on Save feature is turned off for the project. -->
8+
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9+
<!-- in the project's Project Properties dialog box.-->
10+
<project name="JME3TestsTemplate" default="default" basedir=".">
11+
<description>Builds, tests, and runs the project JME3TestsTemplate.</description>
12+
<import file="nbproject/build-impl.xml"/>
13+
<!--
14+
15+
There exist several targets which are by default empty and which can be
16+
used for execution of your tasks. These targets are usually executed
17+
before and after some main targets. They are:
18+
19+
-pre-init: called before initialization of project properties
20+
-post-init: called after initialization of project properties
21+
-pre-compile: called before javac compilation
22+
-post-compile: called after javac compilation
23+
-pre-compile-single: called before javac compilation of single file
24+
-post-compile-single: called after javac compilation of single file
25+
-pre-compile-test: called before javac compilation of JUnit tests
26+
-post-compile-test: called after javac compilation of JUnit tests
27+
-pre-compile-test-single: called before javac compilation of single JUnit test
28+
-post-compile-test-single: called after javac compilation of single JUunit test
29+
-pre-jar: called before JAR building
30+
-post-jar: called after JAR building
31+
-post-clean: called after cleaning build products
32+
33+
(Targets beginning with '-' are not intended to be called on their own.)
34+
35+
Example of inserting an obfuscator after compilation could look like this:
36+
37+
<target name="-post-compile">
38+
<obfuscate>
39+
<fileset dir="${build.classes.dir}"/>
40+
</obfuscate>
41+
</target>
42+
43+
For list of available properties check the imported
44+
nbproject/build-impl.xml file.
45+
46+
47+
Another way to customize the build is by overriding existing main targets.
48+
The targets of interest are:
49+
50+
-init-macrodef-javac: defines macro for javac compilation
51+
-init-macrodef-junit: defines macro for junit execution
52+
-init-macrodef-debug: defines macro for class debugging
53+
-init-macrodef-java: defines macro for class execution
54+
-do-jar-with-manifest: JAR building (if you are using a manifest)
55+
-do-jar-without-manifest: JAR building (if you are not using a manifest)
56+
run: execution of project
57+
-javadoc-build: Javadoc generation
58+
test-report: JUnit report generation
59+
60+
An example of overriding the target for project execution could look like this:
61+
62+
<target name="run" depends="JME3TestsTemplate-impl.jar">
63+
<exec dir="bin" executable="launcher.exe">
64+
<arg file="${dist.jar}"/>
65+
</exec>
66+
</target>
67+
68+
Notice that the overridden target depends on the jar target and not only on
69+
the compile target as the regular run target does. Again, for a list of available
70+
properties which you can use, check the target you are overriding in the
71+
nbproject/build-impl.xml file.
72+
73+
-->
74+
</project>

0 commit comments

Comments
 (0)