Skip to content
Permalink
Browse files
Remove m_ prefixes from class fields (POSTAGE-24)
git-svn-id: https://svn.apache.org/repos/asf/james/postage/trunk@1350156 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Eric Charles committed Jun 14, 2012
1 parent dbd5c68 commit 323cc457c864cb53ddefd20a5730684e057052ef
Showing 14 changed files with 443 additions and 445 deletions.
@@ -18,23 +18,23 @@
****************************************************************/
package org.apache.james.postage;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.XMLConfiguration;
import org.apache.james.postage.configuration.ConfigurationLoader;
import org.apache.james.postage.configuration.PostageConfiguration;

import java.util.Iterator;
import java.util.Map;
import java.util.ArrayList;
import java.util.List;

/**
* bootstrapping the application
*/
public class Main {
private static PostageRunner m_currentPostageRunner = null;
private static PostageRunner currentPostageRunner = null;

public static void main(String[] args) {
public static void main(String... args) {
if (args == null || args.length == 0) {
System.out.println("Please provide the configuration file");
return;
@@ -43,8 +43,7 @@ public static void main(String[] args) {
String filename = args[0];

List<String> scenariosToRun = new ArrayList<String>();
for (int i = 1; i < args.length; i++)
{
for (int i = 1; i < args.length; i++) {
scenariosToRun.add(args[i]);
}

@@ -80,10 +79,10 @@ private static void runScenarios(Map<String, PostageConfiguration> configuration

playedScenarioCounter++;
PostageConfiguration postageConfiguration = configurations.get(id);
m_currentPostageRunner = new PostageRunner(postageConfiguration);
m_currentPostageRunner.run(); // TODO maybe we want to run this Runnable in its own thread, but maybe not
currentPostageRunner = new PostageRunner(postageConfiguration);
currentPostageRunner.run(); // TODO maybe we want to run this Runnable in its own thread, but maybe not
}
m_currentPostageRunner = null;
currentPostageRunner = null;
if (playedScenarioCounter == 0) {
System.out.println("No scenario has been executed. ");
System.out.println("Either those on the command line where not matching those in the file.");
@@ -92,7 +91,7 @@ private static void runScenarios(Map<String, PostageConfiguration> configuration
}

private static void shutdown() {
if (m_currentPostageRunner != null) m_currentPostageRunner.terminate();
if (currentPostageRunner != null) currentPostageRunner.terminate();
}

}
@@ -16,14 +16,16 @@
* specific language governing permissions and limitations *
* under the License. *
****************************************************************/


package org.apache.james.postage;

/**
* base exception for Postage
* <p>
* Base exception for Postage
* </p>
*/
public class PostageException extends Exception {
private static final long serialVersionUID = 6272996357773871487L;

public PostageException() {
super();
}
@@ -39,4 +41,5 @@ public PostageException(Throwable cause) {
public PostageException(String message, Throwable cause) {
super(message, cause);
}

}

0 comments on commit 323cc45

Please sign in to comment.