summaryrefslogtreecommitdiffstats
path: root/Necessitas_SDK/packages/org.kde.necessitas.misc.ant/meta/installscript.qs
diff options
context:
space:
mode:
Diffstat (limited to 'Necessitas_SDK/packages/org.kde.necessitas.misc.ant/meta/installscript.qs')
-rw-r--r--Necessitas_SDK/packages/org.kde.necessitas.misc.ant/meta/installscript.qs25
1 files changed, 22 insertions, 3 deletions
diff --git a/Necessitas_SDK/packages/org.kde.necessitas.misc.ant/meta/installscript.qs b/Necessitas_SDK/packages/org.kde.necessitas.misc.ant/meta/installscript.qs
index 75fc78c..23df821 100644
--- a/Necessitas_SDK/packages/org.kde.necessitas.misc.ant/meta/installscript.qs
+++ b/Necessitas_SDK/packages/org.kde.necessitas.misc.ant/meta/installscript.qs
@@ -45,9 +45,28 @@ Component.prototype.createOperations = function()
// Call the base createOperations(unpacking ...)
component.createOperations();
- component.addOperation( "SetQtCreatorValue",
- "@TargetDir@",
- "AndroidConfigurations",
+ component.addOperation( "RegisterPersistentSettings",
+ "android.xml",
"AntLocation",
"@TargetDir@/apache-ant-1.8.2/bin/"+OsToAnt() );
}
+
+Component.prototype.isDefault = function()
+{
+ if (installer.value("os") == "x11" || installer.value("os") == "mac")
+ {
+ ant = installer.execute( "/usr/bin/which", new Array( "ant" ) )[0];
+ if (!ant)
+ {
+ return true;
+ }
+ else
+ {
+ return false;
+ }
+ }
+ else
+ {
+ return true;
+ }
+}