Author: olamy
Date: Tue Jan 10 13:27:01 2012
New Revision: 1229531

URL: http://svn.apache.org/viewvc?rev=1229531&view=rev
Log:
remove System.exit

Modified:
    
tomcat/maven-plugin/trunk/tomcat7-war-runner/src/main/java/org/apache/tomcat/maven/runner/Tomcat7Runner.java

Modified: 
tomcat/maven-plugin/trunk/tomcat7-war-runner/src/main/java/org/apache/tomcat/maven/runner/Tomcat7Runner.java
URL: 
http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-war-runner/src/main/java/org/apache/tomcat/maven/runner/Tomcat7Runner.java?rev=1229531&r1=1229530&r2=1229531&view=diff
==============================================================================
--- 
tomcat/maven-plugin/trunk/tomcat7-war-runner/src/main/java/org/apache/tomcat/maven/runner/Tomcat7Runner.java
 (original)
+++ 
tomcat/maven-plugin/trunk/tomcat7-war-runner/src/main/java/org/apache/tomcat/maven/runner/Tomcat7Runner.java
 Tue Jan 10 13:27:01 2012
@@ -313,8 +313,6 @@ public class Tomcat7Runner
         return null;
     }
 
-    //protected WebappLoader createWebappLoader()
-
     private void waitIndefinitely()
     {
         Object lock = new Object();
@@ -327,7 +325,8 @@ public class Tomcat7Runner
             }
             catch ( InterruptedException exception )
             {
-                System.exit( 1 );
+                throw new Error( "InterruptedException on wait Indefinitely 
lock:" + exception.getMessage(),
+                                 exception );
             }
         }
     }
@@ -359,8 +358,7 @@ public class Tomcat7Runner
             boolean created = this.extractDirectoryFile.mkdirs();
             if ( !created )
             {
-                System.out.println( "FATAL: impossible to create directory:" + 
this.extractDirectoryFile.getPath() );
-                System.exit( 1 );
+                throw new Exception( "FATAL: impossible to create directory:" 
+ this.extractDirectoryFile.getPath() );
             }
         }
 
@@ -368,9 +366,9 @@ public class Tomcat7Runner
         boolean created = new File( extractDirectory, "webapps" ).mkdirs();
         if ( !created )
         {
-            System.out.println(
+            throw new Exception(
                 "FATAL: impossible to create directory:" + 
this.extractDirectoryFile.getPath() + "/webapps" );
-            System.exit( 1 );
+
         }
 
         String wars = runtimeProperties.getProperty( WARS_KEY );



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to