You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2010/10/02 04:00:06 UTC
svn commit: r1003730 - in /incubator/oodt/trunk: CHANGES.txt
workflow/src/main/java/org/apache/oodt/cas/workflow/structs/TaskJobInput.java
Author: mattmann
Date: Sat Oct 2 02:00:06 2010
New Revision: 1003730
URL: http://svn.apache.org/viewvc?rev=1003730&view=rev
Log:
- fix for OODT-44 doesn't build in JDK5 because of stringPropertyNames() in cas/workflow/structs/TaskJobInput.java
Modified:
incubator/oodt/trunk/CHANGES.txt
incubator/oodt/trunk/workflow/src/main/java/org/apache/oodt/cas/workflow/structs/TaskJobInput.java
Modified: incubator/oodt/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/CHANGES.txt?rev=1003730&r1=1003729&r2=1003730&view=diff
==============================================================================
--- incubator/oodt/trunk/CHANGES.txt (original)
+++ incubator/oodt/trunk/CHANGES.txt Sat Oct 2 02:00:06 2010
@@ -5,6 +5,9 @@ Apache OODT Change Log
Release 0.1-incubating - Current Development
--------------------------------------------
+* OODT-44 doesn't build in JDK5 because of stringPropertyNames() in
+ cas/workflow/structs/TaskJobInput.java (mattmann, davekale)
+
* OODT-42 Fix CAS-Catalog to work in apache and pull over new changes
since apache port (bfoster)
Modified: incubator/oodt/trunk/workflow/src/main/java/org/apache/oodt/cas/workflow/structs/TaskJobInput.java
URL: http://svn.apache.org/viewvc/incubator/oodt/trunk/workflow/src/main/java/org/apache/oodt/cas/workflow/structs/TaskJobInput.java?rev=1003730&r1=1003729&r2=1003730&view=diff
==============================================================================
--- incubator/oodt/trunk/workflow/src/main/java/org/apache/oodt/cas/workflow/structs/TaskJobInput.java (original)
+++ incubator/oodt/trunk/workflow/src/main/java/org/apache/oodt/cas/workflow/structs/TaskJobInput.java Sat Oct 2 02:00:06 2010
@@ -175,8 +175,10 @@ public class TaskJobInput implements Job
Properties fileProps = new Properties();
in = new BufferedInputStream(new FileInputStream(new File(dynMetadataFile)));
fileProps.load(in);
- for (String key: fileProps.stringPropertyNames())
- this.dynMetadata.addMetadata(key, fileProps.getProperty(key));
+ for (Object key: fileProps.keySet()){
+ String keyStr = (String)key;
+ this.dynMetadata.addMetadata(keyStr, fileProps.getProperty(keyStr));
+ }
} catch (RuntimeException ex) {
throw ex;
} catch (Exception ignore) {