|
From: <bh...@us...> - 2006-10-24 14:34:59
|
Revision: 312
http://svn.sourceforge.net/cishell/?rev=312&view=rev
Author: bh2
Date: 2006-10-24 07:34:55 -0700 (Tue, 24 Oct 2006)
Log Message:
-----------
now runner checks to see if there is any outData for an executable program
Modified Paths:
--------------
trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableRunner.java
Modified: trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableRunner.java
===================================================================
--- trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableRunner.java 2006-10-24 14:05:50 UTC (rev 311)
+++ trunk/templates/org.cishell.templates/src/org/cishell/templates/staticexecutable/StaticExecutableRunner.java 2006-10-24 14:34:55 UTC (rev 312)
@@ -86,8 +86,15 @@
}
protected Data[] toData(File[] files) {
- String[] formats = ((String)props.get(AlgorithmProperty.OUT_DATA)).split(",");
+ String outData = (String)props.get(AlgorithmProperty.OUT_DATA);
+ //if out data is null then it returns no data
+ if ((""+outData).trim().equalsIgnoreCase(AlgorithmProperty.NULL_DATA)) {
+ return null;
+ }
+
+ String[] formats = outData.split(",");
+
Map nameToFileMap = new HashMap();
for (int i=0; i < files.length; i++) {
nameToFileMap.put(files[i].getName(), files[i]);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|