Examples of executeTarget()


Examples of org.apache.tools.ant.Project.executeTarget()

            p.init();
            ProjectHelper helper = ProjectHelper.getProjectHelper();
            p.addReference("ant.projectHelper", helper);
            helper.parse(p, buildFile);
            if (target == null || "".equals(target)) {
                p.executeTarget(p.getDefaultTarget());
            } else {
                p.executeTarget(target);
            }
            p.fireBuildFinished(null);
        } catch (BuildException e) {
View Full Code Here

Examples of org.apache.tools.ant.Project.executeTarget()

            p.addReference("ant.projectHelper", helper);
            helper.parse(p, buildFile);
            if (target == null || "".equals(target)) {
                p.executeTarget(p.getDefaultTarget());
            } else {
                p.executeTarget(target);
            }
            p.fireBuildFinished(null);
        } catch (BuildException e) {
            p.fireBuildFinished(e);
            throw new AntBuildException(e);
View Full Code Here

Examples of org.apache.tools.ant.Project.executeTarget()

                target = theProject.getDefaultTarget();
            }
            if (getLogger().isDebugEnabled()) {
                getLogger().debug("executing target "+target+" with log priority level "+myPriorityLevel);
            }
            theProject.executeTarget(target);
            theProject.fireBuildFinished(mySAXException);
        } catch (Exception e) {
            getLogger().error(e.getMessage(), e);
            while (!myStack.isEmpty()) {
                String tag = (String) myStack.pop();
View Full Code Here

Examples of org.apache.tools.ant.Project.executeTarget()

        //output the classes into the output dir as well
        javaCompiler.setDestdir(outputLocationFile);
        javaCompiler.setVerbose(true);
        try {
            codeGenProject.executeTarget(COMPILE_TARGET_NAME);
        } catch (BuildException e) {
            fail();
        }

    }
View Full Code Here

Examples of org.apache.tools.ant.Project.executeTarget()

        Project project = new Project();
        project.init();
        project.setUserProperty("ant.file", buildFile.getAbsolutePath());
        ProjectHelper.configureProject(project, buildFile);
        project.executeTarget(target);
    }

    /**
     * Serialize and deserialize the object.
     *
 
View Full Code Here

Examples of org.apache.tools.ant.Project.executeTarget()

        PrintStream err = System.err;
        System.setOut(new PrintStream(new DemuxOutputStream(project, false)));
        System.setErr(new PrintStream(new DemuxOutputStream(project, true)));

        try {
            project.executeTarget("testDemux");
        } finally {
            System.setOut(out);
            System.setErr(err);
        }
    }
View Full Code Here

Examples of org.apache.tools.ant.Project.executeTarget()

            try {
                runtime.addShutdownHook(shutdownHook);
            } catch (NoSuchMethodError nsme) {
                // Early JVMs do not support this method
            }
            project.executeTarget(target);

        } catch (Throwable t) {
            // Log any errors
            returnValue = 1;
            String message = t.getMessage();
View Full Code Here

Examples of org.apache.tools.ant.Project.executeTarget()

        }
       
        // Execute task
        Message.verbose("performing packager resolver build in " + this.dir);
        try {
            project.executeTarget("build");
            this.built = true;
        } catch (BuildException e) {
            e.printStackTrace(System.out);
            Message.verbose("packager resolver build failed: " + e);
            throw e;
View Full Code Here

Examples of org.apache.tools.ant.Project.executeTarget()

    try {
      populateJUnitElement(createDocumentSkeleton(doc));
      File tempAntFile = createTemporaryAntFile(doc);

      ProjectHelper.configureProject(antProject, tempAntFile);
      antProject.executeTarget(DEFAULT_TARGET);

      if (!leaveTemporary) {
        tempAntFile.delete();
      }
    } catch (IOException e) {
View Full Code Here

Examples of org.apache.tools.ant.Project.executeTarget()

        }
        AbstractCloverMojo.registerCloverAntTasks(antProject, getLog());
        ProjectHelper.configureProject(antProject, reportDescriptor);
        antProject.setBaseDir(project.getBasedir());
        String target = isHistoricalDirectoryValid(output) && (historyOut != null) ? "historical" : "current";
        antProject.executeTarget(target);
    }

    private boolean isHistoricalDirectoryValid(String outFile) {
        boolean isValid = false;
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.