[Swift-commit] cog r3844
swift at ci.uchicago.edu
swift at ci.uchicago.edu
Tue Nov 26 11:10:03 CST 2013
------------------------------------------------------------------------
r3844 | davidkelly999 | 2013-11-26 11:05:53 -0600 (Tue, 26 Nov 2013) | 2 lines
Allow a user defined location for scripts
------------------------------------------------------------------------
Index: modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/common/AbstractExecutor.java
===================================================================
--- modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/common/AbstractExecutor.java (revision 3843)
+++ modules/provider-localscheduler/src/org/globus/cog/abstraction/impl/scheduler/common/AbstractExecutor.java (working copy)
@@ -64,9 +64,14 @@
public void start()
throws AuthorizationException, IOException, ProcessException {
- File scriptdir = new File(System.getProperty("user.home")
- + File.separatorChar + ".globus" + File.separatorChar
- + "scripts");
+ String scriptdirPath = System.getProperty("script.dir");
+ if(scriptdirPath == null) {
+ scriptdirPath = System.getProperty("user.home")
+ + File.separatorChar + ".globus" + File.separatorChar
+ + "scripts";
+ }
+ File scriptdir = new File(scriptdirPath);
+
scriptdir.mkdirs();
if (!scriptdir.exists()) {
throw new IOException("Failed to create script directory ("
More information about the Swift-commit
mailing list