Used the msa file name instead of module name as intermediate directory name

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2082 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jwang36 2006-12-11 14:54:44 +00:00
parent 3cbeeeb8d7
commit 86f3fef093
1 changed files with 5 additions and 2 deletions

View File

@ -425,8 +425,11 @@ public class GenBuildTask extends Ant {
getProject().setProperty("FILE_GUID", moduleId.getGuid());
getProject().setProperty("VERSION", moduleId.getVersion());
getProject().setProperty("MODULE_TYPE", moduleId.getModuleType());
getProject().setProperty("MODULE_DIR", moduleId.getMsaFile().getParent().replaceAll("(\\\\)", "/"));
getProject().setProperty("MODULE_RELATIVE_DIR", moduleId.getModuleRelativePath().replaceAll("(\\\\)", "/") + File.separatorChar + moduleId.getName());
File msaFile = moduleId.getMsaFile();
String msaFileName = msaFile.getName();
getProject().setProperty("MODULE_DIR", msaFile.getParent().replaceAll("(\\\\)", "/"));
getProject().setProperty("MODULE_RELATIVE_DIR", moduleId.getModuleRelativePath().replaceAll("(\\\\)", "/")
+ File.separatorChar + msaFileName.substring(0, msaFileName.length() - 3));
//
// SUBSYSTEM