Revision: 4726
http://sourceforge.net/p/vexi/code/4726
Author: mkpg2
Date: 2014-09-09 12:16:06 +0000 (Tue, 09 Sep 2014)
Log Message:
-----------
Fix. Fork property should not be a bool.
Modified Paths:
--------------
trunk/org.vexi-build.deployment/src/main/java/org/vexi/build/deployment/VexiDeploymentAssembler.java
Modified:
trunk/org.vexi-build.deployment/src/main/java/org/vexi/build/deployment/VexiDeploymentAssembler.java
===================================================================
---
trunk/org.vexi-build.deployment/src/main/java/org/vexi/build/deployment/VexiDeploymentAssembler.java
2014-09-06 23:53:57 UTC (rev 4725)
+++
trunk/org.vexi-build.deployment/src/main/java/org/vexi/build/deployment/VexiDeploymentAssembler.java
2014-09-09 12:16:06 UTC (rev 4726)
@@ -6,7 +6,6 @@
import org.vexi.util.IOUtil;
import udon.UDON;
-
import ebuild.api.*;
import ebuild.api.log.ILogger;
import ebuild.api.plugin.*;
@@ -155,7 +154,7 @@
Map m = new LinkedHashMap();
m.put("applet-jar",launcher.getName());
m.put("applet-class",props.expectString("applet-class"));
- m.put("fork", props.getBool("fork", true));
+ m.put("fork",
parseBooleanTolerantly(props.getString("fork", "yes")));
if(core!=null)
m.put("core-signed",core.getName());
m.putAll(vexisMap);
@@ -172,4 +171,16 @@
}
return CollectionUtil.singletonList(output);
}
+
+ static public Boolean parseBooleanTolerantly(String string){
+ if(string==null) return null;
+
+ String s = string.toLowerCase();
+ if("true".equals(s)) return true;
+ if("yes".equals(s)) return true;
+ if("false".equals(s)) return false;
+ if("no".equals(s)) return false;
+ return null;
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn