/** * Executes the given classname with the given arguments as if it * were a command line application. * * @param classname the name of the class to run. * @param args arguments for the class. * @throws BuildException in case of IOException in the execution. */ protected void run(String classname, Vector<String> args) throws BuildException { CommandlineJava cmdj = new CommandlineJava(); cmdj.setClassname(classname); args.forEach(arg -> cmdj.createArgument().setValue(arg)); run(cmdj); }
run(commandLine); return 0; } catch (ExitException ex) {