X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Tools%2FSource%2FFrameworkTasks%2Forg%2Ftianocore%2Fframework%2Ftasks%2FIncludePath.java;h=4591406bbfdede030a75540d41380de634dbeffc;hb=76c86b3ac42df05d2116346bb95cf9462eb2729c;hp=c2865cb907a2cd2320762e746d0fb021da7b8f5e;hpb=f496b9b5ce1dfdf5ee111c24de96529ee0c4708f;p=mirror_edk2.git diff --git a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/IncludePath.java b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/IncludePath.java index c2865cb907..4591406bbf 100644 --- a/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/IncludePath.java +++ b/Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/IncludePath.java @@ -14,110 +14,13 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. package org.tianocore.framework.tasks; -import java.io.File; -import java.util.ArrayList; -import java.util.List; -import java.util.StringTokenizer; - -public class IncludePath implements NestElement { - /** - IncludePath nested element Class - class member - -name : name of include path - -file : name of file including include path - **/ - private String path = ""; - private File file; - private List nameList = new ArrayList(); - - /** - get class member "file" - - @returns The File object - **/ - public File getFile() { - return this.file; - } - - /** - set class member "file" - - @param file The name of include path - **/ - public void setFile(File file) { - this.file = file; - } - - /** - get class member "file" - - @returns The name of include path - **/ - public String getPath() { - return this.path; - } - - /** - get class member "name" - - @returns The name of include path - **/ - public String getName() { - return this.path; - } - - /** - set class member "name" - - @param name The name of include path - **/ - public void setName(String name){ - this.path = " -I " + name; - } - - /** - set class member "path" - - @param name name of file including include paths - **/ - public void setPath(String name) { - this.path = " -I " + name; - } - - /** - override Object.toString() - - @returns name of file including include paths - **/ +/** + IncludePath class is generally used to pass arguments with "-i" before each + of them. + **/ +public class IncludePath extends NestElement { public String toString() { - return getPath(); - } - - /** - set class member "list" - - @param fileNameList name list of include paths, sperated by space, tab, - comma or semi-comma - **/ - public void setList(String fileNameList) { - if (fileNameList != null && fileNameList.length() > 0) { - StringTokenizer tokens = new StringTokenizer(fileNameList, " \t,;", false); - while (tokens.hasMoreTokens()) { - String fileName = tokens.nextToken().trim(); - if (fileName.length() > 0) { - this.nameList.add(fileName); - } - } - } - } - - /** - get class member "list" - - @returns The include paths list. - **/ - public List getList() { - return nameList; + return super.toString(" -i "); } }