Examples of addBuildListener()


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

            project.setUserProperty(
                "XmlLogger.file",
                logFile.getAbsolutePath());

            XmlLogger logger = new XmlLogger();
            project.addBuildListener(logger);
            project.fireBuildStarted();

            project.init();
            project.setBaseDir(publicationDirectory);
View Full Code Here

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

                                    + " doesn't exist and couldn't be created. The goal with probably fail.");
        }

        final Project antProject = new Project();

        antProject.addBuildListener(new DebugAntBuildListener());

        final WsGenTask task = new WsGenTask();

        task.setProject(antProject);
View Full Code Here

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

                                    + " doesn't exist and couldn't be created. The goal with probably fail.");
        }

        final Project antProject = new Project();

        antProject.addBuildListener(new WsdlgenMojo.DebugAntBuildListener());

        // add current pom dependencies to WsdlGenTask class loader
        ClassLoader parent = WsdlGenTask.class.getClassLoader();

        URL[] urls;
View Full Code Here

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

                            try {
                                if(!oldRoot.equals(installationDir)) {
                                    LOGGER.info("Moving data");
                                    Move mv = new Move();
                                    Project p = new Project();
                                    p.addBuildListener(createLogger());
                                    mv.setProject(p);
                                    FileSet fs = new FileSet();
                                    fs.setDir(oldRoot);
                                    fs.setExcludes("war/**"); // we can't really move the exploded war.
                                    mv.addFileset(fs);
View Full Code Here

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

        return hudsuckr;
    }
   
    private String runHudsuckr(String... args) {
      Project p = new Project();
        p.addBuildListener(new AntJettyLoggerBuildListener(log));
        ExecTask exec = new ExecTask();
        exec.setProject(p);
        exec.setTaskType("hudsuckr");
        exec.setExecutable(extractHudsuckr().getAbsolutePath());
        exec.setFailonerror(false);
View Full Code Here

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

        return values;
    }
   
    protected void downloadWithAnt(final URL url, final File outputFile) {
        Project p = new Project();
        p.addBuildListener(new AntJettyLoggerBuildListener(LOGGER));
        Get g = new Get();
        g.setProject(p);
        g.setSrc(url);
        g.setDest(outputFile);
        g.execute();
View Full Code Here

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

            }

            project.setUserProperty("XmlLogger.file", logFile.getAbsolutePath());

            XmlLogger logger = new XmlLogger();
            project.addBuildListener(logger);
            project.fireBuildStarted();

            project.init();
            project.setBaseDir(publicationDirectory);
View Full Code Here

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

        }
    }

    public void testUseLauncher() throws Exception {
        Project project = new Project();
        project.addBuildListener(new BuildListener() {
            public final void buildStarted(BuildEvent event) {
            }
            public final void buildFinished(BuildEvent event) {
            }
            public final void targetStarted(BuildEvent event) {
View Full Code Here

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

                project.setProperty(property.getKey().toString(), property.getValue().toString());
            }

            // notice we add our listener after we set the properties - we do not want the password to be in the log file
            // our dbupgrade script will echo the property settings, so we can still get the other values
            project.addBuildListener(new LoggerAntBuildListener(logFileOutput));

            for (Map.Entry<Object, Object> taskDef : taskDefs.entrySet()) {
                project.addTaskDefinition(taskDef.getKey().toString(),
                    Class.forName(taskDef.getValue().toString(), true, classLoader));
            }
View Full Code Here

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

            project.init();

            // notice we are adding the listener before we set the properties - if we do not want the
            // the properties echoed out in the log (e.g. if they contain sensitive passwords)
            // we should do this after we set the properties.
            project.addBuildListener(new LoggerAntBuildListener(target, logFileOutput, Project.MSG_DEBUG));
            if (logStdOut) {
                PrintWriter stdout = new PrintWriter(System.out);
                project.addBuildListener(new LoggerAntBuildListener(target, stdout, Project.MSG_INFO));
            }
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.