001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */
019: package org.apache.axis2.maven2.mar;
020:
021: import java.io.File;
022:
023: /**
024: * A FileSet defines additional files, which are being added to the
025: * Axis application archive. The objects structure follows the
026: * FileSet object from the maven-assembly-plugin, see the
027: * <a href="http://maven.apache.org/plugins/maven-assembly-plugin/assembly.html">plugin documentation</a>
028: * for details.
029: */
030: public class FileSet {
031: private File directory;
032: private String outputDirectory;
033: private String[] includes, excludes;
034: private boolean skipDefaultExcludes;
035:
036: /**
037: * Returns the file sets base directory. May be omitted, in which
038: * case the projects base directory is assumed.
039: */
040: public File getDirectory() {
041: return directory;
042: }
043:
044: /**
045: * Sets the file sets base directory. May be omitted, in which
046: * case the projects base directory is assumed.
047: */
048: public void setDirectory(File directory) {
049: this .directory = directory;
050: }
051:
052: /**
053: * Returns the file sets exclusion list.
054: */
055: public String[] getExcludes() {
056: return excludes;
057: }
058:
059: /**
060: * Sets the file sets exclusion list.
061: */
062: public void setExcludes(String[] excludes) {
063: this .excludes = excludes;
064: }
065:
066: /**
067: * Returns the file sets inclusion list.
068: */
069: public String[] getIncludes() {
070: return includes;
071: }
072:
073: /**
074: * Sets the file sets inclusion list.
075: */
076: public void setIncludes(String[] includes) {
077: this .includes = includes;
078: }
079:
080: /**
081: * Sets a prefix, which the included files should have
082: * when being added to the Axis application archive.
083: */
084: public String getOutputDirectory() {
085: return outputDirectory;
086: }
087:
088: /**
089: * Returns a prefix, which the included files should have
090: * when being added to the Axis application archive.
091: */
092: public void setOutputDirectory(String outputDirectory) {
093: this .outputDirectory = outputDirectory;
094: }
095:
096: /**
097: * Returns, whether the default excludes should be used. Defaults
098: * to true.
099: */
100: public boolean isSkipDefaultExcludes() {
101: return skipDefaultExcludes;
102: }
103:
104: /**
105: * Sets, whether the default excludes should be used. Defaults to
106: * true.
107: */
108: public void setSkipDefaultExcludes(boolean skipDefaultExcludes) {
109: this.skipDefaultExcludes = skipDefaultExcludes;
110: }
111: }
|