]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/SkipExt.java
2 This file is to define nested element which is meant for specifying skipped file list
4 Copyright (c) 2006, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 package org
.tianocore
.framework
.tasks
;
17 import java
.util
.ArrayList
;
18 import java
.util
.List
;
19 import java
.util
.StringTokenizer
;
22 SkipExt nested element Class
24 -name : extension name of skiped file
25 -file : name of file including ext
27 public class SkipExt
implements NestElement
{
28 private String name
= "";
30 private List
<String
> nameList
= new ArrayList
<String
>();
33 get class member "name"
34 @returns name parameter
36 public String
getName() {
40 set class member "name"
41 @param name extension name of skiped file
43 public void setName(String name
) {
44 this.name
= " -skipext " + name
;
47 public String
toString() {
52 get class member "file"
53 @returns file parameter
55 public File
getFile() {
59 set class member "file"
60 @param name of file including ext
62 public void setFile(File file
) {
66 public void setList(String fileNameList
) {
67 if (fileNameList
!= null && fileNameList
.length() > 0) {
68 StringTokenizer tokens
= new StringTokenizer(fileNameList
, " \t,;", false);
69 while (tokens
.hasMoreTokens()) {
70 String fileName
= tokens
.nextToken().trim();
71 if (fileName
.length() > 0) {
72 this.nameList
.add(fileName
);
78 public List
<String
> getList() {