]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | This file is used to nest elements corresponding to DpFile\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation\r | |
5 | All rights reserved. This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | package org.tianocore.build.global;\r | |
15 | \r | |
16 | import java.util.ArrayList;\r | |
17 | import java.util.List;\r | |
18 | \r | |
19 | /**\r | |
20 | DpFileList is a container of Dpfile at the point of ANT task/datatype\r | |
21 | **/\r | |
22 | public class DpFileList {\r | |
23 | ///\r | |
24 | /// Keep all the file names from all nested DpFile\r | |
25 | ///\r | |
26 | List<String> nameList = new ArrayList<String>();\r | |
27 | \r | |
28 | /**\r | |
29 | Empty constructor just in case\r | |
30 | **/\r | |
31 | public DpFileList() {\r | |
32 | }\r | |
33 | \r | |
34 | /**\r | |
35 | Empty execute method of ANT task. ANT will call it even we don't need it.\r | |
36 | **/\r | |
37 | public void execute() {\r | |
38 | }\r | |
39 | \r | |
40 | /**\r | |
41 | Standard add method of ANT task, for nested DpFile type of elements. It just\r | |
42 | simply fetch the files list from DpFile and put them in its own nameList.\r | |
43 | \r | |
44 | @param f a DpFile object which will be instantiated by ANT\r | |
45 | **/\r | |
46 | public void addConfiguredFile(DpFile f) {\r | |
47 | this.nameList.addAll(f.getList());\r | |
48 | }\r | |
49 | }\r | |
50 | \r |