private static JdeLogger log = JdeLogger.getLogger("SzjdeCompilerCommand");
public String execute() {
String classPathXml = params.get(SzjdeConstants.PARAM_CLASSPATHXML);
String sourceFile = params.get(SzjdeConstants.PARAM_SOURCEFILE);
CompilerContext cc=getCompilerContext(classPathXml);
JDTCompiler compiler =new JDTCompiler(cc);
String[] allSrcFiles = new String[] {};
if (sourceFile.equals("All")) {
allSrcFiles = cc.getAllSourceFiles();
} else {
ClassMetaInfoManager metaInfoManager = cc.getClassMetaInfoManager();
String targetClassName=cc.buildClassName(sourceFile);
Set<String> dependentClasses = metaInfoManager.getDependentClasses(targetClassName);
List<String> srcFileList = new ArrayList<String>();
for (String depClass : dependentClasses ) {
String rtlPathName = depClass.replace(".", "/") + ".java";
String sourcePath = cc.findSourceFileInSrcPath(rtlPathName);
if (sourcePath != null ) {
srcFileList.add(sourcePath);
}
}
if (!srcFileList.contains(sourceFile)) {