01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one
03: * or more contributor license agreements. See the NOTICE file
04: * distributed with this work for additional information
05: * regarding copyright ownership. The ASF licenses this file
06: * to you under the Apache License, Version 2.0 (the
07: * "License"); you may not use this file except in compliance
08: * with the License. You may obtain a copy of the License at
09: *
10: * http://www.apache.org/licenses/LICENSE-2.0
11: *
12: * Unless required by applicable law or agreed to in writing,
13: * software distributed under the License is distributed on an
14: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15: * KIND, either express or implied. See the License for the
16: * specific language governing permissions and limitations
17: * under the License.
18: */
19: package org.apache.axis2.maven2.aar;
20:
21: import java.io.File;
22:
23: /**
24: * A FileSet defines additional files, which are being added to the Axis application archive. The
25: * objects structure follows the FileSet object from the maven-assembly-plugin, see the <a
26: * href="http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html">plugin
27: * documentation</a> for details.
28: */
29: public class FileSet {
30: private File directory;
31: private String outputDirectory;
32: private String[] includes, excludes;
33: private boolean skipDefaultExcludes;
34:
35: /**
36: * Returns the file sets base directory. May be omitted, in which case the projects base
37: * directory is assumed.
38: */
39: public File getDirectory() {
40: return directory;
41: }
42:
43: /**
44: * Sets the file sets base directory. May be omitted, in which case the projects base directory
45: * is assumed.
46: */
47: public void setDirectory(File directory) {
48: this .directory = directory;
49: }
50:
51: /** Returns the file sets exclusion list. */
52: public String[] getExcludes() {
53: return excludes;
54: }
55:
56: /** Sets the file sets exclusion list. */
57: public void setExcludes(String[] excludes) {
58: this .excludes = excludes;
59: }
60:
61: /** Returns the file sets inclusion list. */
62: public String[] getIncludes() {
63: return includes;
64: }
65:
66: /** Sets the file sets inclusion list. */
67: public void setIncludes(String[] includes) {
68: this .includes = includes;
69: }
70:
71: /**
72: * Sets a prefix, which the included files should have when being added to the Axis application
73: * archive.
74: */
75: public String getOutputDirectory() {
76: return outputDirectory;
77: }
78:
79: /**
80: * Returns a prefix, which the included files should have when being added to the Axis
81: * application archive.
82: */
83: public void setOutputDirectory(String outputDirectory) {
84: this .outputDirectory = outputDirectory;
85: }
86:
87: /** Returns, whether the default excludes should be used. Defaults to true. */
88: public boolean isSkipDefaultExcludes() {
89: return skipDefaultExcludes;
90: }
91:
92: /** Sets, whether the default excludes should be used. Defaults to true. */
93: public void setSkipDefaultExcludes(boolean skipDefaultExcludes) {
94: this.skipDefaultExcludes = skipDefaultExcludes;
95: }
96: }
|