KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > tools > ant > taskdefs > optional > extension > LibFileSet


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  */

18 package org.apache.tools.ant.taskdefs.optional.extension;
19
20 import org.apache.tools.ant.types.FileSet;
21
22 /**
23  * LibFileSet represents a fileset containing libraries.
24  * Asociated with the libraries is data pertaining to
25  * how they are to be handled when building manifests.
26  *
27  */

28 public class LibFileSet
29     extends FileSet {
30     /**
31      * Flag indicating whether should include the
32      * "Implementation-URL" attribute in manifest.
33      * Defaults to false.
34      */

35     private boolean includeURL;
36
37     /**
38      * Flag indicating whether should include the
39      * "Implementation-*" attributes in manifest.
40      * Defaults to false.
41      */

42     private boolean includeImpl;
43
44     /**
45      * String that is the base URL for the librarys
46      * when constructing the "Implementation-URL"
47      * attribute. For instance setting the base to
48      * "http://jakarta.apache.org/avalon/libs/" and then
49      * including the library "excalibur-cli-1.0.jar" in the
50      * fileset will result in the "Implementation-URL" attribute
51      * being set to "http://jakarta.apache.org/avalon/libs/excalibur-cli-1.0.jar"
52      *
53      * Note this is only used if the library does not define
54      * "Implementation-URL" itself.
55      *
56      * Note that this also implies includeURL=true
57      */

58     private String JavaDoc urlBase;
59
60     /**
61      * Flag indicating whether should include the
62      * "Implementation-URL" attribute in manifest.
63      * Defaults to false.
64      *
65      * @param includeURL the flag
66      */

67     public void setIncludeUrl(boolean includeURL) {
68         this.includeURL = includeURL;
69     }
70
71     /**
72      * Flag indicating whether should include the
73      * "Implementation-*" attributes in manifest.
74      * Defaults to false.
75      *
76      * @param includeImpl the flag
77      */

78     public void setIncludeImpl(boolean includeImpl) {
79         this.includeImpl = includeImpl;
80     }
81
82     /**
83      * Set the url base for fileset.
84      *
85      * @param urlBase the base url
86      */

87     public void setUrlBase(String JavaDoc urlBase) {
88         this.urlBase = urlBase;
89     }
90
91     /**
92      * Get the includeURL flag.
93      *
94      * @return the includeURL flag.
95      */

96     boolean isIncludeURL() {
97         return includeURL;
98     }
99
100     /**
101      * Get the includeImpl flag.
102      *
103      * @return the includeImpl flag.
104      */

105     boolean isIncludeImpl() {
106         return includeImpl;
107     }
108
109     /**
110      * Get the urlbase.
111      *
112      * @return the urlbase.
113      */

114     String JavaDoc getUrlBase() {
115         return urlBase;
116     }
117 }
118
Popular Tags