Package org.apache.tools.ant

Examples of org.apache.tools.ant.Target.addTask()


    Target phase = newPhase(project, "package", "compile");
    phase.setDescription("take the compiled code and package it in its distributable format, such as a JAR");
   
    MxPackage task = new MxPackage();
    task.setProject(project);
    phase.addTask(task);
    return phase;
  }
 
  private Target newInstallPhase(Project project) {
    Target phase = newPhase(project, "install", "package");
View Full Code Here


    Target phase = newPhase(project, "install", "package");
    phase.setDescription("install the package into the local repository, for use as a dependency in other projects locally");

    MxInstall task = new MxInstall();
    task.setProject(project);
    phase.addTask(task);
    return phase;
  }
 
  private Target newDeployPhase(Project project) {
    Target phase = newPhase(project, "deploy", "package");
View Full Code Here

    Target phase = newPhase(project, "deploy", "package");
    phase.setDescription("deploys the generated binaries to an external repository");
   
    MxDeploy task = new MxDeploy();
    task.setProject(project);
    phase.addTask(task);
    return phase;
  }
 
  private Target newCleanPhase(Project project) {   
    Target phase = newPhase(project, "clean", "init");
View Full Code Here

        Javac javaCompiler = new Javac();
        Project codeGenProject = new Project();
        Target compileTarget = new Target();

        compileTarget.setName(COMPILE_TARGET_NAME);
        compileTarget.addTask(javaCompiler);
        codeGenProject.addTarget(compileTarget);
        codeGenProject.setSystemProperties();
        javaCompiler.setProject(codeGenProject);
        javaCompiler.setIncludejavaruntime(true);
        javaCompiler.setIncludeantruntime(true);
View Full Code Here

        Javac javaCompiler = new Javac();
        Project codeGenProject = new Project();
        Target compileTarget = new Target();

        compileTarget.setName(COMPILE_TARGET_NAME);
        compileTarget.addTask(javaCompiler);
        codeGenProject.addTarget(compileTarget);
        codeGenProject.setSystemProperties();
        javaCompiler.setProject(codeGenProject);
        javaCompiler.setIncludejavaruntime(true);
        javaCompiler.setIncludeantruntime(true);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.