Allow defeat of auto include of $ACTIVEMQ_HOME/conf in classpath (after refactor)

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@369868 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dennis Cook 2006-01-17 19:05:51 +00:00
parent 80a8e8d27d
commit d3aa9bf2be
1 changed files with 35 additions and 31 deletions

View File

@ -76,8 +76,9 @@ public class Main {
return; return;
} }
String token = (String)tokens.get(0); for (int i = 0; i < tokens.size(); i++)
{
String token = (String)tokens.get(i);
// If token is an extension dir option // If token is an extension dir option
if (token.equals("--extdir")) { if (token.equals("--extdir")) {
// Process token // Process token
@ -108,8 +109,11 @@ public class Main {
addExtensionDirectory(extDir); addExtensionDirectory(extDir);
} else if (token.equals("--noDefExt")) { // If token is --noDefExt option } else if (token.equals("--noDefExt")) { // If token is --noDefExt option
useDefExt = false; useDefExt = false;
} else
{
break;
}
} }
} }
public void runTaskClass(List tokens) throws Throwable { public void runTaskClass(List tokens) throws Throwable {