]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/global/DpFileList.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / global / DpFileList.java
diff --git a/Tools/Source/GenBuild/org/tianocore/build/global/DpFileList.java b/Tools/Source/GenBuild/org/tianocore/build/global/DpFileList.java
deleted file mode 100644 (file)
index dd03252..0000000
+++ /dev/null
@@ -1,64 +0,0 @@
-/** @file\r
-This file is used to nest elements corresponding to DpFile\r
-\r
-Copyright (c) 2006, Intel Corporation\r
-All rights reserved. This program and the accompanying materials\r
-are licensed and made available under the terms and conditions of the BSD License\r
-which accompanies this distribution.  The full text of the license may be found at\r
-http://opensource.org/licenses/bsd-license.php\r
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-package org.tianocore.build.global;\r
-\r
-import java.util.ArrayList;\r
-import java.util.List;\r
-\r
-import org.apache.tools.ant.DirectoryScanner;\r
-import org.apache.tools.ant.types.DataType;\r
-import org.apache.tools.ant.types.FileSet;\r
-\r
-/**\r
- DpFileList is a container of Dpfile at the point of ANT task/datatype\r
- **/\r
-public class DpFileList extends DataType {\r
-    ///\r
-    /// Keep all the file names from all nested DpFile\r
-    ///\r
-    List<String> nameList = new ArrayList<String>();\r
-\r
-    /**\r
-     Empty constructor just in case\r
-     **/\r
-    public DpFileList() {\r
-    }\r
-\r
-    /**\r
-     Empty execute method of ANT task. ANT will call it even we don't need it.\r
-     **/\r
-    public void execute() {\r
-    }\r
-\r
-    /**\r
-     Standard add method of ANT task, for nested DpFile type of elements. It just\r
-     simply fetch the files list from DpFile and put them in its own nameList.\r
-\r
-     @param     f   a DpFile object which will be instantiated by ANT\r
-     **/\r
-    public void addConfiguredFile(DpFile f) {\r
-        this.nameList.addAll(f.getList());\r
-    }\r
-\r
-    public void addConfiguredFileSet(FileSet fileSet) {\r
-        DirectoryScanner ds = fileSet.getDirectoryScanner(getProject());\r
-        String dir = fileSet.getDir(getProject()).getAbsolutePath();\r
-        String[] files = ds.getIncludedFiles();\r
-\r
-        for (int i = 0; i < files.length; ++i) {\r
-            nameList.add(dir + "/" + files[i]);\r
-        }\r
-    }\r
-}\r
-\r