Permalink
Browse files

Fixed bug with ArrayList loading.

  • Loading branch information...
1 parent 1d0890f commit 671e774f23c29af94675068eb31e19c37ea46a02 @rbpark committed Jun 6, 2012
@@ -228,7 +228,7 @@ public void cancelJob() {
}
}
- private static Object getObjectAsProxyUser(final Properties prop, Logger logger, final String jobName, final String className) throws Exception{
+ private static Object getObjectAsProxyUser(final Properties prop, final Logger logger, final String jobName, final String className) throws Exception{
Object obj = SecurityUtils.getProxiedUser(prop, logger, new Configuration()).doAs(new PrivilegedExceptionAction<Object>() {
@Override
public Object run() throws Exception {
@@ -29,7 +29,7 @@
.getLogger(JavaProcessJob.class);
public static final String CLASSPATH = "classpath";
- public static final String GLOBAL_CLASSPATH = "global.classpath";
+ public static final String GLOBAL_CLASSPATH = "global.classpaths";
public static final String JAVA_CLASS = "java.class";
public static final String INITIAL_MEMORY_SIZE = "Xms";
public static final String MAX_MEMORY_SIZE = "Xmx";
@@ -80,8 +80,7 @@ protected String getClassPathParam() {
protected List<String> getClassPaths() {
List<String> classPaths = getProps().getStringList(CLASSPATH, null, ",");
- ArrayList<String> classpathList = new ArrayList<String>(classPaths);
-
+ ArrayList<String> classpathList = new ArrayList<String>();
// Adding global properties used system wide.
if (getProps().containsKey(GLOBAL_CLASSPATH)) {
List<String> globalClasspath = getProps().getStringList(GLOBAL_CLASSPATH);
@@ -97,7 +96,7 @@ protected String getClassPathParam() {
for (File file : parent.listFiles()) {
if (file.getName().endsWith(".jar")) {
- log.info("Adding to classpath:" + file.getName());
+ //log.info("Adding to classpath:" + file.getName());
classpathList.add(file.getName());
}
}

0 comments on commit 671e774

Please sign in to comment.