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

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

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

Java.setProject介绍

暂无

代码示例

代码示例来源:origin: spotbugs/spotbugs

findbugsEngine.setProject(getProject());
findbugsEngine.setTaskName(getTaskName());
findbugsEngine.setFork(true);

代码示例来源:origin: andrena/macker

private Java getJvm() {
  if (jvm == null) {
    jvm = new Java();
    jvm.setProject(getProject());
  }
  return jvm;
}

代码示例来源:origin: org.jclouds/jclouds-antcontrib

@Override
public void setProject(Project project) {
 super.setProject(project);
 exec.setProject(project);
 scp.setProject(project);
}

代码示例来源:origin: scriptella/scriptella-etl

Java j = new Java();
j.setFork(true);
j.setProject(getProject());

代码示例来源: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.sf.antenna/antenna

java.setProject(project);
java.setTaskName(parent.getTaskName());

代码示例来源:origin: net.sf.antenna/antenna

java.setProject(project);
java.setTaskName(parent.getTaskName());

代码示例来源:origin: net.sf.antenna/antenna

private void executeMPowerEmulator(String device) throws BuildException {
  String arguments = utility.getQuotedName(jadFile);
      
  log("Arguments : " + arguments, Project.MSG_VERBOSE);
  Java java = new Java();
  java.setProject(getProject());
  java.setTaskName(getTaskName());
  java.setFork(true);
  java.setJar(new File(utility.getWtkRelative("player.jar")));
  java.setArgs(arguments);
  java.executeJava();
}

代码示例来源:origin: com.github.spotbugs/spotbugs-ant

findbugsEngine.setProject(getProject());
findbugsEngine.setTaskName(getTaskName());
findbugsEngine.setFork(true);

代码示例来源:origin: com.google.code.findbugs/findbugs

findbugsEngine.setProject(getProject());
findbugsEngine.setTaskName(getTaskName());
findbugsEngine.setFork(true);

代码示例来源:origin: torquebox/jruby-maven-plugins

final List<String> args, final File outputFile) {
final Java java = new Java();
java.setProject(this.project);
java.setClassname("org.jruby.Main");
java.setFailonerror(true);

代码示例来源:origin: net.sf.antenna/antenna

java.setProject(getProject());
java.setTaskName(this.getTaskName());
java.createClasspath().setPath(converter);

代码示例来源:origin: wvengen/proguard-maven-plugin

antProject.setBaseDir(mojo.mavenProject.getBasedir());
java.setProject(antProject);
java.setTaskName("proguard");

代码示例来源:origin: openimaj/openimaj

java.setNewenvironment(true);
java.setTaskName("runjava");
java.setProject(project);
java.setFork(true);
java.setFailonerror(true);

相关文章