if(arguments.hasFlag(J2EE_FLAG)) {
String type = arguments.getFlagValue(J2EE_FLAG);
if(type == null) {
Object[] filler = { HELP_FLAG };
throw new MuseRuntimeException("InvalidArgs",_MESSAGES.get("InvalidArgs", filler));
} else if(type.equals(MINI_TYPE)) {
return new J2EEMiniProjectizer();
} else if(type.equals(AXIS2_TYPE)){
return new J2EEAxis2Projectizer();
} else {
Object[] filler = { HELP_FLAG };
throw new MuseRuntimeException("InvalidArgs",_MESSAGES.get("InvalidArgs", filler));
}
}
if(arguments.hasFlag(OSGI_FLAG)) {
String type = arguments.getFlagValue(OSGI_FLAG);
if(type == null) {
Object[] filler = { HELP_FLAG };
throw new MuseRuntimeException("InvalidArgs",_MESSAGES.get("InvalidArgs", filler));
} else if(type.equals(MINI_TYPE)) {
return new OsgiMiniProjectizer();
} else if(type.equals(AXIS2_TYPE)){
return new OsgiAxis2Projectizer();
} else {
Object[] filler = { HELP_FLAG };
throw new MuseRuntimeException("InvalidArgs",_MESSAGES.get("InvalidArgs", filler));
}
}
String projectizerArg = arguments.getFlagValue(PROJECTIZER_FLAG);
if (arguments.hasFlag(PROJECTIZER_FLAG)) {
if (projectizerArg == null) {
Object[] filler = { PROJECTIZER_FLAG };
handleErrorAndExit(_MESSAGES.get("NullProjectizer", filler));
}
return (Projectizer) loadClass(arguments.getFlagValue(PROJECTIZER_FLAG), Projectizer.class);
}
Object[] filler = { HELP_FLAG };
throw new MuseRuntimeException("InvalidArgs",_MESSAGES.get("InvalidArgs", filler));
}