astra.ASTRACompileCmd Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of astra-maven-plugin Show documentation
Show all versions of astra-maven-plugin Show documentation
This plugin can be used to support building of ASTRA applications.
package astra;
import java.io.File;
import java.util.List;
public class ASTRACompileCmd extends AbstractCompilerCmd {
private final String source;
private final String target;
public ASTRACompileCmd(File baseDir, String source, List classpath) {
this(baseDir, source, source, classpath);
}
public ASTRACompileCmd(File baseDir, String source, String target, List classpath) {
super(baseDir, classpath);
this.source = source;
this.target = target;
// System.out.println("BaseDir: " + baseDir.getAbsolutePath());
// System.out.println("Classpath: " + getClasspath());
}
public String[] getCommand() {
return new String[] { "java", "-cp", getClasspath(), "astra.compiler.ASTRACompiler", source, target };
}
}