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

astra.JavaCompilerCmd Maven / Gradle / Ivy

The newest version!
package astra;

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

public class JavaCompilerCmd extends AbstractCompilerCmd {
	private List files;
	private String target;
	
	public JavaCompilerCmd(File baseDir, String target, List files, List classpath) {
		super(baseDir, classpath);
		this.target =target;
		this.files = files;
	}
	
	public String[] getCommand() {
		String[] cmd = new String[files.size()+5];
		cmd[0]="javac";
		cmd[1]="-cp";
		cmd[2]=getClasspath();
		cmd[3]="-d";
		cmd[4]=target;
		for (int i=0;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy