- Revision
- 1480
- Author
- mauro
- Date
- 2009-12-28 09:15:44 -0600 (Mon, 28 Dec 2009)
Log Message
Ensure compatibility with JDK 1.5
Modified Paths
Diff
Modified: trunk/core/jbehave-ant/src/main/java/org/jbehave/ant/ReportRendererTask.java (1479 => 1480)
--- trunk/core/jbehave-ant/src/main/java/org/jbehave/ant/ReportRendererTask.java 2009-12-27 17:10:34 UTC (rev 1479) +++ trunk/core/jbehave-ant/src/main/java/org/jbehave/ant/ReportRendererTask.java 2009-12-28 15:15:44 UTC (rev 1480) @@ -4,9 +4,7 @@ import static org.apache.tools.ant.Project.MSG_INFO; import static org.apache.tools.ant.Project.MSG_WARN; -import java.io.File; -import java.io.IOException; -import java.io.StringReader; +import java.io.*; import java.util.List; import java.util.Properties; @@ -63,7 +61,7 @@ public void setTemplateProperties(String properties){ try { - templateProperties.load(new StringReader(properties)); + templateProperties.load(new ByteArrayInputStream(properties.getBytes())); } catch (IOException e) { String message = "Failed to load template properties: "+properties; log(message, MSG_WARN);
To unsubscribe from this list please visit:
