|
@@ -304,7 +304,7 @@ createProjectXml.inputs.files configurations.corelibs.resolve()
|
|
createProjectXml.inputs.files configurations.optlibs.resolve()
|
|
createProjectXml.inputs.files configurations.optlibs.resolve()
|
|
createProjectXml.outputs.dir "jme3-project-baselibs/src/com/jme3/gde/project/baselibs/"
|
|
createProjectXml.outputs.dir "jme3-project-baselibs/src/com/jme3/gde/project/baselibs/"
|
|
|
|
|
|
-task copyProjectLibs(dependsOn: configurations.corelibs) <<{
|
|
|
|
|
|
+task copyProjectLibs(dependsOn: [configurations.corelibs, configurations.testdatalibs]) <<{
|
|
description "Copies the jar files needed to supply the J2SE Libraries in the "+
|
|
description "Copies the jar files needed to supply the J2SE Libraries in the "+
|
|
"SDK to jme3-project-baselibs and jme3-project-libraries"
|
|
"SDK to jme3-project-baselibs and jme3-project-libraries"
|
|
|
|
|
|
@@ -335,12 +335,28 @@ task copyProjectLibs(dependsOn: configurations.corelibs) <<{
|
|
into "jme3-project-libraries/release/libs/"
|
|
into "jme3-project-libraries/release/libs/"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ project.configurations.testdatalibs.dependencies.each {dep ->
|
|
|
|
+ // copy jme3 test data to jme3-project-testdata
|
|
|
|
+ dep.dependencyProject.configurations.archives.allArtifacts.each{ artifact->
|
|
|
|
+ if(artifact.classifier == "sources"){
|
|
|
|
+ } else if(artifact.classifier == "javadoc"){
|
|
|
|
+ } else{
|
|
|
|
+ copy {
|
|
|
|
+ from artifact.file
|
|
|
|
+ into "jme3-project-testdata/release/libs/"
|
|
|
|
+ rename ("jme3-testdata(.*)", "jme3-testdata.jar")
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
copyProjectLibs.inputs.files configurations.corelibs.resolve()
|
|
copyProjectLibs.inputs.files configurations.corelibs.resolve()
|
|
copyProjectLibs.inputs.files configurations.optlibs.resolve()
|
|
copyProjectLibs.inputs.files configurations.optlibs.resolve()
|
|
|
|
+copyProjectLibs.inputs.files configurations.testdatalibs.resolve()
|
|
copyProjectLibs.outputs.dir "jme3-project-baselibs/release/libs/"
|
|
copyProjectLibs.outputs.dir "jme3-project-baselibs/release/libs/"
|
|
copyProjectLibs.outputs.dir "jme3-project-libraries/release/libs/"
|
|
copyProjectLibs.outputs.dir "jme3-project-libraries/release/libs/"
|
|
|
|
+copyProjectLibs.outputs.dir "jme3-project-testdata/release/libs/"
|
|
|
|
|
|
ant.properties['plugins.version'] = jmeVersion
|
|
ant.properties['plugins.version'] = jmeVersion
|
|
ant.properties['app.version']= jmeMainVersion + jmeVersionSuffix
|
|
ant.properties['app.version']= jmeMainVersion + jmeVersionSuffix
|
|
@@ -354,7 +370,11 @@ task buildSdk(dependsOn: [copyBaseLibs, copyProjectLibs, createProjectXml, creat
|
|
}
|
|
}
|
|
buildSdk.inputs.files configurations.corelibs.resolve()
|
|
buildSdk.inputs.files configurations.corelibs.resolve()
|
|
buildSdk.inputs.files configurations.optlibs.resolve()
|
|
buildSdk.inputs.files configurations.optlibs.resolve()
|
|
-buildSdk.inputs.files "jme3-*"
|
|
|
|
|
|
+file('.').eachDir{
|
|
|
|
+ if(it.name.startsWith("jme3-") && it.isDirectory()){
|
|
|
|
+ buildSdk.inputs.dir it
|
|
|
|
+ }
|
|
|
|
+}
|
|
buildSdk.outputs.dir "build"
|
|
buildSdk.outputs.dir "build"
|
|
|
|
|
|
task cleanSdk() <<{
|
|
task cleanSdk() <<{
|