From bc022470e469566d807cf39b9e03cccc3b7e8685 Mon Sep 17 00:00:00 2001 From: jwang36 Date: Wed, 13 Dec 2006 02:42:46 +0000 Subject: [PATCH] Fixed EDKT484 and rewrite the output message when no arch is found. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2089 6f19259b-4bc3-4df7-8a09-765794883524 --- .../GenBuild/org/tianocore/build/GenBuildTask.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java b/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java index 79eeb2757f..9d7eb6d094 100644 --- a/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java +++ b/Tools/Java/Source/GenBuild/org/tianocore/build/GenBuildTask.java @@ -226,9 +226,9 @@ public class GenBuildTask extends Ant { } Set archSet = new LinkedHashSet(); - - if ( getProject().getProperty("ARCH") != null) { - String[] fpdArchList = getProject().getProperty("ARCH").split(" "); + String archString = getProject().getProperty("ARCH"); + if (archString != null) { + String[] fpdArchList = archString.split(" "); for (int i = 0; i < fpdArchList.length; i++) { if (archListSupByToolChain.contains(fpdArchList[i])) { @@ -254,7 +254,7 @@ public class GenBuildTask extends Ant { } if (archList.length == 0) { - EdkLog.log(this, EdkLog.EDK_WARNING, "Warning: " + moduleId + " was not found in current platform FPD file!\n"); + EdkLog.log(this, EdkLog.EDK_WARNING, "Warning: " + "[" + archString + "] is not supported for " + moduleId + " in this build!\n"); } for (int k = 0; k < archList.length; k++) { @@ -429,7 +429,7 @@ public class GenBuildTask extends Ant { 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)); + + File.separatorChar + msaFileName.substring(0, msaFileName.lastIndexOf('.'))); // // SUBSYSTEM