Java通过ant调可执行程序

ExecTask exec = new ExecTask();
            Project p = new Project();
            exec.setProject(p);
            exec.setExecutable(runable);
            exec.createArg().setLine(arg);
            exec.setFailonerror(false);
            exec.setTimeout(timeout);
            exec.execute();
 

你可能感兴趣的:(java,ant)