diff --git a/sdk/jme3-android/src/com/jme3/gde/android/MobileCompositeProvider.java b/sdk/jme3-android/src/com/jme3/gde/android/MobileCompositeProvider.java
index 37f58e6b5..d0142acf9 100644
--- a/sdk/jme3-android/src/com/jme3/gde/android/MobileCompositeProvider.java
+++ b/sdk/jme3-android/src/com/jme3/gde/android/MobileCompositeProvider.java
@@ -62,7 +62,7 @@ public class MobileCompositeProvider implements ProjectCustomizer.CompositeCateg
private class SavePropsListener implements ActionListener {
private String extensionName = "mobile";
- private String extensionVersion = "v0.9";
+ private String extensionVersion = "v0.10";
private String[] extensionDependencies = new String[]{"jar", "-mobile-deployment"};
private ProjectExtensionManager manager = new ProjectExtensionManager(extensionName, extensionVersion, extensionDependencies);
private ProjectExtensionProperties properties;
@@ -78,7 +78,7 @@ public class MobileCompositeProvider implements ProjectCustomizer.CompositeCateg
if ("true".equals(properties.getProperty("mobile.android.enabled"))) {
manager.loadTargets("nbres:/com/jme3/gde/android/mobile-targets.xml");
manager.checkExtension(project);
- manager.addRunConfiguration(project, "run-android", "Android Emulator", "run-android");
+ manager.addRunConfiguration(project, "run-android", "Android Device", "run-android", "run-android", "clean clean-android");
AndroidSdkTool.checkProject(project,
properties.getProperty("mobile.android.target"),
properties.getProperty("application.title"),
diff --git a/sdk/jme3-android/src/com/jme3/gde/android/mobile-targets.xml b/sdk/jme3-android/src/com/jme3/gde/android/mobile-targets.xml
index f8e8f4535..47d0cbe71 100644
--- a/sdk/jme3-android/src/com/jme3/gde/android/mobile-targets.xml
+++ b/sdk/jme3-android/src/com/jme3/gde/android/mobile-targets.xml
@@ -2,7 +2,7 @@
-
+
diff --git a/sdk/jme3-core/src/com/jme3/gde/core/j2seproject/ProjectExtensionManager.java b/sdk/jme3-core/src/com/jme3/gde/core/j2seproject/ProjectExtensionManager.java
index 558f97fc8..f0662569d 100644
--- a/sdk/jme3-core/src/com/jme3/gde/core/j2seproject/ProjectExtensionManager.java
+++ b/sdk/jme3-core/src/com/jme3/gde/core/j2seproject/ProjectExtensionManager.java
@@ -315,6 +315,29 @@ public class ProjectExtensionManager {
}
}
+ /**
+ * Adds a run configuration (works direct, no removing)
+ * @param project
+ * @param name File name of the configuration
+ * @param label Label in the dropdown box
+ * @param runTarget Target for "run"
+ * @param debugTarget Target for "debug"
+ */
+ public void addRunConfiguration(Project project, String name, String label, String runTarget, String debugTarget, String cleanTarget) {
+ try {
+ EditableProperties properties = new EditableProperties(true);
+ properties.setProperty("$label", label);
+ properties.setProperty("$target.run", runTarget);
+ properties.setProperty("$target.debug", debugTarget);
+ properties.setProperty("$target.clean", cleanTarget);
+ J2SEProjectConfigurations.createConfigurationFiles(project, name, properties, null);
+ } catch (IOException ex) {
+ Exceptions.printStackTrace(ex);
+ } catch (IllegalArgumentException ex) {
+ Exceptions.printStackTrace(ex);
+ }
+ }
+
/**
* Adds a run configuration (works direct, no removing)
* @param project