]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/IncludePath.java
Fixed the issue caused by introducing INCLUDE_PATH property;
[mirror_edk2.git] / Tools / Source / FrameworkTasks / org / tianocore / framework / tasks / IncludePath.java
index c2865cb907a2cd2320762e746d0fb021da7b8f5e..4591406bbfdede030a75540d41380de634dbeffc 100644 (file)
@@ -14,110 +14,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
 \r
 package org.tianocore.framework.tasks;\r
 \r
-import java.io.File;\r
-import java.util.ArrayList;\r
-import java.util.List;\r
-import java.util.StringTokenizer;\r
-\r
-public class IncludePath implements NestElement {\r
-    /**\r
-     IncludePath nested element Class\r
-     class member\r
-         -name : name of include path \r
-         -file : name of file including include path\r
-     **/\r
-    private String path = "";\r
-    private File file;\r
-    private List<String> nameList = new ArrayList<String>();\r
-    \r
-    /**\r
-     get class member "file"\r
-\r
-     @returns   The File object\r
-     **/\r
-    public File getFile() {\r
-        return this.file;\r
-    }\r
-\r
-    /**\r
-     set class member "file"\r
-\r
-     @param     file    The name of include path\r
-     **/\r
-    public void setFile(File file) {\r
-        this.file = file;\r
-    }\r
-    \r
-    /**\r
-     get class member "file"\r
-\r
-     @returns   The name of include path\r
-     **/\r
-    public String getPath() {\r
-        return this.path;\r
-    }\r
-    \r
-    /**\r
-     get class member "name"\r
-\r
-     @returns   The name of include path\r
-     **/\r
-    public String getName() {\r
-        return this.path;\r
-    }\r
-    \r
-    /**\r
-     set class member "name"\r
-\r
-     @param     name    The name of include path\r
-     **/\r
-    public void setName(String name){\r
-        this.path = " -I " + name;\r
-    }\r
-\r
-    /**\r
-     set class member "path"\r
-\r
-     @param     name    name of file including include paths \r
-     **/\r
-    public void setPath(String name) {\r
-        this.path = " -I " + name;\r
-    }\r
-\r
-    /**\r
-     override Object.toString()\r
-\r
-     @returns   name of file including include paths \r
-     **/\r
+/**\r
+   IncludePath class is generally used to pass arguments with "-i" before each\r
+   of them.\r
+ **/\r
+public class IncludePath extends NestElement {\r
     public String toString() {\r
-        return getPath();\r
-    }\r
\r
-    /**\r
-     set class member "list"\r
-\r
-     @param     fileNameList    name list of include paths, sperated by space, tab,\r
-                                comma or semi-comma\r
-     **/\r
-    public void setList(String fileNameList) {\r
-        if (fileNameList != null && fileNameList.length() > 0) {\r
-            StringTokenizer tokens = new StringTokenizer(fileNameList, " \t,;", false);\r
-            while (tokens.hasMoreTokens()) {\r
-                String fileName = tokens.nextToken().trim();\r
-                if (fileName.length() > 0) {\r
-                    this.nameList.add(fileName);\r
-                }\r
-            }\r
-        }\r
-    }\r
-\r
-    /**\r
-     get class member "list"\r
-\r
-     @returns   The include paths list.\r
-     **/\r
-    public List<String> getList() {\r
-        return nameList;\r
+        return super.toString(" -i ");\r
     }\r
 }\r
 \r