gigadot  committed 65e1cd9 Merge

Merge with pb556

  • Participants
  • Parent commits ad2f7ef, 4ed7f9a
  • Branches default

Comments (0)

Files changed (1)

File gigatools-extra/src/main/java/gigatools/extra/openbabel/

     public static String convert(String cmlMolecule, OBFormat obformat) throws OpenBabelException {
+        return convert(cmlMolecule, obformat, "");
+    }
+    public static String convert(String cmlMolecule, OBFormat obformat, String aruguments) throws OpenBabelException {
         if (!executableExists) {
             throw new OpenBabelException("babel command not found on your system. If you have just"
                     + " installed Open Babel, please restart your application or redeploy your web application"
         map.put("input", input);
         map.put("obformat", obformat.getObformat());
         map.put("output", output);
-        CommandLine commandLine = CommandLine.parse("babel -icml ${input} -o${obformat} ${output}", map);
+        map.put("arguments", aruguments);
+        CommandLine commandLine = CommandLine.parse("babel -icml ${input} -o${obformat} ${output} ${arguments}", map);
         // initialize input file
         try {