From: jwang36 Date: Wed, 27 Sep 2006 05:29:27 +0000 (+0000) Subject: Added DllPath attribute X-Git-Tag: edk2-stable201903~24243 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=e4b5a8c3be730753b271101a79d615203c63fc58 Added DllPath attribute git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1631 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/VfrCompilerTask.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/VfrCompilerTask.java index 13b855cdd8..5897bd2b09 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/VfrCompilerTask.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/VfrCompilerTask.java @@ -46,6 +46,7 @@ public class VfrCompilerTask extends Task implements EfiDefine { private FileArg vfrFile = new FileArg(); private IncludePath includepathList = new IncludePath(); private FileArg outPutDir = new FileArg(" -od ", "."); + private String dllPath = ""; /** get class member of createList file @@ -153,6 +154,10 @@ public class VfrCompilerTask extends Task implements EfiDefine { this.processerArg.setArg(" -ppflag ", processerArg); } + public void setDllPath(String dllPath) { + this.dllPath = dllPath; + } + /** The standard execute method of ANT task. **/ @@ -191,6 +196,7 @@ public class VfrCompilerTask extends Task implements EfiDefine { runner.setAntRun(project); runner.setCommandline(commandLine.getCommandline()); runner.setWorkingDirectory(new File(outPutDir.getValue())); + runner.setEnvironment(new String[]{"PATH", dllPath}); EdkLog.log(this, EdkLog.EDK_VERBOSE, Commandline.toString(commandLine.getCommandline())); EdkLog.log(this, vfrFile.toFileList());