@Test public void testSimpleEjbModule() { final List<EarModule> modules = new ArrayList<EarModule>(); final EarModule module = new EjbModule( createArtifact( "foo", "ejb" ) ); setUri( module, "foo-1.0.jar" ); modules.add( module ); final EarMavenArchiver archiver = new EarMavenArchiver( modules ); assertEquals( "foo-1.0.jar", archiver.generateClassPathEntry( "" ) ); }
protected String generateClassPathEntry( String classPathPrefix ) { final StringBuilder classpath = new StringBuilder(); for ( final EarModule earModule : earModules ) { if ( !earModule.isExcluded() ) { classpath.append( classPathPrefix ).append( earModule.getUri() ).append( " " ); } } return classpath.toString().trim(); }
EarMavenArchiver extends MavenArchiver { protected String generateClassPathEntry( String classPathPrefix ) { final StringBuilder classpath = new StringBuilder(); for ( final EarModule earModule : earModules ) { if ( !earModule.isExcluded() ) { classpath.append( classPathPrefix ).append( earModule.getUri() ).append( " " ); } } return classpath.toString().trim(); } }
EarMavenArchiver extends MavenArchiver { protected String generateClassPathEntry( String classPathPrefix ) { final StringBuilder classpath = new StringBuilder(); for ( final EarModule earModule : earModules ) { if ( !earModule.isExcluded() ) { classpath.append( classPathPrefix ).append( earModule.getUri() ).append( " " ); } } return classpath.toString().trim(); } EarMavenArchiver( List<EarModule> earModules ); }
EarMavenArchiver extends MavenArchiver { protected String generateClassPathEntry( String classPathPrefix ) { final StringBuilder classpath = new StringBuilder(); for ( final EarModule earModule : earModules ) { if ( !earModule.isExcluded() ) { classpath.append( classPathPrefix ).append( earModule.getUri() ).append( " " ); } } return classpath.toString().trim(); } EarMavenArchiver( List<EarModule> earModules ); Manifest getManifest( MavenProject project, MavenArchiveConfiguration config ); Manifest getManifest( MavenSession session, MavenProject project, MavenArchiveConfiguration config ); }
EarMavenArchiver extends MavenArchiver { protected String generateClassPathEntry( String classPathPrefix ) { final StringBuilder classpath = new StringBuilder(); for ( final EarModule earModule : earModules ) { if ( !earModule.isExcluded() ) { classpath.append( classPathPrefix ).append( earModule.getUri() ).append( " " ); } } return classpath.toString().trim(); } EarMavenArchiver( List<EarModule> earModules ); Manifest getManifest( MavenProject project, MavenArchiveConfiguration config ); Manifest getManifest( MavenSession session, MavenProject project, MavenArchiveConfiguration config ); static final String CLASS_PATH_KEY; }