Login | Register
My pages Projects Community openCollabNet

Discussions > Commits > svn commit: r102 - trunk/externalTools/MetricsGather/src/foo/Main.java

argouml-spl
Discussion topic

Back to topic list

svn commit: r102 - trunk/externalTools/MetricsGather/src/foo/Main.java

Author marcusvnac
Full name Marcus Vinícius de Ávila Couto
Date 2010-08-12 14:26:48 PDT
Message Author: marcusvnac
Date: 2010-08-12 14:26:37-0700
New Revision: 102

Modified:
   trunk/externalTools/​MetricsGather/src/fo​o/Main.java

Log:
Change to receive project folder and output filename as parameter.

Modified: trunk/externalTools/​MetricsGather/src/fo​o/Main.java
Url: http://argouml-spl.t​igris.org/source/bro​wse/argouml-spl/trun​k/externalTools/Metr​icsGather/src/foo/Ma​in.java?view=diff​&pathrev=102&r1​=101&r2=102
====================​====================​====================​==================
--- trunk/externalTools/​MetricsGather/src/fo​o/Main.java (original)
+++ trunk/externalTools/​MetricsGather/src/fo​o/Main.java 2010-08-12 14:26:37-0700
@@ -4,16 +4,18 @@
 public class Main {
 
     /**
- * @param args
+ * Inicializa o sistema.
+ * @param args parâmetros de execução.
+ * 1º parâmetro: diretório raiz / 2º parâmetro: arquivo de saída.
      */
     public static void main(String[] args) {
- String outputFilename = "..\\metrics.csv";
         Log.info("Starting gattering metrics");
-
- GatherMetrics rd = new GatherMetrics("..\​..\\workspace-arg​ouml-spl");
- rd.gatherMetrics(out​putFilename);
-
- Log.info("End of gattering metrics. File " + outputFilename + " generated.");
+ if (args.length > 0) {
+ GatherMetrics rd = new GatherMetrics(args[0]);
+ rd.gatherMetrics(args[1]);
+ Log.info("End of gattering metrics. File " + args[1] + " generated.");
+ } else {
+ Log.info("No args found.");
+ }
     }
-
-}
+}
\ No newline at end of file

« Previous message in topic | 1 of 1 | Next message in topic »

Messages

Show all messages in topic

svn commit: r102 - trunk/externalTools/MetricsGather/src/foo/Main.java marcusvnac Marcus Vinícius de Ávila Couto 2010-08-12 14:26:48 PDT
Messages per page: