]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.graph.compiler/tests/org/simantics/graph/compiler/tests/TestCompiler.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.graph.compiler / tests / org / simantics / graph / compiler / tests / TestCompiler.java
index 0557c0ccf35ed7011df7efb30600bbffa326d2ae..0abbbb495e3f385498ceaaffb140156241733cb3 100644 (file)
@@ -1,36 +1,36 @@
-package org.simantics.graph.compiler.tests;\r
-\r
-import java.io.File;\r
-import java.io.FileNotFoundException;\r
-import java.io.IOException;\r
-import java.util.ArrayList;\r
-import java.util.Collection;\r
-import java.util.Collections;\r
-\r
-import org.simantics.graph.compiler.ExternalFileLoader;\r
-import org.simantics.graph.compiler.GraphCompiler;\r
-import org.simantics.graph.compiler.GraphCompilerPreferences;\r
-import org.simantics.graph.representation.TransferableGraph1;\r
-import org.simantics.ltk.FileSource;\r
-import org.simantics.ltk.ISource;\r
-\r
-public class TestCompiler {\r
-\r
-       public static void main(String[] args) throws Exception {\r
-               Collection<ISource> sources = new ArrayList<ISource>();\r
-               File dir = new File("d:/apros6/org.simantics.layer0/graph");\r
-               for(File f : dir.listFiles())\r
-                       if(f.getName().endsWith(".pgraph"))\r
-                               sources.add(new FileSource(f));\r
-               GraphCompiler.compile("1.0", sources, \r
-                               Collections.<TransferableGraph1>emptyList(), \r
-                               new ExternalFileLoader() {                                      \r
-                                       @Override\r
-                                       public byte[] load(String fileName) throws IOException {\r
-                                               throw new FileNotFoundException();\r
-                                       }\r
-                               },\r
-                               new GraphCompilerPreferences());\r
-       }\r
-       \r
-}\r
+package org.simantics.graph.compiler.tests;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Collections;
+
+import org.simantics.graph.compiler.ExternalFileLoader;
+import org.simantics.graph.compiler.GraphCompiler;
+import org.simantics.graph.compiler.GraphCompilerPreferences;
+import org.simantics.graph.representation.TransferableGraph1;
+import org.simantics.ltk.FileSource;
+import org.simantics.ltk.ISource;
+
+public class TestCompiler {
+
+       public static void main(String[] args) throws Exception {
+               Collection<ISource> sources = new ArrayList<ISource>();
+               File dir = new File("d:/apros6/org.simantics.layer0/graph");
+               for(File f : dir.listFiles())
+                       if(f.getName().endsWith(".pgraph"))
+                               sources.add(new FileSource(f));
+               GraphCompiler.compile("1.0", sources, 
+                               Collections.<TransferableGraph1>emptyList(), 
+                               new ExternalFileLoader() {                                      
+                                       @Override
+                                       public byte[] load(String fileName) throws IOException {
+                                               throw new FileNotFoundException();
+                                       }
+                               },
+                               new GraphCompilerPreferences());
+       }
+       
+}