astra.ASTRARunCmd 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 ASTRARunCmd extends AbstractCompilerCmd {
private String mainClass;
private String mainName;
// private String arguments;
public ASTRARunCmd(File baseDir, String mainClass, String mainName, List classpath) {
super(baseDir, classpath);
this.mainClass = mainClass;
this.mainName = mainName;
// this.arguments = arguments;
}
public String[] getCommand() {
return new String[] { "java", "-cp", getClasspath(), "-Dastra.name="+mainName, mainClass};
}
}