}
private String setup()
{
AopRun runOptions = AopHandler.instance().getRun();
StringBuilder execute = new StringBuilder();
execute.append("java ");
if(runOptions.isLoadtime())
execute.append(getLoadtimePath());
execute.append(" -cp ").append(getClasspath());
// execute.append(" org.jboss.aop.standalone.Compiler ");
execute.append(" ");
if(runOptions.isVerbose())
execute.append("-Djboss.aop.verbose=true ");
if(runOptions.isNoopt())
execute.append("-Djboss.aop.noopt=true ");
if(runOptions.isSuppress())
execute.append("-Djboss.aop.suppress=true ");
if(runOptions.getAopXml().size() > 0)
{
execute.append("-Djboss.aop.path=");
String pathSep = System.getProperty("path.separator");
StringBuffer xmlPaths = new StringBuffer();
for(String xml : runOptions.getAopXml())
{
if(xmlPaths.length() > 0)
xmlPaths.append(pathSep);
System.out.println("appending xml: "+xml);
xmlPaths.append(xml);
}
execute.append(xmlPaths.toString()).append(" ");
}
execute.append(runOptions.calculateCorrectExecutionClass());
// execute.append("\"");
System.out.println("EXECUTING: "+execute.toString());