[Swift-commit] cog r3658

swift at ci.uchicago.edu swift at ci.uchicago.edu
Thu Apr 25 15:10:09 CDT 2013


------------------------------------------------------------------------
r3658 | davidkelly999 | 2013-04-25 15:09:07 -0500 (Thu, 25 Apr 2013) | 2 lines

Make properties case insensitive

------------------------------------------------------------------------
Index: modules/provider-gt2/src/org/globus/cog/abstraction/impl/execution/gt2/JobSubmissionTaskHandler.java
===================================================================
--- modules/provider-gt2/src/org/globus/cog/abstraction/impl/execution/gt2/JobSubmissionTaskHandler.java	(revision 3657)
+++ modules/provider-gt2/src/org/globus/cog/abstraction/impl/execution/gt2/JobSubmissionTaskHandler.java	(working copy)
@@ -382,9 +382,9 @@
         HashSet<String> RSLAttributes = new HashSet<String>(
 		Arrays.asList("directory", "executable", "arguments", "stdin",
                               "stdout", "stderr", "count", "environment",
-                              "maxTime", "maxWallTime", "maxCpuTime", "jobType",
-                              "gramMyJob", "queue", "project", "hostCount",
-                              "dryRun", "minMemory", "maxMemory", "save_state",
+                              "maxtime", "maxwalltime", "maxcputime", "jobtype",
+                              "grammyjob", "queue", "project", "hostcount",
+                              "dryrun", "minmemory", "maxmemory", "save_state",
                               "two_phase", "restart", "stdout_position",
                               "stderr_position", "remote_io_url")
         );
@@ -399,7 +399,7 @@
                 if (key.equalsIgnoreCase("maxwalltime")) {
                     value = WallTime.normalize(value, jobManager);
                 }
-                if(RSLAttributes.contains(key)) {
+                if(RSLAttributes.contains(key.toLowerCase())) {
                     rsl.add(new NameOpValue(key, NameOpValue.EQ, value));
                 }
             }



More information about the Swift-commit mailing list