Package org.apache.tools.ant.taskdefs

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


        java.setClassname("com.evermind.client.orion.OrionConsoleAdmin");
        java.createArg().setValue("ormi://" + this.getServer() + ":23791/");
        java.createArg().setValue("admin");
        java.createArg().setValue("password");
        java.createArg().setValue("-shutdown");
        java.execute();
    }
   
    // Private Methods ---------------------------------------------------------

    /**
 
View Full Code Here


        classpath.addFileset(fileSet);
        addToolsJarToClasspath(classpath);
        java.setClassname("com.evermind.server.ApplicationServer");
        java.createArg().setValue("-config");
        java.createArg().setFile(new File(tmpDir, "conf/server.xml"));
        java.execute();
    }

    /**
     * Prepares a temporary installation of the container and deploys the
     * web-application.
 
View Full Code Here

        java.setFailonerror(true);
        java.setClasspath(getClasspath());

        java.setClassname(WEBLOGIC_DEPLOY_CLASS_NAME);
        java.createArg().setLine(getArguments());
        java.execute();
    }

    /**
     *  Validates the passed in attributes.
     *  <p>The rules are:
View Full Code Here

                }

                log("Calling websphere.ejbdeploy for " + sourceJar.toString(),
                    Project.MSG_VERBOSE);

                javaTask.execute();
            }
        } catch (Exception e) {
            // Have to catch this because of the semantics of calling main()
            String msg = "Exception while calling ejbdeploy. Details: " + e.toString();
View Full Code Here

                java.createArg().setValue(args[i]);
            }
            java.setFailonerror(getJspc().getFailonerror());
            //fork to catch JspC CompileExceptions
            java.setFork(true);
            java.execute();
            return true;
        } catch (Exception ex) {
            //@todo implement failonerror support here?
            if (ex instanceof BuildException) {
                throw (BuildException) ex;
View Full Code Here

        // Start the server int a seperate thread
        Thread t = new Thread("Geronimo Server Runner") {
            public void run() {
                try {
                    java.execute();
                }
                catch (Exception e) {
                    errorHolder.set(e);

                    //
View Full Code Here

        }
        if (args != null) {
            allArgs.addAll(Arrays.asList(args.split("\\s+")));
        }
        Java jruby = jruby((String[]) allArgs.toArray(new String[allArgs.size()]));
        jruby.execute();
    }
}
View Full Code Here

        executeCmd(args);
    }

    protected void executeCmd(String commandline) throws MojoExecutionException {
        Java jruby = jruby(commandline.split("\\s+"));
        jruby.execute();
    }

}
View Full Code Here

        for (int i = 0; i < gemNames.length; i++) {
            args.add(gemNames[i]);
        }

        Java jruby = jruby((String[]) args.toArray(new String[args.size()]));
        jruby.execute();
    }

    protected void ensureGem(String gemName) throws MojoExecutionException {
        ensureGems(new String[] {gemName});
    }
View Full Code Here

                new File(serverDir, "lib/weblogic_sp.jar"));
            classpath.createPathElement().setLocation(
                new File(serverDir, "lib/weblogic.jar"));

            java.setClassname("weblogic.Server");
            java.execute();
        }
        catch (IOException ioe)
        {
            getLog().error("Failed to startup the container", ioe);
            throw new BuildException(ioe);
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.