本文整理了Java中org.apache.tools.ant.taskdefs.Java.setDir()
方法的一些代码示例,展示了Java.setDir()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Java.setDir()
方法的具体详情如下:
包路径:org.apache.tools.ant.taskdefs.Java
类名称:Java
方法名:setDir
[英]Set the working directory of the process.
[中]设置进程的工作目录。
代码示例来源:origin: org.apache.ant/ant
execTask.setDir(new File("."));
execTask.setClassname("com.inprise.server.commandline.EJBUtilities");
代码示例来源:origin: org.apache.ant/ant
javaTask.setDir(websphereHome);
代码示例来源:origin: org.apache.ant/ant
java.setDir(getProject().getBaseDir());
java.setClassname("org.apache.jasper.JspC");
代码示例来源:origin: codehaus-cargo/cargo
/**
* {@inheritDoc}
*/
@Override
public void setWorkingDirectory(File workingDirectory)
{
this.java.setDir(workingDirectory);
}
代码示例来源:origin: com.atlassian.maven.plugins/maven-amps-plugin
@Override
protected void addOverridesToJavaTask(final Product ctx, Java java)
{
// Note: FeCru doesn't support asynchronous startup, because setSpawn(true) returns an error
// (output and timeout are forbidden).
java.setFork(true);
java.setDir(getAppDirectory(ctx));
}
}
代码示例来源:origin: org.fornax.toolsupport/fornax-oaw-m2-plugin
public JavaTaskBuilder(MavenProject project, ClassRealm realm) {
this.mvnProject = project;
this.realm = realm;
this.javaTask = new Java();
this.antProject = new ProjectExt(realm);
antProject.setBaseDir(project.getBasedir());
antProject.setCoreLoader(realm.getClassLoader());
javaTask.setProject(antProject);
javaTask.setLocation(new Location(project.getBasedir().getAbsolutePath()));
javaTask.setDir(project.getBasedir());
Target target = new Target();
antProject.addTarget("run-workflow", target);
target.addTask(javaTask);
configureClasspath();
}
代码示例来源:origin: net.sourceforge.cobertura/cobertura
java.setFork(true);
java.setFailonerror(failOnError);
java.setDir(getProject().getBaseDir());
if (maxMemory != null)
java.setJvmargs("-Xmx" + maxMemory);
代码示例来源:origin: christ66/cobertura
java.setFork(true);
java.setFailonerror(failOnError);
java.setDir(getProject().getBaseDir());
if (maxMemory != null)
java.setJvmargs("-Xmx" + maxMemory);
代码示例来源:origin: org.apache.geronimo.genesis.plugins/plugin-support
java.setDir(workingDirectory);
代码示例来源:origin: org.codehaus.mojo/plugin-support
java.setDir(workingDirectory);
代码示例来源:origin: torquebox/jruby-maven-plugins
java.setDir(launchDirectory);
代码示例来源:origin: com.atlassian.maven.plugins/amps-maven-plugin
private void startContainer(final Product product)
{
final Map<String,String> systemProperties = getSystemProperties(product);
final Java java = javaTaskFactory.newJavaTask(output(product.getOutput()).systemProperties(systemProperties).
jvmArgs(product.getJvmArgs() + product.getDebugArgs()));
java.setDir(getBaseDirectory(product));
java.setJar(findServerJar(product));
java.createArg().setValue("--host");
java.createArg().setValue(product.getServer());
java.createArg().setValue("--port");
java.createArg().setValue(Integer.toString(product.getHttpPort()));
final AntJavaExecutorThread javaThread = new AntJavaExecutorThread(java);
javaThread.start();
}
代码示例来源:origin: com.atlassian.maven.plugins/maven-amps-plugin
private void startContainer(final Product product)
{
final Map<String,String> systemProperties = getSystemProperties(product);
final Java java = javaTaskFactory.newJavaTask(output(product.getOutput()).systemProperties(systemProperties).
jvmArgs(product.getJvmArgs() + product.getDebugArgs()));
java.setDir(getBaseDirectory(product));
java.setJar(findServerJar(product));
java.createArg().setValue("--host");
java.createArg().setValue(product.getServer());
java.createArg().setValue("--port");
java.createArg().setValue(Integer.toString(product.getHttpPort()));
final AntJavaExecutorThread javaThread = new AntJavaExecutorThread(java);
javaThread.start();
}
代码示例来源:origin: org.jboss.aop/jboss-aop
java.setClasspath(classpath);
java.setDir(getProject().getBaseDir());
java.setClassname("org.jboss.aop.standalone.Compiler");
代码示例来源:origin: jboss/jbossretro
java.setDir(getProject().getBaseDir());
java.setClassname("org.jboss.ant.tasks.retrocheck.Checker");
代码示例来源:origin: jboss/jbossretro
java.setDir(getProject().getBaseDir());
java.setClassname("org.jboss.ant.tasks.retro.Weaver");
代码示例来源:origin: org.jboss.aop/jboss-aop
java.setClasspath(classpath);
java.setDir(getProject().getBaseDir());
java.setClassname("org.jboss.aop.annotation.compiler.AnnotationCompiler");
内容来源于网络,如有侵权,请联系作者删除!