org.apache.tools.ant.taskdefs.Javac.setSrcdir()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(3.4k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中org.apache.tools.ant.taskdefs.Javac.setSrcdir()方法的一些代码示例,展示了Javac.setSrcdir()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Javac.setSrcdir()方法的具体详情如下:
包路径:org.apache.tools.ant.taskdefs.Javac
类名称:Javac
方法名:setSrcdir

Javac.setSrcdir介绍

[英]Set the source directories to find the source Java files.
[中]设置源目录以查找源Java文件。

代码示例

代码示例来源:origin: org.apache.xmlbeans/xmlbeans

javac.setSrcdir(new Path(project, srcgendir.getAbsolutePath()));
if (memoryInitialSize != null) javac.setMemoryInitialSize(memoryInitialSize);
if (memoryMaximumSize != null) javac.setMemoryMaximumSize(memoryMaximumSize);

代码示例来源: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: org.tinygroup/org.tinygroup.jspengine

javac.setSrcdir(srcPath);
info.append("    srcDir=" + srcPath + "\n");
info.append("    work dir=" + options.getScratchDir() + "\n");

代码示例来源:origin: org.bluestemsoftware.open.maven.tparty/jsp-2.1

javac.setSrcdir(srcPath);
info.append("    srcDir=" + srcPath + "\n" );
info.append("    work dir=" + options.getScratchDir() + "\n");

代码示例来源:origin: com.github.pjfanning/xmlbeans

javac.setSrcdir(new Path(project, srcgendir.getAbsolutePath()));
if (memoryInitialSize != null) javac.setMemoryInitialSize(memoryInitialSize);
if (memoryMaximumSize != null) javac.setMemoryMaximumSize(memoryMaximumSize);

代码示例来源:origin: org.apache.xmlbeans/com.springsource.org.apache.xmlbeans

javac.setSrcdir(new Path(project, srcgendir.getAbsolutePath()));
if (memoryInitialSize != null) javac.setMemoryInitialSize(memoryInitialSize);
if (memoryMaximumSize != null) javac.setMemoryMaximumSize(memoryMaximumSize);

代码示例来源:origin: org.apache.geronimo.ext.tomcat/jasper

javac.setClasspath(path);
javac.setDebug(ctxt.getOptions().getClassDebugInfo());
javac.setSrcdir(srcPath);
javac.setTempdir(options.getScratchDir());
javac.setOptimize(! ctxt.getOptions().getClassDebugInfo() );

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

javac.setClasspath(path);
javac.setDebug(ctxt.getOptions().getClassDebugInfo());
javac.setSrcdir(srcPath);
javac.setTempdir(options.getScratchDir());
javac.setOptimize(! ctxt.getOptions().getClassDebugInfo() );

代码示例来源:origin: org.apache.tomcat/tomcat-jasper

javac.setClasspath(path);
javac.setDebug(ctxt.getOptions().getClassDebugInfo());
javac.setSrcdir(srcPath);
javac.setTempdir(options.getScratchDir());
javac.setFork(ctxt.getOptions().getFork());

代码示例来源:origin: codefollower/Tomcat-Research

javac.setClasspath(path);
javac.setDebug(ctxt.getOptions().getClassDebugInfo());
javac.setSrcdir(srcPath);
javac.setTempdir(options.getScratchDir());
javac.setOptimize(! ctxt.getOptions().getClassDebugInfo() );

代码示例来源:origin: martinpaljak/ant-javacard

if (sources2_path != null)
  sources.append(new Path(project, sources2_path));
j.setSrcdir(sources);

相关文章