Package org.apache.tools.ant.taskdefs

Examples of org.apache.tools.ant.taskdefs.Java.createClasspath()


            java.setOutput(logFile);
        }
       
        java.setClassname("org.openqa.selenium.server.SeleniumServer");

        Path classpath = java.createClasspath();
        classpath.createPathElement().setLocation(getPluginArchive());
        classpath.createPathElement().setLocation(getPluginArtifact("log4j:log4j").getFile());
        classpath.createPathElement().setLocation(getPluginArtifact("org.openqa.selenium.server:selenium-server").getFile());

        Environment.Variable var;
View Full Code Here


        log.info("Starting Geronimo server...");

        // Setup the JVM to start the server with
        final Java java = (Java)createTask("java");
        java.setClassname("org.apache.geronimo.cli.daemon.DaemonCLI");
        Path path = java.createClasspath();
        File libDir = new File(geronimoHome, "lib");
        FileSet fileSet = new FileSet();
        fileSet.setDir(libDir);
        path.addFileset(fileSet);
        java.setDir(geronimoHome);
View Full Code Here

        log.info("Starting Geronimo client...");

        Java java = (Java)createTask("java");
        java.setClassname("org.apache.geronimo.cli.client.ClientCLI");
        Path path = java.createClasspath();
        File libDir = new File(geronimoHome, "lib");
        FileSet fileSet = new FileSet();
        fileSet.setDir(libDir);
        path.addFileset(fileSet);
        java.setDir(geronimoHome);
View Full Code Here

            @Override
            protected void process() throws Exception {
                try {
                    Java javaTask = (Java) ant.createTask("java");
                    javaTask.setClassname("org.apache.geronimo.cli.client.ClientCLI");
                    Path path = javaTask.createClasspath();
                    File libDir = new File(geronimoHome, "lib");
                    FileSet fileSet = new FileSet();
                    fileSet.setDir(libDir);
                    path.addFileset(fileSet);
                    javaTask.setDir(new File(geronimoHome));
View Full Code Here

             @Override
             protected void process() throws Exception {
                 try {
                     Java javaTask = (Java) ant.createTask("java");
                     javaTask.setClassname("org.apache.geronimo.cli.daemon.DaemonCLI");
                     Path path = javaTask.createClasspath();
                     File libDir = new File(geronimoHome, "lib");
                     FileSet fileSet = new FileSet();
                     fileSet.setDir(libDir);
                     path.addFileset(fileSet);
                     javaTask.setDir(new File(geronimoHome));
View Full Code Here

        {
            java = createJavaForShutDown();
        }
        java.addSysproperty(createSysProperty("tomcat.install", getDir()));
        java.addSysproperty(createSysProperty("tomcat.home", this.tmpDir));
        Path classpath = java.createClasspath();
        classpath.createPathElement().setLocation(
            new File(getDir(), "lib/tomcat.jar"));

        // It seems that since Tomcat 3.3.2, the commons-logging jar is
        // required in the Tomcat bootstrap classpath...
View Full Code Here

        {
            java = createJavaForShutDown();
        }
        java.addSysproperty(createSysProperty("catalina.home", getDir()));
        java.addSysproperty(createSysProperty("catalina.base", getTmpDir()));
        Path classpath = java.createClasspath();
        classpath.createPathElement().setLocation(
            new File(getDir(), "bin/bootstrap.jar"));
        addToolsJarToClasspath(classpath);
        java.setClassname("org.apache.catalina.startup.Bootstrap");
        java.createArg().setValue(theArg);
View Full Code Here

     */
    public final void shutDown()
    {
        // invoke the main class
        Java java = createJavaForShutDown();
        Path classpath = java.createClasspath();
        FileSet fileSet = new FileSet();
        fileSet.setDir(this.dir);
        fileSet.createInclude().setName("*.jar");
        classpath.addFileset(fileSet);
        java.setClassname("com.evermind.client.orion.OrionConsoleAdmin");
View Full Code Here

     */
    protected final void invokeServer()
    {
        // invoke the main class
        Java java = createJavaForStartUp();
        Path classpath = java.createClasspath();
        FileSet fileSet = new FileSet();
        fileSet.setDir(this.dir);
        fileSet.createInclude().setName("*.jar");
        classpath.addFileset(fileSet);
        addToolsJarToClasspath(classpath);
View Full Code Here

                createSysProperty("jboss.server.home.dir", customServerDir));
            java.addSysproperty(
                createSysProperty("jboss.server.home.url",
                    customServerDir.toURL().toString()));

            Path classpath = java.createClasspath();
            classpath.createPathElement().setLocation(
                new File(binDir, "run.jar"));
            addToolsJarToClasspath(classpath);
            java.setClassname("org.jboss.Main");
            java.createArg().setValue("-c");
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.