Added DllPath attribute
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 27 Sep 2006 05:29:27 +0000 (05:29 +0000)
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 27 Sep 2006 05:29:27 +0000 (05:29 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1631 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/VfrCompilerTask.java

index 13b855c..5897bd2 100644 (file)
@@ -46,6 +46,7 @@ public class VfrCompilerTask extends Task implements EfiDefine {
     private FileArg vfrFile = new FileArg();\r
     private IncludePath includepathList = new IncludePath();\r
     private FileArg outPutDir = new FileArg(" -od ", ".");\r
+    private String dllPath = "";\r
 \r
     /**\r
      get class member of createList file\r
@@ -153,6 +154,10 @@ public class VfrCompilerTask extends Task implements EfiDefine {
         this.processerArg.setArg(" -ppflag ", processerArg);\r
     }\r
 \r
+    public void setDllPath(String dllPath) {\r
+        this.dllPath = dllPath;\r
+    }\r
+\r
     /**\r
      The standard execute method of ANT task.\r
      **/\r
@@ -191,6 +196,7 @@ public class VfrCompilerTask extends Task implements EfiDefine {
             runner.setAntRun(project);            \r
             runner.setCommandline(commandLine.getCommandline());\r
             runner.setWorkingDirectory(new File(outPutDir.getValue())); \r
+            runner.setEnvironment(new String[]{"PATH", dllPath});\r
             \r
             EdkLog.log(this, EdkLog.EDK_VERBOSE, Commandline.toString(commandLine.getCommandline()));\r
             EdkLog.log(this, vfrFile.toFileList());\r