-<?xml version="1.0" encoding="UTF-8"?>\r
-<classpath>\r
- <classpathentry kind="src" path="src/main/java"/>\r
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>\r
- <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>\r
- <classpathentry kind="output" path="target/classes"/>\r
-</classpath>\r
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
--- /dev/null
+#Fri Aug 29 11:26:23 CEST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.debug.lineNumber=generate
+org.eclipse.jdt.core.compiler.debug.localVariable=generate
+org.eclipse.jdt.core.compiler.debug.sourceFile=generate
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
package org.argeo.slc.ui.launch.script;\r
\r
+import java.io.ByteArrayInputStream;\r
import java.io.IOException;\r
import java.io.StringReader;\r
import java.util.List;\r
\r
// Properties\r
Properties properties = new Properties();\r
- StringReader reader = new StringReader(configuration.getAttribute(\r
- SlcScriptUtils.ATTR_PROPERTIES, ""));\r
+ String str = configuration.getAttribute(SlcScriptUtils.ATTR_PROPERTIES,\r
+ "");\r
+ ByteArrayInputStream in = new ByteArrayInputStream(str.getBytes());\r
try {\r
- properties.load(reader);\r
+ properties.load(in);\r
} catch (IOException e) {\r
throw new RuntimeException("Cannot read properties", e);\r
} finally {\r
- if (reader != null)\r
- reader.close();\r
+ if (in != null)\r
+ try {\r
+ in.close();\r
+ } catch (IOException e) {\r
+ // silent\r
+ }\r
}\r
\r
for (Object key : properties.keySet()) {\r