java.setClassname("org.apache.tools.ant.Main");
setCommonVMSettings(java);
java.setClasspath(getPathForCreateEar());
addEnvVariablesForCreateEar(java);
java.createArg().setLine("-buildfile "+buildFile+" -quiet");
int returnStatus = java.executeJava();
if(returnStatus==1) {
echo.setMessage("Some errors occurred while building the ear. You can find " +
"the generated code at ["+archivePath+"]");
echo.execute();
}else