]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.project/src/org/simantics/project/management/WorkspaceUtil.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.project / src / org / simantics / project / management / WorkspaceUtil.java
index 959d8e94bf7208a522c14963092462d956ca23fb..14647bf83f51d6c45a667fb3a3f3282599913b61 100644 (file)
@@ -1,68 +1,68 @@
-/*******************************************************************************\r
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management\r
- * in Industry THTH ry.\r
- * All rights reserved. This program and the accompanying materials\r
- * are made available under the terms of the Eclipse Public License v1.0\r
- * which accompanies this distribution, and is available at\r
- * http://www.eclipse.org/legal/epl-v10.html\r
- *\r
- * Contributors:\r
- *     VTT Technical Research Centre of Finland - initial API and implementation\r
- *******************************************************************************/\r
-package org.simantics.project.management;\r
-\r
-import java.io.File;\r
-import java.io.FileReader;\r
-import java.io.FileWriter;\r
-import java.io.IOException;\r
-import java.util.Properties;\r
-\r
-/**\r
- * Workspace management utils\r
- *\r
- * @author Toni Kalajainen <toni.kalajainen@vtt.fi>\r
- */\r
-public class WorkspaceUtil {\r
-\r
-       /**\r
-        * Write project properties \r
-        * \r
-        * Project URI is in a text file simantics.cfg \r
-        * \r
-        * @param propertyFile\r
-        * @param props\r
-        * @throws IOException \r
-        */\r
-       public static void writeProperties(File propertyFile, Properties props) throws IOException {\r
-           FileWriter fw = null;\r
-           try {\r
-               fw = new FileWriter( propertyFile );\r
-               props.store(fw, "Project configuration");\r
-           } finally {\r
-               if (fw!=null) fw.close();\r
-           }                           \r
-       }\r
-       \r
-       /**\r
-        * Read project properties in a workspace\r
-        * \r
-        * @param workspace\r
-        * @return\r
-        * @throws IOException\r
-        */\r
-       public static Properties readProperties(File propertyFile) throws IOException {\r
-           FileReader fr = null;\r
-           try {\r
-               fr = new FileReader(propertyFile);              \r
-                       Properties props = new Properties();\r
-                   props.load(fr);\r
-                       return props;\r
-           } finally {\r
-               if (fr!=null) fr.close();\r
-           }\r
-               \r
-       }\r
-\r
-       \r
-}\r
-\r
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ *     VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.project.management;
+
+import java.io.File;
+import java.io.FileReader;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.Properties;
+
+/**
+ * Workspace management utils
+ *
+ * @author Toni Kalajainen <toni.kalajainen@vtt.fi>
+ */
+public class WorkspaceUtil {
+
+       /**
+        * Write project properties 
+        * 
+        * Project URI is in a text file simantics.cfg 
+        * 
+        * @param propertyFile
+        * @param props
+        * @throws IOException 
+        */
+       public static void writeProperties(File propertyFile, Properties props) throws IOException {
+           FileWriter fw = null;
+           try {
+               fw = new FileWriter( propertyFile );
+               props.store(fw, "Project configuration");
+           } finally {
+               if (fw!=null) fw.close();
+           }                           
+       }
+       
+       /**
+        * Read project properties in a workspace
+        * 
+        * @param workspace
+        * @return
+        * @throws IOException
+        */
+       public static Properties readProperties(File propertyFile) throws IOException {
+           FileReader fr = null;
+           try {
+               fr = new FileReader(propertyFile);              
+                       Properties props = new Properties();
+                   props.load(fr);
+                       return props;
+           } finally {
+               if (fr!=null) fr.close();
+           }
+               
+       }
+
+       
+}
+