Skip to content

Commit

Permalink
Fix missing Booter daemon script - esp. REPO_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
adamretter committed Apr 27, 2019
1 parent ddb9d18 commit 88a5633
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,24 @@ public void generate( DaemonGenerationRequest request )

Daemon booterDaemon = new Daemon();
booterDaemon.setId( daemon.getId() );
booterDaemon.setEnvironmentSetupFileName( daemon.getEnvironmentSetupFileName() );
booterDaemon.setLicenseHeaderFile( daemon.getLicenseHeaderFile() );
booterDaemon.setModelEncoding( daemon.getModelEncoding() );
booterDaemon.setName( daemon.getId() );
booterDaemon.setLongName( daemon.getId() );
// TODO: replace with org.codehaus.mojo.appassembler.booter.AppassemblerBooter.class.getName() and test - trygve
booterDaemon.setMainClass( "org.codehaus.mojo.appassembler.booter.AppassemblerBooter" );
booterDaemon.setShowConsoleWindow( daemon.isShowConsoleWindow() );

Classpath classpath = new Classpath();
booterDaemon.setClasspath( classpath );
booterDaemon.setConfigurationDirectory( daemon.getConfigurationDirectory() );
booterDaemon.setJvmSettings( jvmSettings );
booterDaemon.setEnvironmentSetupFileName( daemon.getEnvironmentSetupFileName() );
booterDaemon.setShowConsoleWindow( daemon.isShowConsoleWindow() );
booterDaemon.setRepositoryName( daemon.getRepositoryName() );
booterDaemon.setLicenseHeaderFile( daemon.getLicenseHeaderFile() );
booterDaemon.setEndorsedDir( daemon.getEndorsedDir() );
booterDaemon.setModelEncoding( daemon.getModelEncoding() );

MavenProject project = request.getMavenProject();

Classpath classpath = new Classpath();
booterDaemon.setClasspath( classpath );

classpath.addDirectory( createDirectory( "etc" ) );
classpath.addDependency( DependencyFactory.create( project,
"org.codehaus.mojo.appassembler:appassembler-booter",
Expand Down

0 comments on commit 88a5633

Please sign in to comment.