//Compile the source to another directory
SrcCompiler srcCompileTool = new SrcCompiler();
srcCompileTool.compileSource(tempClassFile, tempProjectSrcLocation);
//create the jar file and add that to the lib directory
String projectLib = outputPage.getOutputLocation()+File.separator+"lib";
JarFileWriter jarFileWriter = new JarFileWriter();
String jarFileName = "CodegenResults.jar";
if (!outputPage.getJarFilename().equals("")){
jarFileName=outputPage.getJarFilename();
}
outputPage.setJarFileName(jarFileName);
jarFileWriter.writeJarFile(new File(projectLib), jarFileName, tempClassFile);
//Delete the temp folders
deleteDir(tempCodegenFile);
}