return compile(classLoader); return rmicompile(classLoader); new Thread(out, "stdout listener for " + this.toString()).start(); err = new RunnableStreamListener(new BufferedReader(new InputStreamReader(proc.getErrorStream())), System.err); new Thread(err, "stderr listener for " + this.toString()).start(); try { val = proc.waitFor() == 0;
Cmd iiopCmd = new Cmd(getConfig().getJavaHomeBin() + getConfig().getNameRmic()); iiopCmd.addArgument("-classpath"); iiopCmd.addArgument(classpath); iiopCmd.addArgument("-iiop"); iiopCmd.addArgument("-poa"); iiopCmd.addArgument("-always"); iiopCmd.addArgument("-keepgenerated"); iiopCmd.addArgument("-g"); iiopCmd.addArgument("-d"); iiopCmd.addArgument(getClasses().getCanonicalPath()); iiopCmd.addArguments(getConfig().getJavacOpts()); iiopCmd.addArgument(itfClass); getLogger().log(BasicLevel.DEBUG, "Running '" + iiopCmd.toString() + "'"); if (iiopCmd.run()) { getLogger().log(BasicLevel.INFO, "Client stubs for classname '" + itfClass + "' successfully generated for protocol 'iiop'."); Cmd jrmpCmd = new Cmd(getConfig().getJavaHomeBin() + getConfig().getNameRmic()); jrmpCmd.addArgument("-classpath"); jrmpCmd.addArgument(classpath); jrmpCmd.addArgument("-keepgenerated"); jrmpCmd.addArgument("-g"); jrmpCmd.addArgument("-d"); jrmpCmd.addArgument(getClasses().getCanonicalPath()); jrmpCmd.addArguments(getConfig().getJavacOpts());