Package org.apache.tools.ant.taskdefs

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


            classpath.addFileset(fileSet);
            java.setClassname(ResinRun.class.getName());
            java.createArg().setValue("-start");
            java.createArg().setValue("-conf");
            java.createArg().setFile(new File(tmpDir, "resin.conf"));
            java.execute();
        }
        catch (IOException ioe)
        {
            getLog().error("Failed to startup the container", ioe);
            throw new BuildException(ioe);
View Full Code Here


        fileSet.setDir(this.dir);
        fileSet.createInclude().setName("lib/*.jar");
        classpath.addFileset(fileSet);
        java.setClassname(ResinRun.class.getName());
        java.createArg().setValue("-stop");
        java.execute();
    }
   
    // Private Methods ---------------------------------------------------------

    /**
 
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

        java.createArg().setValue("-username");
        java.createArg().setValue("system");
        java.createArg().setValue("-password");
        java.createArg().setValue("password");
        java.createArg().setValue("SHUTDOWN");
        java.execute();
    }

    // Private Methods ---------------------------------------------------------

    /**
 
View Full Code Here

            log.info("Redirecting output to: " + file);

            java.setOutput(file);
        }

        java.execute();
    }

    private String prefixSystemPath(final String name, final File file) {
        assert name != null;
        assert file != null;
View Full Code Here

                         for (String module : startModules) {
                             javaTask.createArg().setValue(module);
                         }
                     }
                    
                     javaTask.execute();
                 } catch (ExitStatusException e) {
                     String tmp = "";
                     log.info(tmp);

                     if (e.getStatus() != 0) {
View Full Code Here

                        for (String m : moduleArguments) {
                            javaTask.createArg().setValue(m);
                        }
                    }
                   
                    javaTask.execute();
                } catch (ExitStatusException e) {
                    String tmp = "";
                    log.info(tmp);

                    if (e.getStatus() != 0) {
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

            log.info("Redirecting output to: " + file);

            java.setOutput(file);
        }

        java.execute();
    }

    private String prefixSystemPath(final String name, final File file) {
        assert name != null;
        assert file != null;
View Full Code Here

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