CLI: Move initializeConfig into constructor 27/12927/1
authorhyunsik.noh <hyunsik.noh@samsung.com>
Tue, 26 Nov 2013 06:08:33 +0000 (15:08 +0900)
committerhyunsik.noh <hyunsik.noh@samsung.com>
Tue, 26 Nov 2013 06:08:33 +0000 (15:08 +0900)
Move initialzeConfig method into AbstractSubCommand constructor.

Change-Id: Ic53c00e98cfafa5a4de8d8d27dcdaa9e182eeb57
Signed-off-by: hyunsik.noh <hyunsik.noh@samsung.com>
org.tizen.ncli.ide/src/org/tizen/ncli/ide/subcommands/AbstractSubCommand.java

index 1294798..fb81307 100644 (file)
@@ -43,6 +43,10 @@ import org.tizen.ncli.ide.core.config.TizenCLIConfigProvider;
 abstract public class AbstractSubCommand<T> {\r
     protected final Logger log = LoggerFactory.getLogger( getClass() );\r
     protected File workingDir;\r
+\r
+    public AbstractSubCommand(){\r
+        initializeConfig();\r
+    }\r
     \r
     /**\r
         * @param workingDir the workingDir to set\r
@@ -60,8 +64,6 @@ abstract public class AbstractSubCommand<T> {
      * @throws Exception\r
      */\r
     public T runCommand() {\r
-        initializeConfig();\r
-\r
         T ret = call();\r
 \r
         return ret;\r