1 | // SECTION-START[License Header] |
2 | // <editor-fold defaultstate="collapsed" desc=" Generated License "> |
3 | /* |
4 | * Copyright (c) 2010 The JOMC Project |
5 | * Copyright (c) 2005 Christian Schulte <cs@jomc.org> |
6 | * All rights reserved. |
7 | * |
8 | * Redistribution and use in source and binary forms, with or without |
9 | * modification, are permitted provided that the following conditions |
10 | * are met: |
11 | * |
12 | * o Redistributions of source code must retain the above copyright |
13 | * notice, this list of conditions and the following disclaimer. |
14 | * |
15 | * o Redistributions in binary form must reproduce the above copyright |
16 | * notice, this list of conditions and the following disclaimer in |
17 | * the documentation and/or other materials provided with the |
18 | * distribution. |
19 | * |
20 | * THIS SOFTWARE IS PROVIDED BY THE JOMC PROJECT AND CONTRIBUTORS "AS IS" |
21 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
22 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
23 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE JOMC PROJECT OR |
24 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
25 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
26 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; |
27 | * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, |
28 | * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR |
29 | * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF |
30 | * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
31 | * |
32 | * $Id: ManageJavaSourcesCommand.java 1306 2010-01-16 14:28:11Z schulte2005 $ |
33 | * |
34 | */ |
35 | // </editor-fold> |
36 | // SECTION-END |
37 | package org.jomc.cli.commands; |
38 | |
39 | import java.io.File; |
40 | import java.util.logging.Level; |
41 | import javax.xml.bind.JAXBContext; |
42 | import javax.xml.bind.Marshaller; |
43 | import javax.xml.bind.util.JAXBSource; |
44 | import org.apache.commons.cli.CommandLine; |
45 | import org.apache.commons.cli.Option; |
46 | import org.apache.commons.cli.Options; |
47 | import org.jomc.model.ModelContext; |
48 | import org.jomc.model.ModelValidationReport; |
49 | import org.jomc.model.Module; |
50 | import org.jomc.model.Modules; |
51 | import org.jomc.model.ObjectFactory; |
52 | import org.jomc.tools.JavaSources; |
53 | |
54 | // SECTION-START[Documentation] |
55 | // <editor-fold defaultstate="collapsed" desc=" Generated Documentation "> |
56 | /** |
57 | * Command line interface for the {@code JavaSources} tool. |
58 | * <p><b>Specifications</b><ul> |
59 | * <li>{@code org.jomc.cli.Command} {@code 1.0} {@code Multiton}</li> |
60 | * </ul></p> |
61 | * <p><b>Properties</b><ul> |
62 | * <li>"{@link #getAbbreviatedCommandName abbreviatedCommandName}" |
63 | * <blockquote>Property of type {@code java.lang.String}. |
64 | * <p>Abbreviated name of the command.</p> |
65 | * </blockquote></li> |
66 | * <li>"{@link #getClasspathOptionLongName classpathOptionLongName}" |
67 | * <blockquote>Property of type {@code java.lang.String}. |
68 | * <p>Long name of the 'classpath' option.</p> |
69 | * </blockquote></li> |
70 | * <li>"{@link #getClasspathOptionShortName classpathOptionShortName}" |
71 | * <blockquote>Property of type {@code java.lang.String}. |
72 | * <p>Name of the 'classpath' option.</p> |
73 | * </blockquote></li> |
74 | * <li>"{@link #getCommandName commandName}" |
75 | * <blockquote>Property of type {@code java.lang.String}. |
76 | * <p>Name of the command.</p> |
77 | * </blockquote></li> |
78 | * <li>"{@link #getDocumentsOptionLongName documentsOptionLongName}" |
79 | * <blockquote>Property of type {@code java.lang.String}. |
80 | * <p>Long name of the 'documents' option.</p> |
81 | * </blockquote></li> |
82 | * <li>"{@link #getDocumentsOptionShortName documentsOptionShortName}" |
83 | * <blockquote>Property of type {@code java.lang.String}. |
84 | * <p>Name of the 'documents' option.</p> |
85 | * </blockquote></li> |
86 | * <li>"{@link #getInputEncodingOptionLongName inputEncodingOptionLongName}" |
87 | * <blockquote>Property of type {@code java.lang.String}. |
88 | * <p>Long name of the 'input-encoding' option.</p> |
89 | * </blockquote></li> |
90 | * <li>"{@link #getInputEncodingOptionShortName inputEncodingOptionShortName}" |
91 | * <blockquote>Property of type {@code java.lang.String}. |
92 | * <p>Name of the 'input-encoding' option.</p> |
93 | * </blockquote></li> |
94 | * <li>"{@link #getModuleLocationOptionLongName moduleLocationOptionLongName}" |
95 | * <blockquote>Property of type {@code java.lang.String}. |
96 | * <p>Long name of the 'module-location' option.</p> |
97 | * </blockquote></li> |
98 | * <li>"{@link #getModuleLocationOptionShortName moduleLocationOptionShortName}" |
99 | * <blockquote>Property of type {@code java.lang.String}. |
100 | * <p>Name of the 'module-location' option.</p> |
101 | * </blockquote></li> |
102 | * <li>"{@link #getModuleNameOptionLongName moduleNameOptionLongName}" |
103 | * <blockquote>Property of type {@code java.lang.String}. |
104 | * <p>Long name of the 'module' option.</p> |
105 | * </blockquote></li> |
106 | * <li>"{@link #getModuleNameOptionShortName moduleNameOptionShortName}" |
107 | * <blockquote>Property of type {@code java.lang.String}. |
108 | * <p>Name of the 'module' option.</p> |
109 | * </blockquote></li> |
110 | * <li>"{@link #getNoClasspathResolutionOptionLongName noClasspathResolutionOptionLongName}" |
111 | * <blockquote>Property of type {@code java.lang.String}. |
112 | * <p>Long name of the 'no-classpath-resolution' option.</p> |
113 | * </blockquote></li> |
114 | * <li>"{@link #getNoClasspathResolutionOptionShortName noClasspathResolutionOptionShortName}" |
115 | * <blockquote>Property of type {@code java.lang.String}. |
116 | * <p>Name of the 'no-classpath-resolution' option.</p> |
117 | * </blockquote></li> |
118 | * <li>"{@link #getOutputEncodingOptionLongName outputEncodingOptionLongName}" |
119 | * <blockquote>Property of type {@code java.lang.String}. |
120 | * <p>Long name of the 'output-encoding' option.</p> |
121 | * </blockquote></li> |
122 | * <li>"{@link #getOutputEncodingOptionShortName outputEncodingOptionShortName}" |
123 | * <blockquote>Property of type {@code java.lang.String}. |
124 | * <p>Name of the 'output-encoding' option.</p> |
125 | * </blockquote></li> |
126 | * <li>"{@link #getProfileOptionLongName profileOptionLongName}" |
127 | * <blockquote>Property of type {@code java.lang.String}. |
128 | * <p>Long name of the 'profile' option.</p> |
129 | * </blockquote></li> |
130 | * <li>"{@link #getProfileOptionShortName profileOptionShortName}" |
131 | * <blockquote>Property of type {@code java.lang.String}. |
132 | * <p>Name of the 'profile' option.</p> |
133 | * </blockquote></li> |
134 | * <li>"{@link #getSourceDirectoryOptionLongName sourceDirectoryOptionLongName}" |
135 | * <blockquote>Property of type {@code java.lang.String}. |
136 | * <p>Long name of the 'source-dir' option.</p> |
137 | * </blockquote></li> |
138 | * <li>"{@link #getSourceDirectoryOptionShortName sourceDirectoryOptionShortName}" |
139 | * <blockquote>Property of type {@code java.lang.String}. |
140 | * <p>Name of the 'source-dir' option.</p> |
141 | * </blockquote></li> |
142 | * <li>"{@link #getTemplateEncodingOptionLongName templateEncodingOptionLongName}" |
143 | * <blockquote>Property of type {@code java.lang.String}. |
144 | * <p>Long name of the 'template-encoding' option.</p> |
145 | * </blockquote></li> |
146 | * <li>"{@link #getTemplateEncodingOptionShortName templateEncodingOptionShortName}" |
147 | * <blockquote>Property of type {@code java.lang.String}. |
148 | * <p>Name of the 'template-encoding' option.</p> |
149 | * </blockquote></li> |
150 | * </ul></p> |
151 | * <p><b>Dependencies</b><ul> |
152 | * <li>"{@link #getLocale Locale}"<blockquote> |
153 | * Dependency on {@code java.util.Locale} at specification level 1.1 bound to an instance.</blockquote></li> |
154 | * </ul></p> |
155 | * <p><b>Messages</b><ul> |
156 | * <li>"{@link #getApplicationTitleMessage applicationTitle}"<table> |
157 | * <tr><td valign="top">English:</td><td valign="top"><pre>JOMC Version 1.0-alpha-14 Build 2010-01-16T14:23:10+0000</pre></td></tr> |
158 | * </table> |
159 | * <li>"{@link #getCannotProcessMessage cannotProcess}"<table> |
160 | * <tr><td valign="top">English:</td><td valign="top"><pre>Cannot process ''{0}'': {1}</pre></td></tr> |
161 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kann ''{0}'' nicht verarbeiten: {1}</pre></td></tr> |
162 | * </table> |
163 | * <li>"{@link #getClasspathElementMessage classpathElement}"<table> |
164 | * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath element: ''{0}''</pre></td></tr> |
165 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Element: ''{0}''</pre></td></tr> |
166 | * </table> |
167 | * <li>"{@link #getClasspathOptionMessage classpathOption}"<table> |
168 | * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath elements separated by ''{0}''. If starting with a ''@'' character, a file name of a file holding classpath elements.</pre></td></tr> |
169 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Elemente mit ''{0}'' getrennt. Wenn mit ''@'' beginnend, Dateiname einer Textdatei mit Klassenpfad-Elementen.</pre></td></tr> |
170 | * </table> |
171 | * <li>"{@link #getClasspathOptionArgNameMessage classpathOptionArgName}"<table> |
172 | * <tr><td valign="top">English:</td><td valign="top"><pre>elements</pre></td></tr> |
173 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Elemente</pre></td></tr> |
174 | * </table> |
175 | * <li>"{@link #getDefaultLogLevelInfoMessage defaultLogLevelInfo}"<table> |
176 | * <tr><td valign="top">English:</td><td valign="top"><pre>Default log level: ''{0}''</pre></td></tr> |
177 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Standard-Protokollierungsstufe: ''{0}''</pre></td></tr> |
178 | * </table> |
179 | * <li>"{@link #getDocumentFileMessage documentFile}"<table> |
180 | * <tr><td valign="top">English:</td><td valign="top"><pre>Document file: ''{0}''</pre></td></tr> |
181 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Datei: ''{0}''</pre></td></tr> |
182 | * </table> |
183 | * <li>"{@link #getDocumentsOptionMessage documentsOption}"<table> |
184 | * <tr><td valign="top">English:</td><td valign="top"><pre>Document filenames separated by ''{0}''. If starting with a ''@'' character, a file name of a file holding document filenames.</pre></td></tr> |
185 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Dateinamen mit ''{0}'' getrennt. Wenn mit ''@'' beginnend, Dateiname einer Textdatei mit Dokument-Dateinamen.</pre></td></tr> |
186 | * </table> |
187 | * <li>"{@link #getDocumentsOptionArgNameMessage documentsOptionArgName}"<table> |
188 | * <tr><td valign="top">English:</td><td valign="top"><pre>files</pre></td></tr> |
189 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dateien</pre></td></tr> |
190 | * </table> |
191 | * <li>"{@link #getInputEncodingOptionMessage inputEncodingOption}"<table> |
192 | * <tr><td valign="top">English:</td><td valign="top"><pre>Input encoding.</pre></td></tr> |
193 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Eingabekodierung.</pre></td></tr> |
194 | * </table> |
195 | * <li>"{@link #getInputEncodingOptionArgNameMessage inputEncodingOptionArgName}"<table> |
196 | * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr> |
197 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr> |
198 | * </table> |
199 | * <li>"{@link #getInvalidModelMessage invalidModel}"<table> |
200 | * <tr><td valign="top">English:</td><td valign="top"><pre>Invalid model.</pre></td></tr> |
201 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ungültiges Modell.</pre></td></tr> |
202 | * </table> |
203 | * <li>"{@link #getLongDescriptionMessage longDescription}"<table> |
204 | * <tr><td valign="top">English:</td><td valign="top"><pre>Example: |
205 | * jomc manage-java-sources -sd /tmp/src -df examples/xml/jomc-cli.xml } \ |
206 | * -mn "JOMC CLI" -v</pre></td></tr> |
207 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Beispiel: |
208 | * jomc manage-java-sources -sd /tmp/src -df examples/xml/jomc-cli.xml \ |
209 | * -mn "JOMC CLI" -v</pre></td></tr> |
210 | * </table> |
211 | * <li>"{@link #getMissingModuleMessage missingModule}"<table> |
212 | * <tr><td valign="top">English:</td><td valign="top"><pre>Module ''{0}'' not found.</pre></td></tr> |
213 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Modul ''{0}'' nicht gefunden.</pre></td></tr> |
214 | * </table> |
215 | * <li>"{@link #getModuleLocationOptionMessage moduleLocationOption}"<table> |
216 | * <tr><td valign="top">English:</td><td valign="top"><pre>Location of classpath modules.</pre></td></tr> |
217 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort der Klassenpfad-Module.</pre></td></tr> |
218 | * </table> |
219 | * <li>"{@link #getModuleLocationOptionArgNameMessage moduleLocationOptionArgName}"<table> |
220 | * <tr><td valign="top">English:</td><td valign="top"><pre>location</pre></td></tr> |
221 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort</pre></td></tr> |
222 | * </table> |
223 | * <li>"{@link #getModuleNameOptionMessage moduleNameOption}"<table> |
224 | * <tr><td valign="top">English:</td><td valign="top"><pre>Name of the module to process.</pre></td></tr> |
225 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name des zu verarbeitenden Moduls.</pre></td></tr> |
226 | * </table> |
227 | * <li>"{@link #getModuleNameOptionArgNameMessage moduleNameOptionArgName}"<table> |
228 | * <tr><td valign="top">English:</td><td valign="top"><pre>name</pre></td></tr> |
229 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name</pre></td></tr> |
230 | * </table> |
231 | * <li>"{@link #getModulesReportMessage modulesReport}"<table> |
232 | * <tr><td valign="top">English:</td><td valign="top"><pre>Modules</pre></td></tr> |
233 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Module</pre></td></tr> |
234 | * </table> |
235 | * <li>"{@link #getNoClasspathResolutionOptionMessage noClasspathResolutionOption}"<table> |
236 | * <tr><td valign="top">English:</td><td valign="top"><pre>Do not perform classpath resolution.</pre></td></tr> |
237 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Keine Klassenpfad-Auflösung durchführen.</pre></td></tr> |
238 | * </table> |
239 | * <li>"{@link #getOutputEncodingOptionMessage outputEncodingOption}"<table> |
240 | * <tr><td valign="top">English:</td><td valign="top"><pre>Output encoding.</pre></td></tr> |
241 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ausgabekodierung.</pre></td></tr> |
242 | * </table> |
243 | * <li>"{@link #getOutputEncodingOptionArgNameMessage outputEncodingOptionArgName}"<table> |
244 | * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr> |
245 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr> |
246 | * </table> |
247 | * <li>"{@link #getProfileOptionMessage profileOption}"<table> |
248 | * <tr><td valign="top">English:</td><td valign="top"><pre>Templates profile to use.</pre></td></tr> |
249 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Zu verwendendes Vorlagen-Profil.</pre></td></tr> |
250 | * </table> |
251 | * <li>"{@link #getProfileOptionArgNameMessage profileOptionArgName}"<table> |
252 | * <tr><td valign="top">English:</td><td valign="top"><pre>profile</pre></td></tr> |
253 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Profil</pre></td></tr> |
254 | * </table> |
255 | * <li>"{@link #getSeparatorMessage separator}"<table> |
256 | * <tr><td valign="top">English:</td><td valign="top"><pre>--------------------------------------------------------------------------------</pre></td></tr> |
257 | * </table> |
258 | * <li>"{@link #getShortDescriptionMessage shortDescription}"<table> |
259 | * <tr><td valign="top">English:</td><td valign="top"><pre>Manages Java source files.</pre></td></tr> |
260 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verwaltet Java Quelltext-Dateien.</pre></td></tr> |
261 | * </table> |
262 | * <li>"{@link #getSourceDirectoryOptionMessage sourceDirectoryOption}"<table> |
263 | * <tr><td valign="top">English:</td><td valign="top"><pre>Directory to write source files to.</pre></td></tr> |
264 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verzeichnis in das Quelltext-Dateien geschrieben werden sollen.</pre></td></tr> |
265 | * </table> |
266 | * <li>"{@link #getSourceDirectoryOptionArgNameMessage sourceDirectoryOptionArgName}"<table> |
267 | * <tr><td valign="top">English:</td><td valign="top"><pre>directory</pre></td></tr> |
268 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verzeichnis</pre></td></tr> |
269 | * </table> |
270 | * <li>"{@link #getStartingModuleProcessingMessage startingModuleProcessing}"<table> |
271 | * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} with module ''{1}'' ...</pre></td></tr> |
272 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} mit Modul ''{1}'' aus ... </pre></td></tr> |
273 | * </table> |
274 | * <li>"{@link #getStartingProcessingMessage startingProcessing}"<table> |
275 | * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} ...</pre></td></tr> |
276 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} aus ... </pre></td></tr> |
277 | * </table> |
278 | * <li>"{@link #getTemplateEncodingOptionMessage templateEncodingOption}"<table> |
279 | * <tr><td valign="top">English:</td><td valign="top"><pre>Template encoding.</pre></td></tr> |
280 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Vorlagenkodierung.</pre></td></tr> |
281 | * </table> |
282 | * <li>"{@link #getTemplateEncodingOptionArgNameMessage templateEncodingOptionArgName}"<table> |
283 | * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr> |
284 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr> |
285 | * </table> |
286 | * <li>"{@link #getToolFailureMessage toolFailure}"<table> |
287 | * <tr><td valign="top">English:</td><td valign="top"><pre>{0} failure.</pre></td></tr> |
288 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} fehlgeschlagen.</pre></td></tr> |
289 | * </table> |
290 | * <li>"{@link #getToolSuccessMessage toolSuccess}"<table> |
291 | * <tr><td valign="top">English:</td><td valign="top"><pre>{0} successful.</pre></td></tr> |
292 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} erfolgreich.</pre></td></tr> |
293 | * </table> |
294 | * </ul></p> |
295 | * |
296 | * @author <a href="mailto:cs@jomc.org">Christian Schulte</a> 1.0 |
297 | * @version $Id: ManageJavaSourcesCommand.java 1306 2010-01-16 14:28:11Z schulte2005 $ |
298 | */ |
299 | // </editor-fold> |
300 | // SECTION-END |
301 | // SECTION-START[Annotations] |
302 | // <editor-fold defaultstate="collapsed" desc=" Generated Annotations "> |
303 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
304 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
305 | // </editor-fold> |
306 | // SECTION-END |
307 | public final class ManageJavaSourcesCommand extends AbstractJomcCommand |
308 | { |
309 | // SECTION-START[Command] |
310 | |
311 | /** Options of the instance. */ |
312 | private Options options; |
313 | |
314 | @Override |
315 | public Options getOptions() |
316 | { |
317 | if ( this.options == null ) |
318 | { |
319 | this.options = super.getOptions(); |
320 | this.options.addOption( this.getSourceDirectoryOption() ); |
321 | this.options.addOption( this.getProfileOption() ); |
322 | this.options.addOption( this.getTemplateEncodingOption() ); |
323 | this.options.addOption( this.getInputEncodingOption() ); |
324 | this.options.addOption( this.getOutputEncodingOption() ); |
325 | } |
326 | |
327 | return this.options; |
328 | } |
329 | |
330 | public int executeCommand( final CommandLine commandLine ) throws Exception |
331 | { |
332 | final Modules modules = this.getModules( commandLine ); |
333 | final ClassLoader classLoader = this.getClassLoader( commandLine ); |
334 | final ModelContext context = this.getModelContext( classLoader ); |
335 | final JAXBContext jaxbContext = context.createContext(); |
336 | final Marshaller marshaller = context.createMarshaller(); |
337 | final ModelValidationReport validationReport = |
338 | context.validateModel( new JAXBSource( jaxbContext, new ObjectFactory().createModules( modules ) ) ); |
339 | |
340 | this.log( validationReport, marshaller ); |
341 | |
342 | if ( validationReport.isModelValid() ) |
343 | { |
344 | final JavaSources tool = this.getJavaSources(); |
345 | tool.setModules( modules ); |
346 | |
347 | if ( commandLine.hasOption( this.getProfileOption().getOpt() ) ) |
348 | { |
349 | tool.setProfile( commandLine.getOptionValue( this.getProfileOption().getOpt() ) ); |
350 | } |
351 | if ( commandLine.hasOption( this.getTemplateEncodingOption().getOpt() ) ) |
352 | { |
353 | tool.setTemplateEncoding( commandLine.getOptionValue( this.getTemplateEncodingOption().getOpt() ) ); |
354 | } |
355 | if ( commandLine.hasOption( this.getInputEncodingOption().getOpt() ) ) |
356 | { |
357 | tool.setInputEncoding( commandLine.getOptionValue( this.getInputEncodingOption().getOpt() ) ); |
358 | } |
359 | if ( commandLine.hasOption( this.getOutputEncodingOption().getOpt() ) ) |
360 | { |
361 | tool.setOutputEncoding( commandLine.getOptionValue( this.getOutputEncodingOption().getOpt() ) ); |
362 | } |
363 | |
364 | final File sourcesDirectory = |
365 | new File( commandLine.getOptionValue( this.getSourceDirectoryOption().getOpt() ) ); |
366 | |
367 | if ( commandLine.hasOption( this.getModuleNameOption().getOpt() ) ) |
368 | { |
369 | final String moduleName = commandLine.getOptionValue( this.getModuleNameOption().getOpt() ); |
370 | final Module module = tool.getModules().getModule( moduleName ); |
371 | |
372 | if ( module != null ) |
373 | { |
374 | if ( this.isLoggable( Level.INFO ) ) |
375 | { |
376 | this.log( Level.INFO, this.getStartingModuleProcessingMessage( |
377 | this.getLocale(), this.getCommandName(), module.getName() ), null ); |
378 | |
379 | } |
380 | |
381 | tool.manageSources( module, sourcesDirectory ); |
382 | } |
383 | else if ( this.isLoggable( Level.WARNING ) ) |
384 | { |
385 | this.log( Level.WARNING, this.getMissingModuleMessage( this.getLocale(), moduleName ), null ); |
386 | } |
387 | } |
388 | else |
389 | { |
390 | if ( this.isLoggable( Level.INFO ) ) |
391 | { |
392 | this.log( Level.INFO, this.getStartingProcessingMessage( |
393 | this.getLocale(), this.getCommandName() ), null ); |
394 | |
395 | } |
396 | |
397 | tool.manageSources( sourcesDirectory ); |
398 | } |
399 | |
400 | return STATUS_SUCCESS; |
401 | } |
402 | |
403 | return STATUS_FAILURE; |
404 | } |
405 | |
406 | // SECTION-END |
407 | // SECTION-START[ManageJavaSourcesCommand] |
408 | private Option sourceDirectoryOption; |
409 | |
410 | private Option profileOption; |
411 | |
412 | private Option templateEncodingOption; |
413 | |
414 | private Option outputEncodingOption; |
415 | |
416 | private Option inputEncodingOption; |
417 | |
418 | protected Option getSourceDirectoryOption() |
419 | { |
420 | if ( this.sourceDirectoryOption == null ) |
421 | { |
422 | this.sourceDirectoryOption = new Option( this.getSourceDirectoryOptionShortName(), |
423 | this.getSourceDirectoryOptionLongName(), true, |
424 | this.getSourceDirectoryOptionMessage( this.getLocale() ) ); |
425 | |
426 | this.sourceDirectoryOption.setRequired( true ); |
427 | this.sourceDirectoryOption.setArgName( this.getSourceDirectoryOptionArgNameMessage( this.getLocale() ) ); |
428 | } |
429 | |
430 | return this.sourceDirectoryOption; |
431 | } |
432 | |
433 | protected Option getProfileOption() |
434 | { |
435 | if ( this.profileOption == null ) |
436 | { |
437 | this.profileOption = new Option( this.getProfileOptionShortName(), this.getProfileOptionLongName(), |
438 | true, this.getProfileOptionMessage( this.getLocale() ) ); |
439 | |
440 | this.profileOption.setArgName( this.getProfileOptionArgNameMessage( this.getLocale() ) ); |
441 | } |
442 | |
443 | return this.profileOption; |
444 | } |
445 | |
446 | protected Option getTemplateEncodingOption() |
447 | { |
448 | if ( this.templateEncodingOption == null ) |
449 | { |
450 | this.templateEncodingOption = new Option( this.getTemplateEncodingOptionShortName(), |
451 | this.getTemplateEncodingOptionLongName(), true, |
452 | this.getTemplateEncodingOptionMessage( this.getLocale() ) ); |
453 | |
454 | this.templateEncodingOption.setArgName( this.getTemplateEncodingOptionArgNameMessage( this.getLocale() ) ); |
455 | } |
456 | |
457 | return this.templateEncodingOption; |
458 | } |
459 | |
460 | protected Option getInputEncodingOption() |
461 | { |
462 | if ( this.inputEncodingOption == null ) |
463 | { |
464 | this.inputEncodingOption = new Option( this.getInputEncodingOptionShortName(), |
465 | this.getInputEncodingOptionLongName(), true, |
466 | this.getInputEncodingOptionMessage( this.getLocale() ) ); |
467 | |
468 | this.inputEncodingOption.setArgName( this.getInputEncodingOptionArgNameMessage( this.getLocale() ) ); |
469 | } |
470 | |
471 | return this.inputEncodingOption; |
472 | } |
473 | |
474 | protected Option getOutputEncodingOption() |
475 | { |
476 | if ( this.outputEncodingOption == null ) |
477 | { |
478 | this.outputEncodingOption = new Option( this.getOutputEncodingOptionShortName(), |
479 | this.getOutputEncodingOptionLongName(), true, |
480 | this.getOutputEncodingOptionMessage( this.getLocale() ) ); |
481 | |
482 | this.outputEncodingOption.setArgName( this.getOutputEncodingOptionArgNameMessage( this.getLocale() ) ); |
483 | } |
484 | |
485 | return this.outputEncodingOption; |
486 | } |
487 | |
488 | // SECTION-END |
489 | // SECTION-START[Constructors] |
490 | // <editor-fold defaultstate="collapsed" desc=" Generated Constructors "> |
491 | |
492 | /** Creates a new {@code ManageJavaSourcesCommand} instance. */ |
493 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
494 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
495 | public ManageJavaSourcesCommand() |
496 | { |
497 | // SECTION-START[Default Constructor] |
498 | super(); |
499 | // SECTION-END |
500 | } |
501 | // </editor-fold> |
502 | // SECTION-END |
503 | // SECTION-START[Dependencies] |
504 | // <editor-fold defaultstate="collapsed" desc=" Generated Dependencies "> |
505 | |
506 | /** |
507 | * Gets the {@code Locale} dependency. |
508 | * <p>This method returns the "{@code default}" object of the {@code java.util.Locale} specification at specification level 1.1.</p> |
509 | * <p>That specification does not apply to any scope. A new object is returned whenever requested and bound to this instance.</p> |
510 | * @return The {@code Locale} dependency. |
511 | * @throws org.jomc.ObjectManagementException if getting the dependency instance fails. |
512 | */ |
513 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
514 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
515 | private java.util.Locale getLocale() |
516 | { |
517 | final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" ); |
518 | assert _d != null : "'Locale' dependency not found."; |
519 | return _d; |
520 | } |
521 | // </editor-fold> |
522 | // SECTION-END |
523 | // SECTION-START[Properties] |
524 | // <editor-fold defaultstate="collapsed" desc=" Generated Properties "> |
525 | |
526 | /** |
527 | * Gets the value of the {@code abbreviatedCommandName} property. |
528 | * @return Abbreviated name of the command. |
529 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
530 | */ |
531 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
532 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
533 | private java.lang.String getAbbreviatedCommandName() |
534 | { |
535 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "abbreviatedCommandName" ); |
536 | assert _p != null : "'abbreviatedCommandName' property not found."; |
537 | return _p; |
538 | } |
539 | |
540 | /** |
541 | * Gets the value of the {@code classpathOptionLongName} property. |
542 | * @return Long name of the 'classpath' option. |
543 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
544 | */ |
545 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
546 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
547 | private java.lang.String getClasspathOptionLongName() |
548 | { |
549 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "classpathOptionLongName" ); |
550 | assert _p != null : "'classpathOptionLongName' property not found."; |
551 | return _p; |
552 | } |
553 | |
554 | /** |
555 | * Gets the value of the {@code classpathOptionShortName} property. |
556 | * @return Name of the 'classpath' option. |
557 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
558 | */ |
559 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
560 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
561 | private java.lang.String getClasspathOptionShortName() |
562 | { |
563 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "classpathOptionShortName" ); |
564 | assert _p != null : "'classpathOptionShortName' property not found."; |
565 | return _p; |
566 | } |
567 | |
568 | /** |
569 | * Gets the value of the {@code commandName} property. |
570 | * @return Name of the command. |
571 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
572 | */ |
573 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
574 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
575 | private java.lang.String getCommandName() |
576 | { |
577 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "commandName" ); |
578 | assert _p != null : "'commandName' property not found."; |
579 | return _p; |
580 | } |
581 | |
582 | /** |
583 | * Gets the value of the {@code documentsOptionLongName} property. |
584 | * @return Long name of the 'documents' option. |
585 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
586 | */ |
587 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
588 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
589 | private java.lang.String getDocumentsOptionLongName() |
590 | { |
591 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "documentsOptionLongName" ); |
592 | assert _p != null : "'documentsOptionLongName' property not found."; |
593 | return _p; |
594 | } |
595 | |
596 | /** |
597 | * Gets the value of the {@code documentsOptionShortName} property. |
598 | * @return Name of the 'documents' option. |
599 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
600 | */ |
601 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
602 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
603 | private java.lang.String getDocumentsOptionShortName() |
604 | { |
605 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "documentsOptionShortName" ); |
606 | assert _p != null : "'documentsOptionShortName' property not found."; |
607 | return _p; |
608 | } |
609 | |
610 | /** |
611 | * Gets the value of the {@code inputEncodingOptionLongName} property. |
612 | * @return Long name of the 'input-encoding' option. |
613 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
614 | */ |
615 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
616 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
617 | private java.lang.String getInputEncodingOptionLongName() |
618 | { |
619 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "inputEncodingOptionLongName" ); |
620 | assert _p != null : "'inputEncodingOptionLongName' property not found."; |
621 | return _p; |
622 | } |
623 | |
624 | /** |
625 | * Gets the value of the {@code inputEncodingOptionShortName} property. |
626 | * @return Name of the 'input-encoding' option. |
627 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
628 | */ |
629 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
630 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
631 | private java.lang.String getInputEncodingOptionShortName() |
632 | { |
633 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "inputEncodingOptionShortName" ); |
634 | assert _p != null : "'inputEncodingOptionShortName' property not found."; |
635 | return _p; |
636 | } |
637 | |
638 | /** |
639 | * Gets the value of the {@code moduleLocationOptionLongName} property. |
640 | * @return Long name of the 'module-location' option. |
641 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
642 | */ |
643 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
644 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
645 | private java.lang.String getModuleLocationOptionLongName() |
646 | { |
647 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleLocationOptionLongName" ); |
648 | assert _p != null : "'moduleLocationOptionLongName' property not found."; |
649 | return _p; |
650 | } |
651 | |
652 | /** |
653 | * Gets the value of the {@code moduleLocationOptionShortName} property. |
654 | * @return Name of the 'module-location' option. |
655 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
656 | */ |
657 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
658 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
659 | private java.lang.String getModuleLocationOptionShortName() |
660 | { |
661 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleLocationOptionShortName" ); |
662 | assert _p != null : "'moduleLocationOptionShortName' property not found."; |
663 | return _p; |
664 | } |
665 | |
666 | /** |
667 | * Gets the value of the {@code moduleNameOptionLongName} property. |
668 | * @return Long name of the 'module' option. |
669 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
670 | */ |
671 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
672 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
673 | private java.lang.String getModuleNameOptionLongName() |
674 | { |
675 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleNameOptionLongName" ); |
676 | assert _p != null : "'moduleNameOptionLongName' property not found."; |
677 | return _p; |
678 | } |
679 | |
680 | /** |
681 | * Gets the value of the {@code moduleNameOptionShortName} property. |
682 | * @return Name of the 'module' option. |
683 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
684 | */ |
685 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
686 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
687 | private java.lang.String getModuleNameOptionShortName() |
688 | { |
689 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "moduleNameOptionShortName" ); |
690 | assert _p != null : "'moduleNameOptionShortName' property not found."; |
691 | return _p; |
692 | } |
693 | |
694 | /** |
695 | * Gets the value of the {@code noClasspathResolutionOptionLongName} property. |
696 | * @return Long name of the 'no-classpath-resolution' option. |
697 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
698 | */ |
699 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
700 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
701 | private java.lang.String getNoClasspathResolutionOptionLongName() |
702 | { |
703 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "noClasspathResolutionOptionLongName" ); |
704 | assert _p != null : "'noClasspathResolutionOptionLongName' property not found."; |
705 | return _p; |
706 | } |
707 | |
708 | /** |
709 | * Gets the value of the {@code noClasspathResolutionOptionShortName} property. |
710 | * @return Name of the 'no-classpath-resolution' option. |
711 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
712 | */ |
713 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
714 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
715 | private java.lang.String getNoClasspathResolutionOptionShortName() |
716 | { |
717 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "noClasspathResolutionOptionShortName" ); |
718 | assert _p != null : "'noClasspathResolutionOptionShortName' property not found."; |
719 | return _p; |
720 | } |
721 | |
722 | /** |
723 | * Gets the value of the {@code outputEncodingOptionLongName} property. |
724 | * @return Long name of the 'output-encoding' option. |
725 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
726 | */ |
727 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
728 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
729 | private java.lang.String getOutputEncodingOptionLongName() |
730 | { |
731 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "outputEncodingOptionLongName" ); |
732 | assert _p != null : "'outputEncodingOptionLongName' property not found."; |
733 | return _p; |
734 | } |
735 | |
736 | /** |
737 | * Gets the value of the {@code outputEncodingOptionShortName} property. |
738 | * @return Name of the 'output-encoding' option. |
739 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
740 | */ |
741 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
742 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
743 | private java.lang.String getOutputEncodingOptionShortName() |
744 | { |
745 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "outputEncodingOptionShortName" ); |
746 | assert _p != null : "'outputEncodingOptionShortName' property not found."; |
747 | return _p; |
748 | } |
749 | |
750 | /** |
751 | * Gets the value of the {@code profileOptionLongName} property. |
752 | * @return Long name of the 'profile' option. |
753 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
754 | */ |
755 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
756 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
757 | private java.lang.String getProfileOptionLongName() |
758 | { |
759 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "profileOptionLongName" ); |
760 | assert _p != null : "'profileOptionLongName' property not found."; |
761 | return _p; |
762 | } |
763 | |
764 | /** |
765 | * Gets the value of the {@code profileOptionShortName} property. |
766 | * @return Name of the 'profile' option. |
767 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
768 | */ |
769 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
770 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
771 | private java.lang.String getProfileOptionShortName() |
772 | { |
773 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "profileOptionShortName" ); |
774 | assert _p != null : "'profileOptionShortName' property not found."; |
775 | return _p; |
776 | } |
777 | |
778 | /** |
779 | * Gets the value of the {@code sourceDirectoryOptionLongName} property. |
780 | * @return Long name of the 'source-dir' option. |
781 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
782 | */ |
783 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
784 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
785 | private java.lang.String getSourceDirectoryOptionLongName() |
786 | { |
787 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "sourceDirectoryOptionLongName" ); |
788 | assert _p != null : "'sourceDirectoryOptionLongName' property not found."; |
789 | return _p; |
790 | } |
791 | |
792 | /** |
793 | * Gets the value of the {@code sourceDirectoryOptionShortName} property. |
794 | * @return Name of the 'source-dir' option. |
795 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
796 | */ |
797 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
798 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
799 | private java.lang.String getSourceDirectoryOptionShortName() |
800 | { |
801 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "sourceDirectoryOptionShortName" ); |
802 | assert _p != null : "'sourceDirectoryOptionShortName' property not found."; |
803 | return _p; |
804 | } |
805 | |
806 | /** |
807 | * Gets the value of the {@code templateEncodingOptionLongName} property. |
808 | * @return Long name of the 'template-encoding' option. |
809 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
810 | */ |
811 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
812 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
813 | private java.lang.String getTemplateEncodingOptionLongName() |
814 | { |
815 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "templateEncodingOptionLongName" ); |
816 | assert _p != null : "'templateEncodingOptionLongName' property not found."; |
817 | return _p; |
818 | } |
819 | |
820 | /** |
821 | * Gets the value of the {@code templateEncodingOptionShortName} property. |
822 | * @return Name of the 'template-encoding' option. |
823 | * @throws org.jomc.ObjectManagementException if getting the property instance fails. |
824 | */ |
825 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
826 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
827 | private java.lang.String getTemplateEncodingOptionShortName() |
828 | { |
829 | final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "templateEncodingOptionShortName" ); |
830 | assert _p != null : "'templateEncodingOptionShortName' property not found."; |
831 | return _p; |
832 | } |
833 | // </editor-fold> |
834 | // SECTION-END |
835 | // SECTION-START[Messages] |
836 | // <editor-fold defaultstate="collapsed" desc=" Generated Messages "> |
837 | |
838 | /** |
839 | * Gets the text of the {@code applicationTitle} message. |
840 | * <p><b>Templates</b><br/><table> |
841 | * <tr><td valign="top">English:</td><td valign="top"><pre>JOMC Version 1.0-alpha-14 Build 2010-01-16T14:23:10+0000</pre></td></tr> |
842 | * </table></p> |
843 | * @param locale The locale of the message to return. |
844 | * @return The text of the {@code applicationTitle} message. |
845 | * |
846 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
847 | */ |
848 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
849 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
850 | private String getApplicationTitleMessage( final java.util.Locale locale ) |
851 | { |
852 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "applicationTitle", locale ); |
853 | assert _m != null : "'applicationTitle' message not found."; |
854 | return _m; |
855 | } |
856 | |
857 | /** |
858 | * Gets the text of the {@code cannotProcess} message. |
859 | * <p><b>Templates</b><br/><table> |
860 | * <tr><td valign="top">English:</td><td valign="top"><pre>Cannot process ''{0}'': {1}</pre></td></tr> |
861 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kann ''{0}'' nicht verarbeiten: {1}</pre></td></tr> |
862 | * </table></p> |
863 | * @param locale The locale of the message to return. |
864 | * @param itemInfo Format argument. |
865 | * @param detailMessage Format argument. |
866 | * @return The text of the {@code cannotProcess} message. |
867 | * |
868 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
869 | */ |
870 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
871 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
872 | private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage ) |
873 | { |
874 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "cannotProcess", locale, itemInfo, detailMessage ); |
875 | assert _m != null : "'cannotProcess' message not found."; |
876 | return _m; |
877 | } |
878 | |
879 | /** |
880 | * Gets the text of the {@code classpathElement} message. |
881 | * <p><b>Templates</b><br/><table> |
882 | * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath element: ''{0}''</pre></td></tr> |
883 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Element: ''{0}''</pre></td></tr> |
884 | * </table></p> |
885 | * @param locale The locale of the message to return. |
886 | * @param classpathElement Format argument. |
887 | * @return The text of the {@code classpathElement} message. |
888 | * |
889 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
890 | */ |
891 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
892 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
893 | private String getClasspathElementMessage( final java.util.Locale locale, final java.lang.String classpathElement ) |
894 | { |
895 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElement", locale, classpathElement ); |
896 | assert _m != null : "'classpathElement' message not found."; |
897 | return _m; |
898 | } |
899 | |
900 | /** |
901 | * Gets the text of the {@code classpathOption} message. |
902 | * <p><b>Templates</b><br/><table> |
903 | * <tr><td valign="top">English:</td><td valign="top"><pre>Classpath elements separated by ''{0}''. If starting with a ''@'' character, a file name of a file holding classpath elements.</pre></td></tr> |
904 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Klassenpfad-Elemente mit ''{0}'' getrennt. Wenn mit ''@'' beginnend, Dateiname einer Textdatei mit Klassenpfad-Elementen.</pre></td></tr> |
905 | * </table></p> |
906 | * @param locale The locale of the message to return. |
907 | * @param pathSeparator Format argument. |
908 | * @return The text of the {@code classpathOption} message. |
909 | * |
910 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
911 | */ |
912 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
913 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
914 | private String getClasspathOptionMessage( final java.util.Locale locale, final java.lang.String pathSeparator ) |
915 | { |
916 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathOption", locale, pathSeparator ); |
917 | assert _m != null : "'classpathOption' message not found."; |
918 | return _m; |
919 | } |
920 | |
921 | /** |
922 | * Gets the text of the {@code classpathOptionArgName} message. |
923 | * <p><b>Templates</b><br/><table> |
924 | * <tr><td valign="top">English:</td><td valign="top"><pre>elements</pre></td></tr> |
925 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Elemente</pre></td></tr> |
926 | * </table></p> |
927 | * @param locale The locale of the message to return. |
928 | * @return The text of the {@code classpathOptionArgName} message. |
929 | * |
930 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
931 | */ |
932 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
933 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
934 | private String getClasspathOptionArgNameMessage( final java.util.Locale locale ) |
935 | { |
936 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathOptionArgName", locale ); |
937 | assert _m != null : "'classpathOptionArgName' message not found."; |
938 | return _m; |
939 | } |
940 | |
941 | /** |
942 | * Gets the text of the {@code defaultLogLevelInfo} message. |
943 | * <p><b>Templates</b><br/><table> |
944 | * <tr><td valign="top">English:</td><td valign="top"><pre>Default log level: ''{0}''</pre></td></tr> |
945 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Standard-Protokollierungsstufe: ''{0}''</pre></td></tr> |
946 | * </table></p> |
947 | * @param locale The locale of the message to return. |
948 | * @param defaultLogLevel Format argument. |
949 | * @return The text of the {@code defaultLogLevelInfo} message. |
950 | * |
951 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
952 | */ |
953 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
954 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
955 | private String getDefaultLogLevelInfoMessage( final java.util.Locale locale, final java.lang.String defaultLogLevel ) |
956 | { |
957 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "defaultLogLevelInfo", locale, defaultLogLevel ); |
958 | assert _m != null : "'defaultLogLevelInfo' message not found."; |
959 | return _m; |
960 | } |
961 | |
962 | /** |
963 | * Gets the text of the {@code documentFile} message. |
964 | * <p><b>Templates</b><br/><table> |
965 | * <tr><td valign="top">English:</td><td valign="top"><pre>Document file: ''{0}''</pre></td></tr> |
966 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Datei: ''{0}''</pre></td></tr> |
967 | * </table></p> |
968 | * @param locale The locale of the message to return. |
969 | * @param documentFile Format argument. |
970 | * @return The text of the {@code documentFile} message. |
971 | * |
972 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
973 | */ |
974 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
975 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
976 | private String getDocumentFileMessage( final java.util.Locale locale, final java.lang.String documentFile ) |
977 | { |
978 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFile", locale, documentFile ); |
979 | assert _m != null : "'documentFile' message not found."; |
980 | return _m; |
981 | } |
982 | |
983 | /** |
984 | * Gets the text of the {@code documentsOption} message. |
985 | * <p><b>Templates</b><br/><table> |
986 | * <tr><td valign="top">English:</td><td valign="top"><pre>Document filenames separated by ''{0}''. If starting with a ''@'' character, a file name of a file holding document filenames.</pre></td></tr> |
987 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dokument-Dateinamen mit ''{0}'' getrennt. Wenn mit ''@'' beginnend, Dateiname einer Textdatei mit Dokument-Dateinamen.</pre></td></tr> |
988 | * </table></p> |
989 | * @param locale The locale of the message to return. |
990 | * @param pathSeparator Format argument. |
991 | * @return The text of the {@code documentsOption} message. |
992 | * |
993 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
994 | */ |
995 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
996 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
997 | private String getDocumentsOptionMessage( final java.util.Locale locale, final java.lang.String pathSeparator ) |
998 | { |
999 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentsOption", locale, pathSeparator ); |
1000 | assert _m != null : "'documentsOption' message not found."; |
1001 | return _m; |
1002 | } |
1003 | |
1004 | /** |
1005 | * Gets the text of the {@code documentsOptionArgName} message. |
1006 | * <p><b>Templates</b><br/><table> |
1007 | * <tr><td valign="top">English:</td><td valign="top"><pre>files</pre></td></tr> |
1008 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Dateien</pre></td></tr> |
1009 | * </table></p> |
1010 | * @param locale The locale of the message to return. |
1011 | * @return The text of the {@code documentsOptionArgName} message. |
1012 | * |
1013 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1014 | */ |
1015 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1016 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1017 | private String getDocumentsOptionArgNameMessage( final java.util.Locale locale ) |
1018 | { |
1019 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentsOptionArgName", locale ); |
1020 | assert _m != null : "'documentsOptionArgName' message not found."; |
1021 | return _m; |
1022 | } |
1023 | |
1024 | /** |
1025 | * Gets the text of the {@code inputEncodingOption} message. |
1026 | * <p><b>Templates</b><br/><table> |
1027 | * <tr><td valign="top">English:</td><td valign="top"><pre>Input encoding.</pre></td></tr> |
1028 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Eingabekodierung.</pre></td></tr> |
1029 | * </table></p> |
1030 | * @param locale The locale of the message to return. |
1031 | * @return The text of the {@code inputEncodingOption} message. |
1032 | * |
1033 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1034 | */ |
1035 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1036 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1037 | private String getInputEncodingOptionMessage( final java.util.Locale locale ) |
1038 | { |
1039 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "inputEncodingOption", locale ); |
1040 | assert _m != null : "'inputEncodingOption' message not found."; |
1041 | return _m; |
1042 | } |
1043 | |
1044 | /** |
1045 | * Gets the text of the {@code inputEncodingOptionArgName} message. |
1046 | * <p><b>Templates</b><br/><table> |
1047 | * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr> |
1048 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr> |
1049 | * </table></p> |
1050 | * @param locale The locale of the message to return. |
1051 | * @return The text of the {@code inputEncodingOptionArgName} message. |
1052 | * |
1053 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1054 | */ |
1055 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1056 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1057 | private String getInputEncodingOptionArgNameMessage( final java.util.Locale locale ) |
1058 | { |
1059 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "inputEncodingOptionArgName", locale ); |
1060 | assert _m != null : "'inputEncodingOptionArgName' message not found."; |
1061 | return _m; |
1062 | } |
1063 | |
1064 | /** |
1065 | * Gets the text of the {@code invalidModel} message. |
1066 | * <p><b>Templates</b><br/><table> |
1067 | * <tr><td valign="top">English:</td><td valign="top"><pre>Invalid model.</pre></td></tr> |
1068 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ungültiges Modell.</pre></td></tr> |
1069 | * </table></p> |
1070 | * @param locale The locale of the message to return. |
1071 | * @return The text of the {@code invalidModel} message. |
1072 | * |
1073 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1074 | */ |
1075 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1076 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1077 | private String getInvalidModelMessage( final java.util.Locale locale ) |
1078 | { |
1079 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "invalidModel", locale ); |
1080 | assert _m != null : "'invalidModel' message not found."; |
1081 | return _m; |
1082 | } |
1083 | |
1084 | /** |
1085 | * Gets the text of the {@code longDescription} message. |
1086 | * <p><b>Templates</b><br/><table> |
1087 | * <tr><td valign="top">English:</td><td valign="top"><pre>Example: |
1088 | * jomc manage-java-sources -sd /tmp/src -df examples/xml/jomc-cli.xml } \ |
1089 | * -mn "JOMC CLI" -v</pre></td></tr> |
1090 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Beispiel: |
1091 | * jomc manage-java-sources -sd /tmp/src -df examples/xml/jomc-cli.xml \ |
1092 | * -mn "JOMC CLI" -v</pre></td></tr> |
1093 | * </table></p> |
1094 | * @param locale The locale of the message to return. |
1095 | * @return The text of the {@code longDescription} message. |
1096 | * |
1097 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1098 | */ |
1099 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1100 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1101 | private String getLongDescriptionMessage( final java.util.Locale locale ) |
1102 | { |
1103 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "longDescription", locale ); |
1104 | assert _m != null : "'longDescription' message not found."; |
1105 | return _m; |
1106 | } |
1107 | |
1108 | /** |
1109 | * Gets the text of the {@code missingModule} message. |
1110 | * <p><b>Templates</b><br/><table> |
1111 | * <tr><td valign="top">English:</td><td valign="top"><pre>Module ''{0}'' not found.</pre></td></tr> |
1112 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Modul ''{0}'' nicht gefunden.</pre></td></tr> |
1113 | * </table></p> |
1114 | * @param locale The locale of the message to return. |
1115 | * @param moduleName Format argument. |
1116 | * @return The text of the {@code missingModule} message. |
1117 | * |
1118 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1119 | */ |
1120 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1121 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1122 | private String getMissingModuleMessage( final java.util.Locale locale, final java.lang.String moduleName ) |
1123 | { |
1124 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "missingModule", locale, moduleName ); |
1125 | assert _m != null : "'missingModule' message not found."; |
1126 | return _m; |
1127 | } |
1128 | |
1129 | /** |
1130 | * Gets the text of the {@code moduleLocationOption} message. |
1131 | * <p><b>Templates</b><br/><table> |
1132 | * <tr><td valign="top">English:</td><td valign="top"><pre>Location of classpath modules.</pre></td></tr> |
1133 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort der Klassenpfad-Module.</pre></td></tr> |
1134 | * </table></p> |
1135 | * @param locale The locale of the message to return. |
1136 | * @return The text of the {@code moduleLocationOption} message. |
1137 | * |
1138 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1139 | */ |
1140 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1141 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1142 | private String getModuleLocationOptionMessage( final java.util.Locale locale ) |
1143 | { |
1144 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleLocationOption", locale ); |
1145 | assert _m != null : "'moduleLocationOption' message not found."; |
1146 | return _m; |
1147 | } |
1148 | |
1149 | /** |
1150 | * Gets the text of the {@code moduleLocationOptionArgName} message. |
1151 | * <p><b>Templates</b><br/><table> |
1152 | * <tr><td valign="top">English:</td><td valign="top"><pre>location</pre></td></tr> |
1153 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ort</pre></td></tr> |
1154 | * </table></p> |
1155 | * @param locale The locale of the message to return. |
1156 | * @return The text of the {@code moduleLocationOptionArgName} message. |
1157 | * |
1158 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1159 | */ |
1160 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1161 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1162 | private String getModuleLocationOptionArgNameMessage( final java.util.Locale locale ) |
1163 | { |
1164 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleLocationOptionArgName", locale ); |
1165 | assert _m != null : "'moduleLocationOptionArgName' message not found."; |
1166 | return _m; |
1167 | } |
1168 | |
1169 | /** |
1170 | * Gets the text of the {@code moduleNameOption} message. |
1171 | * <p><b>Templates</b><br/><table> |
1172 | * <tr><td valign="top">English:</td><td valign="top"><pre>Name of the module to process.</pre></td></tr> |
1173 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name des zu verarbeitenden Moduls.</pre></td></tr> |
1174 | * </table></p> |
1175 | * @param locale The locale of the message to return. |
1176 | * @return The text of the {@code moduleNameOption} message. |
1177 | * |
1178 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1179 | */ |
1180 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1181 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1182 | private String getModuleNameOptionMessage( final java.util.Locale locale ) |
1183 | { |
1184 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleNameOption", locale ); |
1185 | assert _m != null : "'moduleNameOption' message not found."; |
1186 | return _m; |
1187 | } |
1188 | |
1189 | /** |
1190 | * Gets the text of the {@code moduleNameOptionArgName} message. |
1191 | * <p><b>Templates</b><br/><table> |
1192 | * <tr><td valign="top">English:</td><td valign="top"><pre>name</pre></td></tr> |
1193 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Name</pre></td></tr> |
1194 | * </table></p> |
1195 | * @param locale The locale of the message to return. |
1196 | * @return The text of the {@code moduleNameOptionArgName} message. |
1197 | * |
1198 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1199 | */ |
1200 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1201 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1202 | private String getModuleNameOptionArgNameMessage( final java.util.Locale locale ) |
1203 | { |
1204 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "moduleNameOptionArgName", locale ); |
1205 | assert _m != null : "'moduleNameOptionArgName' message not found."; |
1206 | return _m; |
1207 | } |
1208 | |
1209 | /** |
1210 | * Gets the text of the {@code modulesReport} message. |
1211 | * <p><b>Templates</b><br/><table> |
1212 | * <tr><td valign="top">English:</td><td valign="top"><pre>Modules</pre></td></tr> |
1213 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Module</pre></td></tr> |
1214 | * </table></p> |
1215 | * @param locale The locale of the message to return. |
1216 | * @return The text of the {@code modulesReport} message. |
1217 | * |
1218 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1219 | */ |
1220 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1221 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1222 | private String getModulesReportMessage( final java.util.Locale locale ) |
1223 | { |
1224 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "modulesReport", locale ); |
1225 | assert _m != null : "'modulesReport' message not found."; |
1226 | return _m; |
1227 | } |
1228 | |
1229 | /** |
1230 | * Gets the text of the {@code noClasspathResolutionOption} message. |
1231 | * <p><b>Templates</b><br/><table> |
1232 | * <tr><td valign="top">English:</td><td valign="top"><pre>Do not perform classpath resolution.</pre></td></tr> |
1233 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Keine Klassenpfad-Auflösung durchführen.</pre></td></tr> |
1234 | * </table></p> |
1235 | * @param locale The locale of the message to return. |
1236 | * @return The text of the {@code noClasspathResolutionOption} message. |
1237 | * |
1238 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1239 | */ |
1240 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1241 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1242 | private String getNoClasspathResolutionOptionMessage( final java.util.Locale locale ) |
1243 | { |
1244 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "noClasspathResolutionOption", locale ); |
1245 | assert _m != null : "'noClasspathResolutionOption' message not found."; |
1246 | return _m; |
1247 | } |
1248 | |
1249 | /** |
1250 | * Gets the text of the {@code outputEncodingOption} message. |
1251 | * <p><b>Templates</b><br/><table> |
1252 | * <tr><td valign="top">English:</td><td valign="top"><pre>Output encoding.</pre></td></tr> |
1253 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Ausgabekodierung.</pre></td></tr> |
1254 | * </table></p> |
1255 | * @param locale The locale of the message to return. |
1256 | * @return The text of the {@code outputEncodingOption} message. |
1257 | * |
1258 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1259 | */ |
1260 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1261 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1262 | private String getOutputEncodingOptionMessage( final java.util.Locale locale ) |
1263 | { |
1264 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "outputEncodingOption", locale ); |
1265 | assert _m != null : "'outputEncodingOption' message not found."; |
1266 | return _m; |
1267 | } |
1268 | |
1269 | /** |
1270 | * Gets the text of the {@code outputEncodingOptionArgName} message. |
1271 | * <p><b>Templates</b><br/><table> |
1272 | * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr> |
1273 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr> |
1274 | * </table></p> |
1275 | * @param locale The locale of the message to return. |
1276 | * @return The text of the {@code outputEncodingOptionArgName} message. |
1277 | * |
1278 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1279 | */ |
1280 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1281 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1282 | private String getOutputEncodingOptionArgNameMessage( final java.util.Locale locale ) |
1283 | { |
1284 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "outputEncodingOptionArgName", locale ); |
1285 | assert _m != null : "'outputEncodingOptionArgName' message not found."; |
1286 | return _m; |
1287 | } |
1288 | |
1289 | /** |
1290 | * Gets the text of the {@code profileOption} message. |
1291 | * <p><b>Templates</b><br/><table> |
1292 | * <tr><td valign="top">English:</td><td valign="top"><pre>Templates profile to use.</pre></td></tr> |
1293 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Zu verwendendes Vorlagen-Profil.</pre></td></tr> |
1294 | * </table></p> |
1295 | * @param locale The locale of the message to return. |
1296 | * @return The text of the {@code profileOption} message. |
1297 | * |
1298 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1299 | */ |
1300 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1301 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1302 | private String getProfileOptionMessage( final java.util.Locale locale ) |
1303 | { |
1304 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "profileOption", locale ); |
1305 | assert _m != null : "'profileOption' message not found."; |
1306 | return _m; |
1307 | } |
1308 | |
1309 | /** |
1310 | * Gets the text of the {@code profileOptionArgName} message. |
1311 | * <p><b>Templates</b><br/><table> |
1312 | * <tr><td valign="top">English:</td><td valign="top"><pre>profile</pre></td></tr> |
1313 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Profil</pre></td></tr> |
1314 | * </table></p> |
1315 | * @param locale The locale of the message to return. |
1316 | * @return The text of the {@code profileOptionArgName} message. |
1317 | * |
1318 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1319 | */ |
1320 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1321 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1322 | private String getProfileOptionArgNameMessage( final java.util.Locale locale ) |
1323 | { |
1324 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "profileOptionArgName", locale ); |
1325 | assert _m != null : "'profileOptionArgName' message not found."; |
1326 | return _m; |
1327 | } |
1328 | |
1329 | /** |
1330 | * Gets the text of the {@code separator} message. |
1331 | * <p><b>Templates</b><br/><table> |
1332 | * <tr><td valign="top">English:</td><td valign="top"><pre>--------------------------------------------------------------------------------</pre></td></tr> |
1333 | * </table></p> |
1334 | * @param locale The locale of the message to return. |
1335 | * @return The text of the {@code separator} message. |
1336 | * |
1337 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1338 | */ |
1339 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1340 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1341 | private String getSeparatorMessage( final java.util.Locale locale ) |
1342 | { |
1343 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "separator", locale ); |
1344 | assert _m != null : "'separator' message not found."; |
1345 | return _m; |
1346 | } |
1347 | |
1348 | /** |
1349 | * Gets the text of the {@code shortDescription} message. |
1350 | * <p><b>Templates</b><br/><table> |
1351 | * <tr><td valign="top">English:</td><td valign="top"><pre>Manages Java source files.</pre></td></tr> |
1352 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verwaltet Java Quelltext-Dateien.</pre></td></tr> |
1353 | * </table></p> |
1354 | * @param locale The locale of the message to return. |
1355 | * @return The text of the {@code shortDescription} message. |
1356 | * |
1357 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1358 | */ |
1359 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1360 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1361 | private String getShortDescriptionMessage( final java.util.Locale locale ) |
1362 | { |
1363 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "shortDescription", locale ); |
1364 | assert _m != null : "'shortDescription' message not found."; |
1365 | return _m; |
1366 | } |
1367 | |
1368 | /** |
1369 | * Gets the text of the {@code sourceDirectoryOption} message. |
1370 | * <p><b>Templates</b><br/><table> |
1371 | * <tr><td valign="top">English:</td><td valign="top"><pre>Directory to write source files to.</pre></td></tr> |
1372 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verzeichnis in das Quelltext-Dateien geschrieben werden sollen.</pre></td></tr> |
1373 | * </table></p> |
1374 | * @param locale The locale of the message to return. |
1375 | * @return The text of the {@code sourceDirectoryOption} message. |
1376 | * |
1377 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1378 | */ |
1379 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1380 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1381 | private String getSourceDirectoryOptionMessage( final java.util.Locale locale ) |
1382 | { |
1383 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "sourceDirectoryOption", locale ); |
1384 | assert _m != null : "'sourceDirectoryOption' message not found."; |
1385 | return _m; |
1386 | } |
1387 | |
1388 | /** |
1389 | * Gets the text of the {@code sourceDirectoryOptionArgName} message. |
1390 | * <p><b>Templates</b><br/><table> |
1391 | * <tr><td valign="top">English:</td><td valign="top"><pre>directory</pre></td></tr> |
1392 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Verzeichnis</pre></td></tr> |
1393 | * </table></p> |
1394 | * @param locale The locale of the message to return. |
1395 | * @return The text of the {@code sourceDirectoryOptionArgName} message. |
1396 | * |
1397 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1398 | */ |
1399 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1400 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1401 | private String getSourceDirectoryOptionArgNameMessage( final java.util.Locale locale ) |
1402 | { |
1403 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "sourceDirectoryOptionArgName", locale ); |
1404 | assert _m != null : "'sourceDirectoryOptionArgName' message not found."; |
1405 | return _m; |
1406 | } |
1407 | |
1408 | /** |
1409 | * Gets the text of the {@code startingModuleProcessing} message. |
1410 | * <p><b>Templates</b><br/><table> |
1411 | * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} with module ''{1}'' ...</pre></td></tr> |
1412 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} mit Modul ''{1}'' aus ... </pre></td></tr> |
1413 | * </table></p> |
1414 | * @param locale The locale of the message to return. |
1415 | * @param toolName Format argument. |
1416 | * @param moduleName Format argument. |
1417 | * @return The text of the {@code startingModuleProcessing} message. |
1418 | * |
1419 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1420 | */ |
1421 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1422 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1423 | private String getStartingModuleProcessingMessage( final java.util.Locale locale, final java.lang.String toolName, final java.lang.String moduleName ) |
1424 | { |
1425 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "startingModuleProcessing", locale, toolName, moduleName ); |
1426 | assert _m != null : "'startingModuleProcessing' message not found."; |
1427 | return _m; |
1428 | } |
1429 | |
1430 | /** |
1431 | * Gets the text of the {@code startingProcessing} message. |
1432 | * <p><b>Templates</b><br/><table> |
1433 | * <tr><td valign="top">English:</td><td valign="top"><pre>Executing command {0} ...</pre></td></tr> |
1434 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Führt Befehl {0} aus ... </pre></td></tr> |
1435 | * </table></p> |
1436 | * @param locale The locale of the message to return. |
1437 | * @param toolName Format argument. |
1438 | * @return The text of the {@code startingProcessing} message. |
1439 | * |
1440 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1441 | */ |
1442 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1443 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1444 | private String getStartingProcessingMessage( final java.util.Locale locale, final java.lang.String toolName ) |
1445 | { |
1446 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "startingProcessing", locale, toolName ); |
1447 | assert _m != null : "'startingProcessing' message not found."; |
1448 | return _m; |
1449 | } |
1450 | |
1451 | /** |
1452 | * Gets the text of the {@code templateEncodingOption} message. |
1453 | * <p><b>Templates</b><br/><table> |
1454 | * <tr><td valign="top">English:</td><td valign="top"><pre>Template encoding.</pre></td></tr> |
1455 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Vorlagenkodierung.</pre></td></tr> |
1456 | * </table></p> |
1457 | * @param locale The locale of the message to return. |
1458 | * @return The text of the {@code templateEncodingOption} message. |
1459 | * |
1460 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1461 | */ |
1462 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1463 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1464 | private String getTemplateEncodingOptionMessage( final java.util.Locale locale ) |
1465 | { |
1466 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "templateEncodingOption", locale ); |
1467 | assert _m != null : "'templateEncodingOption' message not found."; |
1468 | return _m; |
1469 | } |
1470 | |
1471 | /** |
1472 | * Gets the text of the {@code templateEncodingOptionArgName} message. |
1473 | * <p><b>Templates</b><br/><table> |
1474 | * <tr><td valign="top">English:</td><td valign="top"><pre>encoding</pre></td></tr> |
1475 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>Kodierung</pre></td></tr> |
1476 | * </table></p> |
1477 | * @param locale The locale of the message to return. |
1478 | * @return The text of the {@code templateEncodingOptionArgName} message. |
1479 | * |
1480 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1481 | */ |
1482 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1483 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1484 | private String getTemplateEncodingOptionArgNameMessage( final java.util.Locale locale ) |
1485 | { |
1486 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "templateEncodingOptionArgName", locale ); |
1487 | assert _m != null : "'templateEncodingOptionArgName' message not found."; |
1488 | return _m; |
1489 | } |
1490 | |
1491 | /** |
1492 | * Gets the text of the {@code toolFailure} message. |
1493 | * <p><b>Templates</b><br/><table> |
1494 | * <tr><td valign="top">English:</td><td valign="top"><pre>{0} failure.</pre></td></tr> |
1495 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} fehlgeschlagen.</pre></td></tr> |
1496 | * </table></p> |
1497 | * @param locale The locale of the message to return. |
1498 | * @param toolName Format argument. |
1499 | * @return The text of the {@code toolFailure} message. |
1500 | * |
1501 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1502 | */ |
1503 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1504 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1505 | private String getToolFailureMessage( final java.util.Locale locale, final java.lang.String toolName ) |
1506 | { |
1507 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "toolFailure", locale, toolName ); |
1508 | assert _m != null : "'toolFailure' message not found."; |
1509 | return _m; |
1510 | } |
1511 | |
1512 | /** |
1513 | * Gets the text of the {@code toolSuccess} message. |
1514 | * <p><b>Templates</b><br/><table> |
1515 | * <tr><td valign="top">English:</td><td valign="top"><pre>{0} successful.</pre></td></tr> |
1516 | * <tr><td valign="top">Deutsch:</td><td valign="top"><pre>{0} erfolgreich.</pre></td></tr> |
1517 | * </table></p> |
1518 | * @param locale The locale of the message to return. |
1519 | * @param toolName Format argument. |
1520 | * @return The text of the {@code toolSuccess} message. |
1521 | * |
1522 | * @throws org.jomc.ObjectManagementException if getting the message instance fails. |
1523 | */ |
1524 | @javax.annotation.Generated( value = "org.jomc.tools.JavaSources", |
1525 | comments = "See http://jomc.sourceforge.net/jomc/1.0-alpha-14/jomc-tools" ) |
1526 | private String getToolSuccessMessage( final java.util.Locale locale, final java.lang.String toolName ) |
1527 | { |
1528 | final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "toolSuccess", locale, toolName ); |
1529 | assert _m != null : "'toolSuccess' message not found."; |
1530 | return _m; |
1531 | } |
1532 | // </editor-fold> |
1533 | // SECTION-END |
1534 | } |