View Javadoc

1   package org.apache.maven.plugin.assembly.testutils;
2   
3   /*
4    * Licensed to the Apache Software Foundation (ASF) under one
5    * or more contributor license agreements.  See the NOTICE file
6    * distributed with this work for additional information
7    * regarding copyright ownership.  The ASF licenses this file
8    * to you under the Apache License, Version 2.0 (the
9    * "License"); you may not use this file except in compliance
10   * with the License.  You may obtain a copy of the License at
11   *
12   *   http://www.apache.org/licenses/LICENSE-2.0
13   *
14   * Unless required by applicable law or agreed to in writing,
15   * software distributed under the License is distributed on an
16   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17   * KIND, either express or implied.  See the License for the
18   * specific language governing permissions and limitations
19   * under the License.
20   */
21  
22  import org.apache.maven.archiver.MavenArchiveConfiguration;
23  import org.apache.maven.artifact.repository.ArtifactRepository;
24  import org.apache.maven.execution.MavenSession;
25  import org.apache.maven.plugin.assembly.AssemblerConfigurationSource;
26  import org.apache.maven.project.MavenProject;
27  import org.apache.maven.shared.filtering.MavenFileFilter;
28  
29  import java.io.File;
30  import java.util.List;
31  
32  public class ConfigSourceStub
33      implements AssemblerConfigurationSource
34  {
35  
36      private String archiverConfig;
37  
38      private MavenProject project;
39  
40      public File getArchiveBaseDirectory()
41      {
42          return null;
43      }
44  
45      public File getBasedir()
46      {
47          return null;
48      }
49  
50      public String getClassifier()
51      {
52          return null;
53      }
54  
55      public String getDescriptor()
56      {
57          return null;
58      }
59  
60      public String getDescriptorId()
61      {
62          return null;
63      }
64  
65      public String[] getDescriptorReferences()
66      {
67          return null;
68      }
69  
70      public File getDescriptorSourceDirectory()
71      {
72          return null;
73      }
74  
75      public String[] getDescriptors()
76      {
77          return null;
78      }
79  
80      public List<String> getFilters()
81      {
82          return null;
83      }
84  
85      public String getFinalName()
86      {
87          return null;
88      }
89  
90      public MavenArchiveConfiguration getJarArchiveConfiguration()
91      {
92          return null;
93      }
94  
95      public ArtifactRepository getLocalRepository()
96      {
97          return null;
98      }
99  
100     public MavenSession getMavenSession()
101     {
102         return null;
103     }
104 
105     public File getOutputDirectory()
106     {
107         return null;
108     }
109 
110     public MavenProject getProject()
111     {
112         return project;
113     }
114 
115     public List<MavenProject> getReactorProjects()
116     {
117         return null;
118     }
119 
120     public List<ArtifactRepository> getRemoteRepositories()
121     {
122         return null;
123     }
124 
125     public File getSiteDirectory()
126     {
127         return null;
128     }
129 
130     public String getTarLongFileMode()
131     {
132         return null;
133     }
134 
135     public File getTemporaryRootDirectory()
136     {
137         return null;
138     }
139 
140     public File getWorkingDirectory()
141     {
142         return null;
143     }
144 
145     public boolean isAssemblyIdAppended()
146     {
147         return false;
148     }
149 
150     public boolean isDryRun()
151     {
152         return false;
153     }
154 
155     public boolean isIgnoreDirFormatExtensions()
156     {
157         return false;
158     }
159 
160     public boolean isIgnoreMissingDescriptor()
161     {
162         return false;
163     }
164 
165     public boolean isSiteIncluded()
166     {
167         return false;
168     }
169 
170     public void setArchiverConfig( final String archiverConfig )
171     {
172         this.archiverConfig = archiverConfig;
173     }
174 
175     public String getArchiverConfig()
176     {
177         return archiverConfig;
178     }
179 
180     public MavenFileFilter getMavenFileFilter()
181     {
182         return null;
183     }
184 
185     public void setProject( final MavenProject mavenProject )
186     {
187         project = mavenProject;
188     }
189 
190     public boolean isUpdateOnly()
191     {
192         return false;
193     }
194 
195     public boolean isIgnorePermissions()
196     {
197         return true;
198     }
199 
200     public boolean isUseJvmChmod()
201     {
202         return true;
203     }
204     
205     public String getEncoding() {
206     	return null;
207     }
208 
209 }