public void executeJavaClass(
@Option(name = "class", type = PromptType.JAVA_CLASS, required = true) final JavaResource classToExecute,
@Option(name = "arguments") final String arguments) throws Exception
{
String qualifiedName = classToExecute.getJavaSource().getQualifiedName();
JavaExecutionFacet facet = project.getFacet(JavaExecutionFacet.class);
if (arguments != null)
{
facet.executeProjectClass(qualifiedName, arguments.split(" "));
}
else
{
facet.executeProjectClass(qualifiedName);
}
}