1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36 package org.jomc.cli.commands;
37
38 import java.io.BufferedReader;
39 import java.io.Closeable;
40 import java.io.File;
41 import java.io.FileOutputStream;
42 import java.io.FileReader;
43 import java.io.IOException;
44 import java.io.InputStream;
45 import java.io.OutputStream;
46 import java.io.StringWriter;
47 import java.lang.reflect.InvocationTargetException;
48 import java.net.URI;
49 import java.net.URL;
50 import java.net.URLClassLoader;
51 import java.util.ArrayList;
52 import java.util.Arrays;
53 import java.util.Enumeration;
54 import java.util.HashSet;
55 import java.util.Iterator;
56 import java.util.List;
57 import java.util.Map;
58 import java.util.Set;
59 import java.util.logging.Level;
60 import javax.xml.bind.JAXBElement;
61 import javax.xml.bind.JAXBException;
62 import javax.xml.bind.Marshaller;
63 import javax.xml.bind.PropertyException;
64 import javax.xml.transform.ErrorListener;
65 import javax.xml.transform.Source;
66 import javax.xml.transform.Transformer;
67 import javax.xml.transform.TransformerConfigurationException;
68 import javax.xml.transform.TransformerException;
69 import javax.xml.transform.TransformerFactory;
70 import org.apache.commons.cli.CommandLine;
71 import org.apache.commons.io.IOUtils;
72 import org.jomc.model.ModelObject;
73 import org.jomc.modlet.DefaultModelContext;
74 import org.jomc.modlet.DefaultModletProvider;
75 import org.jomc.modlet.ModelContext;
76 import org.jomc.modlet.ModelContextFactory;
77 import org.jomc.modlet.ModelException;
78 import org.jomc.modlet.ModelValidationReport;
79 import org.jomc.modlet.Modlet;
80 import org.jomc.modlet.ModletObject;
81 import org.jomc.modlet.ModletProvider;
82 import org.jomc.modlet.Modlets;
83 import org.jomc.modlet.ObjectFactory;
84 import org.jomc.modlet.Schema;
85 import org.jomc.modlet.Schemas;
86 import org.jomc.modlet.Service;
87 import org.jomc.modlet.Services;
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
112
113
114 public abstract class AbstractModletCommand extends AbstractCommand
115 {
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130 protected Transformer createTransformer( final Source source ) throws CommandExecutionException
131 {
132 if ( source == null )
133 {
134 throw new NullPointerException( "source" );
135 }
136
137 final ErrorListener errorListener = new ErrorListener()
138 {
139
140 public void warning( final TransformerException exception ) throws TransformerException
141 {
142 log( Level.WARNING, null, exception );
143 }
144
145 public void error( final TransformerException exception ) throws TransformerException
146 {
147 throw exception;
148 }
149
150 public void fatalError( final TransformerException exception ) throws TransformerException
151 {
152 throw exception;
153 }
154
155 };
156
157 try
158 {
159 final TransformerFactory transformerFactory = TransformerFactory.newInstance();
160 transformerFactory.setErrorListener( errorListener );
161 final Transformer transformer = transformerFactory.newTransformer( source );
162 transformer.setErrorListener( errorListener );
163
164 for ( Map.Entry<Object, Object> e : System.getProperties().entrySet() )
165 {
166 transformer.setParameter( e.getKey().toString(), e.getValue() );
167 }
168
169 return transformer;
170 }
171 catch ( final TransformerConfigurationException e )
172 {
173 throw new CommandExecutionException( getExceptionMessage( e ), e );
174 }
175 }
176
177
178
179
180
181
182
183
184
185
186
187
188 protected ModelContext createModelContext( final CommandLine commandLine, final ClassLoader classLoader )
189 throws CommandExecutionException
190 {
191 if ( commandLine == null )
192 {
193 throw new NullPointerException( "commandLine" );
194 }
195
196 final ModelContextFactory modelContextFactory;
197 if ( commandLine.hasOption( this.getModelContextFactoryOption().getOpt() ) )
198 {
199 modelContextFactory = ModelContextFactory.newInstance( commandLine.getOptionValue(
200 this.getModelContextFactoryOption().getOpt() ) );
201
202 }
203 else
204 {
205 modelContextFactory = ModelContextFactory.newInstance();
206 }
207
208 final ModelContext modelContext = modelContextFactory.newModelContext( classLoader );
209
210 if ( commandLine.hasOption( this.getModletSchemaSystemIdOption().getOpt() ) )
211 {
212 modelContext.setModletSchemaSystemId(
213 commandLine.getOptionValue( this.getModletSchemaSystemIdOption().getOpt() ) );
214
215 }
216
217 modelContext.setLogLevel( this.getLogLevel() );
218 modelContext.getListeners().add( new ModelContext.Listener()
219 {
220
221 @Override
222 public void onLog( final Level level, final String message, final Throwable t )
223 {
224 super.onLog( level, message, t );
225 log( level, message, t );
226 }
227
228 } );
229
230 if ( commandLine.hasOption( this.getProviderLocationOption().getOpt() ) )
231 {
232 modelContext.setAttribute( DefaultModelContext.PROVIDER_LOCATION_ATTRIBUTE_NAME,
233 commandLine.getOptionValue( this.getProviderLocationOption().getOpt() ) );
234
235 }
236
237 if ( commandLine.hasOption( this.getPlatformProviderLocationOption().getOpt() ) )
238 {
239 modelContext.setAttribute(
240 DefaultModelContext.PLATFORM_PROVIDER_LOCATION_ATTRIBUTE_NAME,
241 commandLine.getOptionValue( this.getPlatformProviderLocationOption().getOpt() ) );
242
243 }
244
245 if ( commandLine.hasOption( this.getModletLocationOption().getOpt() ) )
246 {
247 modelContext.setAttribute( DefaultModletProvider.MODLET_LOCATION_ATTRIBUTE_NAME,
248 commandLine.getOptionValue( this.getModletLocationOption().getOpt() ) );
249
250 }
251
252 modelContext.setAttribute( DefaultModletProvider.VALIDATING_ATTRIBUTE_NAME,
253 !commandLine.hasOption( this.getNoModletResourceValidation().getOpt() ) );
254
255 return modelContext;
256 }
257
258
259
260
261
262
263
264
265
266
267 protected String getModel( final CommandLine commandLine )
268 {
269 if ( commandLine == null )
270 {
271 throw new NullPointerException( "commandLine" );
272 }
273
274 return commandLine.hasOption( this.getModelOption().getOpt() )
275 ? commandLine.getOptionValue( this.getModelOption().getOpt() )
276 : ModelObject.MODEL_PUBLIC_ID;
277
278 }
279
280
281
282
283
284
285
286
287
288 protected void log( final ModelValidationReport validationReport, final Marshaller marshaller )
289 throws CommandExecutionException
290 {
291 Object jaxbFormattedOutput = null;
292 try
293 {
294 jaxbFormattedOutput = marshaller.getProperty( Marshaller.JAXB_FORMATTED_OUTPUT );
295 marshaller.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.TRUE );
296 }
297 catch ( final PropertyException e )
298 {
299 this.log( Level.INFO, null, e );
300 jaxbFormattedOutput = null;
301 }
302
303 try
304 {
305
306 for ( ModelValidationReport.Detail d : validationReport.getDetails() )
307 {
308 if ( this.isLoggable( d.getLevel() ) )
309 {
310 this.log( d.getLevel(), "o " + d.getMessage(), null );
311
312 if ( d.getElement() != null && this.getLogLevel().intValue() < Level.INFO.intValue() )
313 {
314 final StringWriter stringWriter = new StringWriter();
315 marshaller.marshal( d.getElement(), stringWriter );
316 this.log( d.getLevel(), stringWriter.toString(), null );
317 }
318 }
319 }
320 }
321 catch ( final JAXBException e )
322 {
323 String message = getExceptionMessage( e );
324 if ( message == null )
325 {
326 message = getExceptionMessage( e.getLinkedException() );
327 }
328
329 throw new CommandExecutionException( message, e );
330 }
331 finally
332 {
333 try
334 {
335 marshaller.setProperty( Marshaller.JAXB_FORMATTED_OUTPUT, jaxbFormattedOutput );
336 }
337 catch ( final PropertyException e )
338 {
339 this.log( Level.INFO, null, e );
340 }
341 }
342 }
343
344
345
346
347
348
349
350
351
352
353 protected Set<File> getDocumentFiles( final CommandLine commandLine ) throws CommandExecutionException
354 {
355 try
356 {
357 final Set<File> files = new HashSet<File>();
358
359 if ( commandLine.hasOption( this.getDocumentsOption().getOpt() ) )
360 {
361 final String[] elements = commandLine.getOptionValues( this.getDocumentsOption().getOpt() );
362 if ( elements != null )
363 {
364 for ( String e : elements )
365 {
366 if ( e.startsWith( "@" ) )
367 {
368 String line = null;
369 final File file = new File( e.substring( 1 ) );
370 BufferedReader reader = null;
371 boolean suppressExceptionOnClose = true;
372
373 try
374 {
375 reader = new BufferedReader( new FileReader( file ) );
376 while ( ( line = reader.readLine() ) != null )
377 {
378 line = line.trim();
379 if ( !line.startsWith( "#" ) )
380 {
381 final File f = new File( line );
382
383 if ( f.exists() )
384 {
385 if ( this.isLoggable( Level.FINER ) )
386 {
387 this.log( Level.FINER, this.getDocumentFileInfo(
388 this.getLocale(), f.getAbsolutePath() ), null );
389
390 }
391
392 files.add( f );
393 }
394 else if ( this.isLoggable( Level.WARNING ) )
395 {
396 this.log( Level.WARNING, this.getDocumentFileNotFoundWarning(
397 this.getLocale(), f.getAbsolutePath() ), null );
398
399 }
400 }
401 }
402
403 suppressExceptionOnClose = false;
404 }
405 finally
406 {
407 try
408 {
409 if ( reader != null )
410 {
411 reader.close();
412 }
413 }
414 catch ( final IOException ex )
415 {
416 if ( suppressExceptionOnClose )
417 {
418 this.log( Level.SEVERE, getExceptionMessage( ex ), ex );
419 }
420 else
421 {
422 throw new CommandExecutionException( getExceptionMessage( ex ), ex );
423 }
424 }
425 }
426 }
427 else
428 {
429 final File file = new File( e );
430
431 if ( file.exists() )
432 {
433 if ( this.isLoggable( Level.FINER ) )
434 {
435 this.log( Level.FINER, this.getDocumentFileInfo(
436 this.getLocale(), file.getAbsolutePath() ), null );
437
438 }
439
440 files.add( file );
441 }
442 else if ( this.isLoggable( Level.WARNING ) )
443 {
444 this.log( Level.WARNING, this.getDocumentFileNotFoundWarning(
445 this.getLocale(), file.getAbsolutePath() ), null );
446
447 }
448 }
449 }
450 }
451 }
452
453 return files;
454 }
455 catch ( final IOException e )
456 {
457 throw new CommandExecutionException( getExceptionMessage( e ), e );
458 }
459 }
460
461
462
463
464
465
466
467 public class CommandLineClassLoader extends URLClassLoader
468 {
469
470
471 private Modlets excludedModlets;
472
473
474 private final Set<String> providerResourceLocations = new HashSet<String>();
475
476
477 private final Set<String> modletResourceLocations = new HashSet<String>();
478
479
480 private final Set<File> temporaryResources = new HashSet<File>();
481
482
483
484
485
486
487
488
489
490 public CommandLineClassLoader( final CommandLine commandLine ) throws CommandExecutionException
491 {
492 super( new URL[ 0 ] );
493
494 try
495 {
496 if ( commandLine.hasOption( getClasspathOption().getOpt() ) )
497 {
498 final Set<URI> uris = new HashSet<URI>();
499 final String[] elements = commandLine.getOptionValues( getClasspathOption().getOpt() );
500
501 if ( elements != null )
502 {
503 for ( String e : elements )
504 {
505 if ( e.startsWith( "@" ) )
506 {
507 String line = null;
508 final File file = new File( e.substring( 1 ) );
509 BufferedReader reader = null;
510 boolean suppressExceptionOnClose = true;
511
512 try
513 {
514 reader = new BufferedReader( new FileReader( file ) );
515 while ( ( line = reader.readLine() ) != null )
516 {
517 line = line.trim();
518 if ( !line.startsWith( "#" ) )
519 {
520 final File f = new File( line );
521
522 if ( f.exists() )
523 {
524 uris.add( f.toURI() );
525 }
526 else if ( isLoggable( Level.WARNING ) )
527 {
528 log( Level.WARNING, getClasspathElementNotFoundWarning(
529 getLocale(), f.getAbsolutePath() ), null );
530
531 }
532 }
533 }
534
535 suppressExceptionOnClose = false;
536 }
537 finally
538 {
539 try
540 {
541 if ( reader != null )
542 {
543 reader.close();
544 }
545 }
546 catch ( final IOException ex )
547 {
548 if ( suppressExceptionOnClose )
549 {
550 log( Level.SEVERE, getExceptionMessage( ex ), ex );
551 }
552 else
553 {
554 throw new CommandExecutionException( getExceptionMessage( ex ), ex );
555 }
556 }
557 }
558 }
559 else
560 {
561 final File file = new File( e );
562
563 if ( file.exists() )
564 {
565 uris.add( file.toURI() );
566 }
567 else if ( isLoggable( Level.WARNING ) )
568 {
569 log( Level.WARNING, getClasspathElementNotFoundWarning(
570 getLocale(), file.getAbsolutePath() ), null );
571
572 }
573 }
574 }
575 }
576
577 for ( URI uri : uris )
578 {
579 if ( isLoggable( Level.FINEST ) )
580 {
581 log( Level.FINEST, getClasspathElementInfo( getLocale(), uri.toASCIIString() ), null );
582 }
583
584 this.addURL( uri.toURL() );
585 }
586
587 if ( commandLine.hasOption( getProviderLocationOption().getOpt() ) )
588 {
589 this.providerResourceLocations.add(
590 commandLine.getOptionValue( getProviderLocationOption().getOpt() )
591 + "/" + ModletProvider.class.getName() );
592
593 }
594 else
595 {
596 this.providerResourceLocations.add(
597 DefaultModelContext.getDefaultProviderLocation() + "/" + ModletProvider.class.getName() );
598
599 }
600
601 if ( commandLine.hasOption( getModletLocationOption().getOpt() ) )
602 {
603 this.modletResourceLocations.add(
604 commandLine.getOptionValue( getModletLocationOption().getOpt() ) );
605
606 }
607 else
608 {
609 this.modletResourceLocations.add( DefaultModletProvider.getDefaultModletLocation() );
610 }
611 }
612 }
613 catch ( final IOException e )
614 {
615 throw new CommandExecutionException( getExceptionMessage( e ), e );
616 }
617 }
618
619
620
621
622
623
624 public Modlets getExcludedModlets()
625 {
626 if ( this.excludedModlets == null )
627 {
628 this.excludedModlets = new Modlets();
629 }
630
631 return this.excludedModlets;
632 }
633
634
635
636
637
638
639
640
641 @Override
642 public URL findResource( final String name )
643 {
644 try
645 {
646 URL resource = super.findResource( name );
647
648 if ( resource != null )
649 {
650 if ( this.providerResourceLocations.contains( name ) )
651 {
652 resource = this.filterProviders( resource );
653 }
654 else if ( this.modletResourceLocations.contains( name ) )
655 {
656 resource = this.filterModlets( resource );
657 }
658 }
659
660 return resource;
661 }
662 catch ( final IOException e )
663 {
664 log( Level.SEVERE, null, e );
665 return null;
666 }
667 catch ( final JAXBException e )
668 {
669 log( Level.SEVERE, null, e );
670 return null;
671 }
672 catch ( final ModelException e )
673 {
674 log( Level.SEVERE, null, e );
675 return null;
676 }
677 }
678
679
680
681
682
683
684
685
686
687
688
689 @Override
690 public Enumeration<URL> findResources( final String name ) throws IOException
691 {
692 final Enumeration<URL> allResources = super.findResources( name );
693
694 Enumeration<URL> enumeration = allResources;
695
696 if ( this.providerResourceLocations.contains( name ) )
697 {
698 enumeration = new Enumeration<URL>()
699 {
700
701 public boolean hasMoreElements()
702 {
703 return allResources.hasMoreElements();
704 }
705
706 public URL nextElement()
707 {
708 try
709 {
710 return filterProviders( allResources.nextElement() );
711 }
712 catch ( final IOException e )
713 {
714 log( Level.SEVERE, null, e );
715 return null;
716 }
717 }
718
719 };
720 }
721 else if ( this.modletResourceLocations.contains( name ) )
722 {
723 enumeration = new Enumeration<URL>()
724 {
725
726 public boolean hasMoreElements()
727 {
728 return allResources.hasMoreElements();
729 }
730
731 public URL nextElement()
732 {
733 try
734 {
735 return filterModlets( allResources.nextElement() );
736 }
737 catch ( final IOException e )
738 {
739 log( Level.SEVERE, null, e );
740 return null;
741 }
742 catch ( final JAXBException e )
743 {
744 log( Level.SEVERE, null, e );
745 return null;
746 }
747 catch ( final ModelException e )
748 {
749 log( Level.SEVERE, null, e );
750 return null;
751 }
752 }
753
754 };
755 }
756
757 return enumeration;
758 }
759
760
761
762
763
764 public void close() throws IOException
765 {
766 for ( final Iterator<File> it = this.temporaryResources.iterator(); it.hasNext(); )
767 {
768 final File temporaryResource = it.next();
769
770 if ( temporaryResource.exists() && temporaryResource.delete() )
771 {
772 it.remove();
773 }
774 }
775
776 if ( Closeable.class.isAssignableFrom( CommandLineClassLoader.class ) )
777 {
778 this.jdk7Close();
779 }
780 }
781
782
783
784
785
786 @Override
787 protected void finalize() throws Throwable
788 {
789 for ( final Iterator<File> it = this.temporaryResources.iterator(); it.hasNext(); )
790 {
791 final File temporaryResource = it.next();
792
793 if ( temporaryResource.exists() && !temporaryResource.delete() )
794 {
795 temporaryResource.deleteOnExit();
796 }
797
798 it.remove();
799 }
800
801 super.finalize();
802 }
803
804 private URL filterProviders( final URL resource ) throws IOException
805 {
806 InputStream in = null;
807 boolean suppressExceptionOnClose = true;
808
809 try
810 {
811 in = resource.openStream();
812 URL filteredResource = resource;
813 final List<String> lines = IOUtils.readLines( in, "UTF-8" );
814 final List<String> providerExcludes = Arrays.asList( getProviderExcludes().split( ":" ) );
815 final List<String> filteredLines = new ArrayList<String>( lines.size() );
816
817 for ( String line : lines )
818 {
819 if ( !providerExcludes.contains( line.trim() ) )
820 {
821 filteredLines.add( line.trim() );
822 }
823 else
824 {
825 log( Level.FINE,
826 getExcludedProviderInfo( getLocale(), resource.toExternalForm(), line.toString() ), null );
827
828 }
829 }
830
831 if ( lines.size() != filteredLines.size() )
832 {
833 OutputStream out = null;
834 final File tmpResource = File.createTempFile( this.getClass().getName(), ".rsrc" );
835 this.temporaryResources.add( tmpResource );
836
837 try
838 {
839 out = new FileOutputStream( tmpResource );
840 IOUtils.writeLines( filteredLines, System.getProperty( "line.separator", "\n" ), out, "UTF-8" );
841 suppressExceptionOnClose = false;
842 }
843 finally
844 {
845 try
846 {
847 if ( out != null )
848 {
849 out.close();
850 }
851
852 suppressExceptionOnClose = true;
853 }
854 catch ( final IOException e )
855 {
856 if ( suppressExceptionOnClose )
857 {
858 log( Level.SEVERE, getExceptionMessage( e ), e );
859 }
860 else
861 {
862 throw e;
863 }
864 }
865 }
866
867 filteredResource = tmpResource.toURI().toURL();
868 }
869
870 suppressExceptionOnClose = false;
871 return filteredResource;
872 }
873 finally
874 {
875 try
876 {
877 if ( in != null )
878 {
879 in.close();
880 }
881 }
882 catch ( final IOException e )
883 {
884 if ( suppressExceptionOnClose )
885 {
886 log( Level.SEVERE, getExceptionMessage( e ), e );
887 }
888 else
889 {
890 throw e;
891 }
892 }
893 }
894 }
895
896 private URL filterModlets( final URL resource ) throws ModelException, IOException, JAXBException
897 {
898 URL filteredResource = resource;
899 final List<String> excludedModletNames = Arrays.asList( getModletExcludes().split( ":" ) );
900 final ModelContext modelContext = ModelContextFactory.newInstance().newModelContext();
901 Object o = modelContext.createUnmarshaller( ModletObject.MODEL_PUBLIC_ID ).unmarshal( resource );
902 if ( o instanceof JAXBElement<?> )
903 {
904 o = ( (JAXBElement<?>) o ).getValue();
905 }
906
907 Modlets modlets = null;
908 boolean filtered = false;
909
910 if ( o instanceof Modlets )
911 {
912 modlets = (Modlets) o;
913 }
914 else if ( o instanceof Modlet )
915 {
916 modlets = new Modlets();
917 modlets.getModlet().add( (Modlet) o );
918 }
919
920 if ( modlets != null )
921 {
922 for ( final Iterator<Modlet> it = modlets.getModlet().iterator(); it.hasNext(); )
923 {
924 final Modlet m = it.next();
925
926 if ( excludedModletNames.contains( m.getName() ) )
927 {
928 it.remove();
929 filtered = true;
930 this.getExcludedModlets().getModlet().add( m );
931 log( Level.FINE,
932 getExcludedModletInfo( getLocale(), resource.toExternalForm(), m.getName() ), null );
933
934 continue;
935 }
936
937 if ( this.filterModlet( m, resource.toExternalForm() ) )
938 {
939 filtered = true;
940 }
941 }
942
943 if ( filtered )
944 {
945 final File tmpResource = File.createTempFile( this.getClass().getName(), ".rsrc" );
946 this.temporaryResources.add( tmpResource );
947 modelContext.createMarshaller( ModletObject.MODEL_PUBLIC_ID ).marshal(
948 new ObjectFactory().createModlets( modlets ), tmpResource );
949
950 filteredResource = tmpResource.toURI().toURL();
951 }
952 }
953
954 return filteredResource;
955 }
956
957 private boolean filterModlet( final Modlet modlet, final String resourceInfo )
958 {
959 boolean filteredSchemas = false;
960 boolean filteredServices = false;
961 final List<String> excludedSchemas = Arrays.asList( getSchemaExcludes().split( ":" ) );
962 final List<String> excludedServices = Arrays.asList( getServiceExcludes().split( ":" ) );
963
964 if ( modlet.getSchemas() != null )
965 {
966 final Schemas schemas = new Schemas();
967
968 for ( Schema s : modlet.getSchemas().getSchema() )
969 {
970 if ( !excludedSchemas.contains( s.getContextId() ) )
971 {
972 schemas.getSchema().add( s );
973 }
974 else
975 {
976 log( Level.FINE, getExcludedSchemaInfo( getLocale(), resourceInfo, s.getContextId() ), null );
977 filteredSchemas = true;
978 }
979 }
980
981 if ( filteredSchemas )
982 {
983 modlet.setSchemas( schemas );
984 }
985 }
986
987 if ( modlet.getServices() != null )
988 {
989 final Services services = new Services();
990
991 for ( Service s : modlet.getServices().getService() )
992 {
993 if ( !excludedServices.contains( s.getClazz() ) )
994 {
995 services.getService().add( s );
996 }
997 else
998 {
999 log( Level.FINE, getExcludedServiceInfo( getLocale(), resourceInfo, s.getClazz() ), null );
1000 filteredServices = true;
1001 }
1002 }
1003
1004 if ( filteredServices )
1005 {
1006 modlet.setServices( services );
1007 }
1008 }
1009
1010 return filteredSchemas || filteredServices;
1011 }
1012
1013 private void jdk7Close()
1014 {
1015 try
1016 {
1017 URLClassLoader.class.getMethod( "close" ).invoke( this );
1018 }
1019 catch ( final NoSuchMethodException e )
1020 {
1021 log( Level.FINEST, null, e );
1022 }
1023 catch ( final IllegalAccessException e )
1024 {
1025 log( Level.FINEST, null, e );
1026 }
1027 catch ( final InvocationTargetException e )
1028 {
1029 log( Level.FINEST, null, e );
1030 }
1031 }
1032
1033 }
1034
1035
1036
1037
1038
1039 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1040 public AbstractModletCommand()
1041 {
1042
1043 super();
1044
1045 }
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1063 private org.apache.commons.cli.Option getClasspathOption()
1064 {
1065 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ClasspathOption" );
1066 assert _d != null : "'ClasspathOption' dependency not found.";
1067 return _d;
1068 }
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1082 private org.apache.commons.cli.Option getDocumentsOption()
1083 {
1084 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "DocumentsOption" );
1085 assert _d != null : "'DocumentsOption' dependency not found.";
1086 return _d;
1087 }
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1101 private java.util.Locale getLocale()
1102 {
1103 final java.util.Locale _d = (java.util.Locale) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "Locale" );
1104 assert _d != null : "'Locale' dependency not found.";
1105 return _d;
1106 }
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1120 private org.apache.commons.cli.Option getModelContextFactoryOption()
1121 {
1122 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModelContextFactoryOption" );
1123 assert _d != null : "'ModelContextFactoryOption' dependency not found.";
1124 return _d;
1125 }
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1139 private org.apache.commons.cli.Option getModelOption()
1140 {
1141 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModelOption" );
1142 assert _d != null : "'ModelOption' dependency not found.";
1143 return _d;
1144 }
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1158 private org.apache.commons.cli.Option getModletLocationOption()
1159 {
1160 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModletLocationOption" );
1161 assert _d != null : "'ModletLocationOption' dependency not found.";
1162 return _d;
1163 }
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1177 private org.apache.commons.cli.Option getModletSchemaSystemIdOption()
1178 {
1179 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ModletSchemaSystemIdOption" );
1180 assert _d != null : "'ModletSchemaSystemIdOption' dependency not found.";
1181 return _d;
1182 }
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1196 private org.apache.commons.cli.Option getNoModletResourceValidation()
1197 {
1198 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "NoModletResourceValidation" );
1199 assert _d != null : "'NoModletResourceValidation' dependency not found.";
1200 return _d;
1201 }
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1215 private org.apache.commons.cli.Option getPlatformProviderLocationOption()
1216 {
1217 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "PlatformProviderLocationOption" );
1218 assert _d != null : "'PlatformProviderLocationOption' dependency not found.";
1219 return _d;
1220 }
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1234 private org.apache.commons.cli.Option getProviderLocationOption()
1235 {
1236 final org.apache.commons.cli.Option _d = (org.apache.commons.cli.Option) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getDependency( this, "ProviderLocationOption" );
1237 assert _d != null : "'ProviderLocationOption' dependency not found.";
1238 return _d;
1239 }
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1253 private java.lang.String getAbbreviatedCommandName()
1254 {
1255 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "abbreviatedCommandName" );
1256 assert _p != null : "'abbreviatedCommandName' property not found.";
1257 return _p;
1258 }
1259
1260
1261
1262
1263
1264
1265
1266
1267 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1268 private java.lang.String getApplicationModlet()
1269 {
1270 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "applicationModlet" );
1271 assert _p != null : "'applicationModlet' property not found.";
1272 return _p;
1273 }
1274
1275
1276
1277
1278
1279
1280
1281
1282 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1283 private java.lang.String getCommandName()
1284 {
1285 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "commandName" );
1286 assert _p != null : "'commandName' property not found.";
1287 return _p;
1288 }
1289
1290
1291
1292
1293
1294
1295
1296
1297 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1298 private java.lang.String getModletExcludes()
1299 {
1300 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "modletExcludes" );
1301 assert _p != null : "'modletExcludes' property not found.";
1302 return _p;
1303 }
1304
1305
1306
1307
1308
1309
1310
1311
1312 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1313 private java.lang.String getProviderExcludes()
1314 {
1315 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "providerExcludes" );
1316 assert _p != null : "'providerExcludes' property not found.";
1317 return _p;
1318 }
1319
1320
1321
1322
1323
1324
1325
1326
1327 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1328 private java.lang.String getSchemaExcludes()
1329 {
1330 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "schemaExcludes" );
1331 assert _p != null : "'schemaExcludes' property not found.";
1332 return _p;
1333 }
1334
1335
1336
1337
1338
1339
1340
1341
1342 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1343 private java.lang.String getServiceExcludes()
1344 {
1345 final java.lang.String _p = (java.lang.String) org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getProperty( this, "serviceExcludes" );
1346 assert _p != null : "'serviceExcludes' property not found.";
1347 return _p;
1348 }
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1365 private String getApplicationTitle( final java.util.Locale locale )
1366 {
1367 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "applicationTitle", locale );
1368 assert _m != null : "'applicationTitle' message not found.";
1369 return _m;
1370 }
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1386 private String getCannotProcessMessage( final java.util.Locale locale, final java.lang.String itemInfo, final java.lang.String detailMessage )
1387 {
1388 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "cannotProcessMessage", locale, itemInfo, detailMessage );
1389 assert _m != null : "'cannotProcessMessage' message not found.";
1390 return _m;
1391 }
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1406 private String getClasspathElementInfo( final java.util.Locale locale, final java.lang.String classpathElement )
1407 {
1408 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElementInfo", locale, classpathElement );
1409 assert _m != null : "'classpathElementInfo' message not found.";
1410 return _m;
1411 }
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1426 private String getClasspathElementNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
1427 {
1428 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "classpathElementNotFoundWarning", locale, fileName );
1429 assert _m != null : "'classpathElementNotFoundWarning' message not found.";
1430 return _m;
1431 }
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1446 private String getCommandFailureMessage( final java.util.Locale locale, final java.lang.String toolName )
1447 {
1448 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandFailureMessage", locale, toolName );
1449 assert _m != null : "'commandFailureMessage' message not found.";
1450 return _m;
1451 }
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1466 private String getCommandInfoMessage( final java.util.Locale locale, final java.lang.String toolName )
1467 {
1468 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandInfoMessage", locale, toolName );
1469 assert _m != null : "'commandInfoMessage' message not found.";
1470 return _m;
1471 }
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1486 private String getCommandSuccessMessage( final java.util.Locale locale, final java.lang.String toolName )
1487 {
1488 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "commandSuccessMessage", locale, toolName );
1489 assert _m != null : "'commandSuccessMessage' message not found.";
1490 return _m;
1491 }
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1506 private String getDefaultLogLevelInfo( final java.util.Locale locale, final java.lang.String defaultLogLevel )
1507 {
1508 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "defaultLogLevelInfo", locale, defaultLogLevel );
1509 assert _m != null : "'defaultLogLevelInfo' message not found.";
1510 return _m;
1511 }
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1526 private String getDocumentFileInfo( final java.util.Locale locale, final java.lang.String documentFile )
1527 {
1528 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFileInfo", locale, documentFile );
1529 assert _m != null : "'documentFileInfo' message not found.";
1530 return _m;
1531 }
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1546 private String getDocumentFileNotFoundWarning( final java.util.Locale locale, final java.lang.String fileName )
1547 {
1548 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "documentFileNotFoundWarning", locale, fileName );
1549 assert _m != null : "'documentFileNotFoundWarning' message not found.";
1550 return _m;
1551 }
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1567 private String getExcludedModletInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String modletIdentifier )
1568 {
1569 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedModletInfo", locale, resourceName, modletIdentifier );
1570 assert _m != null : "'excludedModletInfo' message not found.";
1571 return _m;
1572 }
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1588 private String getExcludedProviderInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String providerName )
1589 {
1590 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedProviderInfo", locale, resourceName, providerName );
1591 assert _m != null : "'excludedProviderInfo' message not found.";
1592 return _m;
1593 }
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1609 private String getExcludedSchemaInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String contextId )
1610 {
1611 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedSchemaInfo", locale, resourceName, contextId );
1612 assert _m != null : "'excludedSchemaInfo' message not found.";
1613 return _m;
1614 }
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1630 private String getExcludedServiceInfo( final java.util.Locale locale, final java.lang.String resourceName, final java.lang.String serviceName )
1631 {
1632 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "excludedServiceInfo", locale, resourceName, serviceName );
1633 assert _m != null : "'excludedServiceInfo' message not found.";
1634 return _m;
1635 }
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1650 private String getInvalidModelMessage( final java.util.Locale locale, final java.lang.String modelIdentifier )
1651 {
1652 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "invalidModelMessage", locale, modelIdentifier );
1653 assert _m != null : "'invalidModelMessage' message not found.";
1654 return _m;
1655 }
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1668 private String getLongDescriptionMessage( final java.util.Locale locale )
1669 {
1670 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "longDescriptionMessage", locale );
1671 assert _m != null : "'longDescriptionMessage' message not found.";
1672 return _m;
1673 }
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1688 private String getReadingMessage( final java.util.Locale locale, final java.lang.String locationInfo )
1689 {
1690 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "readingMessage", locale, locationInfo );
1691 assert _m != null : "'readingMessage' message not found.";
1692 return _m;
1693 }
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1706 private String getSeparator( final java.util.Locale locale )
1707 {
1708 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "separator", locale );
1709 assert _m != null : "'separator' message not found.";
1710 return _m;
1711 }
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1724 private String getShortDescriptionMessage( final java.util.Locale locale )
1725 {
1726 final String _m = org.jomc.ObjectManagerFactory.getObjectManager( this.getClass().getClassLoader() ).getMessage( this, "shortDescriptionMessage", locale );
1727 assert _m != null : "'shortDescriptionMessage' message not found.";
1728 return _m;
1729 }
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782 @javax.annotation.Generated( value = "org.jomc.tools.SourceFileProcessor 1.2.2", comments = "See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2" )
1783 @Override
1784 public org.apache.commons.cli.Options getOptions()
1785 {
1786 final org.apache.commons.cli.Options options = new org.apache.commons.cli.Options();
1787 options.addOption( this.getClasspathOption() );
1788 options.addOption( this.getDocumentsOption() );
1789 options.addOption( this.getModelContextFactoryOption() );
1790 options.addOption( this.getModelOption() );
1791 options.addOption( this.getModletLocationOption() );
1792 options.addOption( this.getModletSchemaSystemIdOption() );
1793 options.addOption( this.getNoModletResourceValidation() );
1794 options.addOption( this.getPlatformProviderLocationOption() );
1795 options.addOption( this.getProviderLocationOption() );
1796 return options;
1797 }
1798
1799
1800 }