1 package org.apache.maven.archiver;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.File;
23 import java.util.ArrayList;
24 import java.util.HashMap;
25 import java.util.List;
26 import java.util.Map;
27
28
29
30
31
32
33
34
35 public class MavenArchiveConfiguration
36 {
37 private boolean compress = true;
38
39 private boolean index;
40
41 private boolean addMavenDescriptor = true;
42
43 private File manifestFile;
44
45 private ManifestConfiguration manifest;
46
47 private Map manifestEntries = new HashMap();
48
49 private List manifestSections = new ArrayList();
50
51
52
53
54 private boolean forced = true;
55
56
57
58
59 private File pomPropertiesFile;
60
61 public boolean isCompress()
62 {
63 return compress;
64 }
65
66 public boolean isIndex()
67 {
68 return index;
69 }
70
71 public boolean isAddMavenDescriptor()
72 {
73 return addMavenDescriptor;
74 }
75
76 public File getManifestFile()
77 {
78 return manifestFile;
79 }
80
81 public ManifestConfiguration getManifest()
82 {
83 if ( manifest == null )
84 {
85 manifest = new ManifestConfiguration();
86 }
87 return manifest;
88 }
89
90 public void setCompress( boolean compress )
91 {
92 this.compress = compress;
93 }
94
95 public void setIndex( boolean index )
96 {
97 this.index = index;
98 }
99
100 public void setAddMavenDescriptor( boolean addMavenDescriptor )
101 {
102 this.addMavenDescriptor = addMavenDescriptor;
103 }
104
105 public void setManifestFile( File manifestFile )
106 {
107 this.manifestFile = manifestFile;
108 }
109
110 public void setManifest( ManifestConfiguration manifest )
111 {
112 this.manifest = manifest;
113 }
114
115 public void addManifestEntry( Object key, Object value )
116 {
117 manifestEntries.put( key, value );
118 }
119
120 public void addManifestEntries( Map map )
121 {
122 manifestEntries.putAll( map );
123 }
124
125 public boolean isManifestEntriesEmpty()
126 {
127 return manifestEntries.isEmpty();
128 }
129
130 public Map getManifestEntries()
131 {
132 return manifestEntries;
133 }
134
135 public void setManifestEntries( Map manifestEntries )
136 {
137 this.manifestEntries = manifestEntries;
138 }
139
140 public void addManifestSection( ManifestSection section )
141 {
142 manifestSections.add( section );
143 }
144
145 public void addManifestSections( List list )
146 {
147 manifestSections.addAll( list );
148 }
149
150 public boolean isManifestSectionsEmpty()
151 {
152 return manifestSections.isEmpty();
153 }
154
155 public List getManifestSections()
156 {
157 return manifestSections;
158 }
159
160 public void setManifestSections( List manifestSections )
161 {
162 this.manifestSections = manifestSections;
163 }
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181 public boolean isForced()
182 {
183 return forced;
184 }
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202 public void setForced( boolean forced )
203 {
204 this.forced = forced;
205 }
206
207
208
209
210
211
212 public File getPomPropertiesFile()
213 {
214 return pomPropertiesFile;
215 }
216
217
218
219
220
221
222 public void setPomPropertiesFile( File pomPropertiesFile )
223 {
224 this.pomPropertiesFile = pomPropertiesFile;
225 }
226 }