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