本文整理了Java中org.apache.tools.ant.taskdefs.Javac.execute()
方法的一些代码示例,展示了Javac.execute()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Javac.execute()
方法的具体详情如下:
包路径:org.apache.tools.ant.taskdefs.Javac
类名称:Javac
方法名:execute
[英]Executes the task.
[中]执行任务。
代码示例来源:origin: org.apache.xmlbeans/xmlbeans
javac.setOptimize(optimize);
javac.setVerbose(verbose);
javac.execute();
代码示例来源:origin: org.bluestemsoftware.open.maven.tparty/jsp-2.1
public void run() {
SystemLogHandler.setThread();
try {
_javac.execute();
} catch (BuildException e) {
_be = e;
} finally {
_errorCapture = SystemLogHandler.unsetThread();
synchronized(this) {
this.notify();
}
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.jspengine
public void run() {
SystemLogHandler.setThread();
try {
_javac.execute();
} catch (BuildException e) {
_be = e;
} finally {
_errorCapture = SystemLogHandler.unsetThread();
synchronized (this) {
this.notify();
}
}
}
代码示例来源:origin: org.codehaus.castor/castor-testsuite-xml-framework
/**
* Compiles a directory tree. Throws a <code>CompilationException</code> if build fails.
*
* @param srcDir Source directory holding the files to be compiled.
* @param destDir Destination directory to put the compiled classes in.
*/
private void compileDirectory(final File srcDir, final File destDir) {
File[] entries = srcDir.listFiles();
for (int i = 0; i < entries.length; i++) {
File entry = entries[i];
if (entry.isDirectory() && !IGNORE_DIRS.contains(entry.getName())) {
compileDirectory(entry, destDir);
}
}
entries = null;
try {
Path srcPath = _compiler.createSrc();
srcPath.setLocation(destDir);
_compiler.setSrcdir(srcPath);
_compiler.execute();
} catch (BuildException ex) {
throw new CompilationException("Problem compiling directory " + srcDir, ex);
}
}
代码示例来源:origin: com.sun.xml.ws/jaxws-tools
/**
* Performs a compile using the Javac externally.
*
* @throws BuildException if there is a problem.
*/
public void execute() throws BuildException {
ImplementationSpecificArgument argument = super.createCompilerArg();
argument.setLine("-processor " + WebServiceAp.class.getName());
argument = super.createCompilerArg();
argument.setLine("-s " + sourceDestDir);
if (procOnly) {
argument = super.createCompilerArg();
argument.setLine("-proc:only");
}
super.execute();
}
}
代码示例来源:origin: javaee/metro-jax-ws
/**
* Performs a compile using the Javac externally.
*
* @throws BuildException if there is a problem.
*/
public void execute() throws BuildException {
ImplementationSpecificArgument argument = super.createCompilerArg();
argument.setLine("-processor " + WebServiceAp.class.getName());
argument = super.createCompilerArg();
argument.setLine("-s " + sourceDestDir);
if (procOnly) {
argument = super.createCompilerArg();
argument.setLine("-proc:only");
}
super.execute();
}
}
代码示例来源:origin: javaee/metro-jax-ws
/**
* Performs a compile using the Javac externally.
*
* @throws BuildException if there is a problem.
*/
public void execute() throws BuildException {
ImplementationSpecificArgument argument = super.createCompilerArg();
argument.setLine("-processor " + WebServiceAp.class.getName());
argument = super.createCompilerArg();
argument.setLine("-s " + sourceDestDir);
if (procOnly) {
argument = super.createCompilerArg();
argument.setLine("-proc:only");
}
super.execute();
}
}
代码示例来源:origin: org.glassfish.metro/webservices-tools
/**
* Performs a compile using the Javac externally.
*
* @throws BuildException if there is a problem.
*/
public void execute() throws BuildException {
ImplementationSpecificArgument argument = super.createCompilerArg();
argument.setLine("-processor " + WebServiceAp.class.getName());
argument = super.createCompilerArg();
argument.setLine("-s " + sourceDestDir);
if (procOnly) {
argument = super.createCompilerArg();
argument.setLine("-proc:only");
}
super.execute();
}
}
代码示例来源:origin: org.tinygroup/org.tinygroup.jspengine
if (ctxt.getOptions().getFork()) {
try {
javac.execute();
} catch (BuildException e) {
be = e;
代码示例来源:origin: org.bluestemsoftware.open.maven.tparty/jsp-2.1
if (ctxt.getOptions().getFork()) {
try {
javac.execute();
} catch (BuildException e) {
be = e;
代码示例来源:origin: org.apache.geronimo.ext.tomcat/jasper
javac.execute();
} else {
synchronized(javacLock) {
javac.execute();
代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7
javac.execute();
} else {
synchronized(javacLock) {
javac.execute();
代码示例来源:origin: org.apache.tomcat/tomcat-jasper
javac.execute();
} else {
synchronized(javacLock) {
javac.execute();
代码示例来源:origin: com.github.pjfanning/xmlbeans
javac.setOptimize(optimize);
javac.setVerbose(verbose);
javac.execute();
代码示例来源:origin: codefollower/Tomcat-Research
javac.execute();
} else {
synchronized(javacLock) {
javac.execute();
代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans
javac.setOptimize(optimize);
javac.setVerbose(verbose);
javac.execute();
代码示例来源:origin: org.codehaus.groovy/groovy-all-minimal
public void compile(List files, CompilationUnit cu) {
// forward options
if (javac.getClasspath()==null) {
javac.setClasspath(compileClasspath);
}
if (javac.getSourcepath()==null && compileSourcepath!=null) {
javac.createSourcepath().add(compileSourcepath);
}
if (javac.getEncoding()==null) {
javac.setEncoding(encoding);
}
javac.setDestdir(destDir);
Path p = javac.createSrc();
p.add(src);
Path tmpDir = new Path(getProject());
File dir = (File) cu.getConfiguration().getJointCompilationOptions().get("stubDir");
tmpDir.setLocation(dir);
p.add(tmpDir);
javac.execute();
}
};
代码示例来源:origin: net.sf.antenna/antenna
super.execute();
代码示例来源:origin: martinpaljak/ant-javacard
j.execute();
内容来源于网络,如有侵权,请联系作者删除!