public static void main()

in src/main/java/org/apache/openejb/tools/release/cmd/Deploy.java [34:69]


    public static void main(final String... args) throws Exception {

        // TODO Look for gpg on the path, report error if not found

        final String tag = Release.tags + Release.tomeeVersionName;

        final File dir = new File(Release.workdir);
        Files.mkdir(dir);
        Exec.cd(dir);

        Exec.exec("svn", "co", tag);

        Exec.cd(new File(dir, Release.tomeeVersionName));

        Exec.export("JAVA_HOME", System.getProperty("java.home"));
        Exec.export("MAVEN_OPTS", Release.mavenOpts);

        //mvn -B -rf :bval-tomee -Darguments=-Dmaven.test.skip=true -DfailIfNoTests=false release:perform -DconnectionUrl=scm:svn:https://svn.apache.org/repos/asf/tomee/tomee/tags/tomee-1.6.0.2

        final int exec = Exec.exec("mvn",
                "-Darguments=-Dmaven.test.skip=true -DfailIfNoTests=false -DskipTests -DretryFailedDeploymentCount=10",
                "-DfailIfNoTests=false",
                "-B",
                "-DretryFailedDeploymentCount=10",
                "release:perform",
                format("-DconnectionUrl=scm:svn:%s", tag)
        );

        if (exec == 0) {
            //try{Exec.exec("/usr/bin/say", "Deploy Succeeded");}catch (Exception e){}
            System.out.println("Deploy Succeeded");
        } else {
            //try{Exec.exec("/usr/bin/say", "Deploy Failed");}catch (Exception e){}
            System.out.println("Deploy Failed");
        }
    }