All Downloads are FREE. Search and download functionalities are using the official Maven repository.

astra.AbstractCompilerCmd Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
package astra;

import java.io.File;
import java.util.List;

public abstract class AbstractCompilerCmd extends AbstractCmd {
	protected final List classpath;
	
	public AbstractCompilerCmd(File baseDir, List classpath) {
		super(baseDir);
		this.classpath = classpath;
	}
	
	protected String getClasspath() {
		StringBuffer buf = new StringBuffer();
		char delim = ':';
		if (System.getProperty("os.name").startsWith("Windows")) delim = ';';
		boolean first = true;
		for (String jar : classpath) {
			if (first) first = false; else buf.append(delim);
			buf.append(jar);
		}
		return buf.toString();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy