gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
moved version.properties to a class subfolder to prevent conflicts
[mjc2wsl.git] / src / com / quemaster / transformations / mjc2wsl / mjc2wsl.java
index f1ac5a0..ce82101 100644 (file)
@@ -42,7 +42,7 @@ public class mjc2wsl{
        //default version name, used if the file is not found
        private static String versionN = "v0.2.x";
 
-       private String versionFile = "/version.properties";
+       private String versionFile = "version.properties";
        
        private TransMessages messages = new TransMessages();
 
@@ -137,8 +137,9 @@ public class mjc2wsl{
                        versionData = new Properties();
                        try {
                                versionData.load(getClass().getResourceAsStream(versionFile));
-                       } catch (IOException e) {
-                               e.printStackTrace();
+                       } catch (IOException | NullPointerException e) {
+                               // it doesn't matter
+                               //e.printStackTrace();
                        }
                }
                String ver = versionData.getProperty("version");
@@ -206,7 +207,7 @@ public class mjc2wsl{
                ret.append("\nWHERE\n");
                
                ret.append("\nFUNCT CHR(num) ==:\n");
-               ret.append("\t@List_To_String(< num >)\n");
+               ret.append("\t(@List_To_String(< num >))\n");
                ret.append("END\n");
 
                if (!genInlinePrint) {
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner