|
@@ -426,6 +426,22 @@ task createProjectXml(dependsOn: configurations.corelibs) <<{
|
|
|
|
|
|
resource "jar:nbinst://com.jme3.gde.project.baselibs/libs/${jmeJarFiles[0]}!/"
|
|
|
|
|
|
+ /* Usually we don't add all the jmeJarFiles, this is because e.g. each library depends on core,
|
|
|
+ * some depend on jme3-terrain etc, but it's the users duty to add the correct libraries.
|
|
|
+ * If we would add all those each library would have it's one jme3-core, which might even lead
|
|
|
+ * to build errors then.
|
|
|
+ */
|
|
|
+ if (dep.name.equals("jme3_xbuf")) {
|
|
|
+ jmeJarFiles.each{jar ->
|
|
|
+ if (jar.startsWith("jme3_xbuf")) {
|
|
|
+ /* Technically you would only need the loaders, not the spatial viewer,
|
|
|
+ * but users can edit the library if they want to strip off
|
|
|
+ * the last few possible kilobytes */
|
|
|
+ resource "jar:nbinst://com.jme3.gde.project.baselibs/libs/$jar!/"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
externalJarFiles.each{jar ->
|
|
|
resource "jar:nbinst://com.jme3.gde.project.libraries/libs/${jar}!/"
|
|
|
}
|