JAL-3253-applet JAL-3423 Windows TestNG
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 28 Aug 2019 04:46:52 +0000 (23:46 -0500)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 28 Aug 2019 04:46:52 +0000 (23:46 -0500)
CommandLineOperations indicates absolute file path; adding output file
option to JavaScript

src/jalview/bin/Jalview.java
test/jalview/bin/CommandLineOperations.java

index b149911..f59c37f 100755 (executable)
@@ -858,12 +858,12 @@ public class Jalview implements ApplicationSingletonI, JalviewJSApi
                     + "] executed successfully!");
             groovyscript = null;
           }
-          while (aparser.getSize() > 0)
-          {
-            System.out.println("Unknown arg: " + aparser.nextValue());
-          }
         }
         checkOutputFile(aparser, af, format);
+        while (aparser.getSize() > 0)
+        {
+          System.out.println("Unknown arg: " + aparser.nextValue());
+        }
       }
     }
     AlignFrame startUpAlframe = null;
@@ -1052,6 +1052,8 @@ public class Jalview implements ApplicationSingletonI, JalviewJSApi
       // biojsmsa filename
       String outputFormat = aparser.nextValue();
       String file = aparser.nextValue();
+      System.out.println("format " + outputFormat);
+
       if (outputFormat.equalsIgnoreCase("png"))
       {
         af.createPNG(new File(file));
index eaa395e..564e57d 100644 (file)
@@ -251,9 +251,11 @@ public class CommandLineOperations
           String fileName, boolean withAWT, int expectedMinFileSize,
           int timeout)
   {
-    String cmd = harg + type + " " + fileName;
-    System.out.println(">>>>>>>>>>>>>>>> Command : " + cmd);
     File file = new File(fileName);
+    String cmd = harg + type + " "
+            + file.getAbsolutePath().replace('\\', '/');
+    System.out.println(">>>>>>>>>>>>>>>> Command : " + cmd);
+
     file.deleteOnExit();
     Worker worker = getJalviewDesktopRunner(withAWT, cmd, timeout);
     assertNotNull(worker, "worker is null");