summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2279b26)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1476
6f19259b-4bc3-4df7-8a09-
765794883524
private void log(Object msgSource, String msg, int level) {\r
if (msgSource instanceof Task) {\r
this.project.log((Task)msgSource, msg, level);\r
private void log(Object msgSource, String msg, int level) {\r
if (msgSource instanceof Task) {\r
this.project.log((Task)msgSource, msg, level);\r
+ } else if (msgSource instanceof String){\r
+ \r
+ //\r
+ // Pad 12 space to keep message \r
+ //\r
+ msg = msg.replaceAll("\n", "\n ");\r
+ this.project.log(String.format("%12s", "[" + msgSource + "] ") + msg, level);\r
} else {\r
this.project.log(msg, level);\r
}\r
} else {\r
this.project.log(msg, level);\r
}\r
// CONF dir + tools definition file name\r
//\r
File toolsDefFile = new File(workspaceDir + File.separatorChar + toolsDefFilename);\r
// CONF dir + tools definition file name\r
//\r
File toolsDefFile = new File(workspaceDir + File.separatorChar + toolsDefFilename);\r
- EdkLog.log("Using tool definiton file [" + toolsDefFile.getPath() + "].");\r
+ EdkLog.log("Init", "Using tool definiton file [" + toolsDefFile.getPath() + "].");\r
try {\r
toolsDef = new ToolChainConfig(toolsDefFile);\r
} catch (Exception e) {\r
try {\r
toolsDef = new ToolChainConfig(toolsDefFile);\r
} catch (Exception e) {\r
}\r
toolChainInfo.addCommands(toolsDef.getConfigInfo().getCommands());\r
toolChainInfo.normalize();\r
}\r
toolChainInfo.addCommands(toolsDef.getConfigInfo().getCommands());\r
toolChainInfo.normalize();\r
- EdkLog.log("Current build tool chain information summary: ");\r
- EdkLog.log(toolChainInfo + "");\r
+ EdkLog.log("Init", "Current build tool chain information summary: ");\r
+ EdkLog.log("Init", toolChainInfo + "");\r
}\r
return toolChainInfo;\r
}\r
}\r
return toolChainInfo;\r
}\r