///\r
/// The concurrent thread number\r
///\r
- public static int MAX_CONCURRENT_THREAD_NUMBER = 1;\r
+ public static int MAX_CONCURRENT_THREAD_NUMBER = 2;\r
\r
///\r
/// there are three type: all (build), clean and cleanall\r
//\r
if (type.compareTo("cleanall") == 0) {\r
File platformBuildFile = \r
- new File(getProject().getProperty("PLATFORM_DIR") \r
+ new File(getProject().getProperty("BUILD_DIR") \r
+ File.separatorChar \r
+ getProject().getProperty("PLATFORM") \r
+ "_build.xml");\r
// Build every MSA files (SINGLE MODULE BUILD)\r
//\r
else if (buildFile.getName().endsWith(ToolDefinitions.MSA_EXTENSION)) {\r
+ if (multithread) {\r
+ EdkLog.log(this, EdkLog.EDK_WARNING, "Multi-Thead do not take effect on Stand-Alone (Single) module build. ");\r
+ multithread = false;\r
+ }\r
File tmpFile = new File(GlobalData.getWorkspacePath() + File.separatorChar + activePlatform);\r
EdkLog.log(this, "Using the FPD file [" + tmpFile.getPath() + "] for the active platform. ");\r
EdkLog.log(this, "Processing the MSA file [" + buildFile.getPath() + "] ..>> ");\r
if (str != null && str.trim().equalsIgnoreCase("Enable")) {\r
multithread = true;\r
}\r
- \r
+\r
str = getValue(ToolDefinitions.TARGET_KEY_MAX_CONCURRENT_THREAD_NUMBER, targetFileInfo);\r
if (str != null ) {\r
try {\r