All pastes #456369 Raw Edit

Something

public java v1 · immutable
#456369 ·published 2007-04-24 19:54 UTC
rendered paste body
	public List getRuntimeClasspath(String action) {		String serverHome = getServerHome();		ArrayList classpath = new ArrayList();				if( action.equals(JBossServerLaunchConfiguration.START)) {			classpath.add(JavaRuntime.newArchiveRuntimeClasspathEntry(new Path(getStartJar())));		} else if( action.equals(JBossServerLaunchConfiguration.STOP))  {			classpath.add(JavaRuntime.newArchiveRuntimeClasspathEntry(new Path(getShutdownJar())));		} else if( action.equals(JBossServerLaunchConfiguration.TWIDDLE)) {						// Twiddle requires more classes and I'm too lazy to actually figure OUT which ones it needs.			classpath.add(JavaRuntime.newArchiveRuntimeClasspathEntry(new Path(getTwiddleJar())));			addDirectory (serverHome, classpath, "lib");			addDirectory (serverHome, classpath, "lib" + File.separator + "endorsed");			addDirectory (serverHome, classpath, "client");			addDirectory (getConfigurationPath(), classpath, "lib"); 		}						ArrayList runtimeClassPaths = convertClasspath(classpath, runtime.getVM());		return runtimeClassPaths;	}