tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r1540175 - /tomee/sandbox/release-tools/src/main/java/org/apache/openejb/tools/release/cmd/Deploy.java
Date Fri, 08 Nov 2013 20:39:49 GMT
Author: dblevins
Date: Fri Nov  8 20:39:49 2013
New Revision: 1540175

URL: http://svn.apache.org/r1540175
Log:
use mac "say" command so one can theoretically leave the computer for a bit and hear the build
status

Modified:
    tomee/sandbox/release-tools/src/main/java/org/apache/openejb/tools/release/cmd/Deploy.java

Modified: tomee/sandbox/release-tools/src/main/java/org/apache/openejb/tools/release/cmd/Deploy.java
URL: http://svn.apache.org/viewvc/tomee/sandbox/release-tools/src/main/java/org/apache/openejb/tools/release/cmd/Deploy.java?rev=1540175&r1=1540174&r2=1540175&view=diff
==============================================================================
--- tomee/sandbox/release-tools/src/main/java/org/apache/openejb/tools/release/cmd/Deploy.java
(original)
+++ tomee/sandbox/release-tools/src/main/java/org/apache/openejb/tools/release/cmd/Deploy.java
Fri Nov  8 20:39:49 2013
@@ -47,10 +47,16 @@ public class Deploy {
 
         Exec.export("JAVA_HOME", System.getProperty("java.home"));
         Exec.export("MAVEN_OPTS", Release.mavenOpts);
-        Exec.exec("mvn",
+        final int exec = Exec.exec("mvn",
                 "-Darguments=-Dmaven.test.skip=true -DfailIfNoTests=false",
                 "release:perform",
                 format("-DconnectionUrl=scm:svn:%s", tag)
         );
+
+        if (exec == 0) {
+            Exec.exec("/usr/bin/say", "Deploy Succeeded");
+        } else {
+            Exec.exec("/usr/bin/say", "Deploy Failed");
+        }
     }
 }



Mime
View raw message