creadur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rdon...@apache.org
Subject svn commit: r1462723 - /creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java
Date Sat, 30 Mar 2013 09:24:58 GMT
Author: rdonkin
Date: Sat Mar 30 09:24:58 2013
New Revision: 1462723

URL: http://svn.apache.org/r1462723
Log:
Push more argument wrangling logic into configuration.

Modified:
    creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java

Modified: creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java
URL: http://svn.apache.org/viewvc/creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java?rev=1462723&r1=1462722&r2=1462723&view=diff
==============================================================================
--- creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java (original)
+++ creadur/tentacles/trunk/src/main/java/org/apache/creadur/tentacles/Main.java Sat Mar 30
09:24:58 2013
@@ -66,8 +66,11 @@ public class Main {
     private final Configuration configuration;
 
     public Main(final String... args) throws Exception {
+        this(new Configuration(args));
+    }
 
-        this.configuration = new Configuration(args);
+    public Main(final Configuration configuration) throws Exception {
+        this.configuration = configuration;
 
         this.local =
                 new File(this.configuration.getRootDirectoryForLocalOutput());



Mime
View raw message