// not a script, try running through run method but properties will not be available
groovy.run(txt, scriptName, cmdline.getCommandline());
}
catch (final CompilationFailedException e) {
StringWriter writer = new StringWriter();
new ErrorReporter( e, false ).write( new PrintWriter(writer) );
String message = writer.toString();
throw new BuildException("Script Failed: "+ message, e, getLocation());
}
}