Anonymous avatar Anonymous committed a8b887f

Changed the main package to com.edbrannin.grinder; passing arguments to Grinder/Console.main()

Comments (0)

Files changed (3)

 						<manifest>
 							<addClasspath>true</addClasspath>
 				            <classpathPrefix>lib/</classpathPrefix>
-							<mainClass>com.thomsonreuters.cmg.ean.App</mainClass>
+							<mainClass>com.edbrannin.grinder.App</mainClass>
 						</manifest>
 					</archive>
 				</configuration>

src/main/java/com/edbrannin/grinder/App.java

+package com.edbrannin.grinder;
+
+import net.grinder.Console;
+import net.grinder.Grinder;
+
+/**
+ * Hello world!
+ *
+ */
+public class App
+{
+    public static void main( String[] args )
+    {
+        String[] subArgs = new String[] { System.getProperty("grinder.propfile", "grinder.properties")};
+        if (args.length > 0 && args[0].equalsIgnoreCase("agent")) {
+            Grinder.main(subArgs);
+        } else {
+            Console.main(subArgs);
+        }
+    }
+}

src/main/java/com/thomsonreuters/cmg/ean/App.java

-package com.thomsonreuters.cmg.ean;
-
-import net.grinder.Console;
-import net.grinder.Grinder;
-
-/**
- * Hello world!
- *
- */
-public class App 
-{
-    public static void main( String[] args )
-    {
-        
-        if (args.length > 0 && args[0].equalsIgnoreCase("agent")) {
-            Grinder.main(new String[0]);
-        } else {
-            Console.main(new String[0]);
-        }
-    }
-}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.