Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
o setup optional 'enter-license' resource
Browse files Browse the repository at this point in the history
  • Loading branch information
nabcos authored and peterlynch committed May 14, 2012
1 parent e2b05f7 commit 4500585
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -60,6 +60,9 @@ public class NexusApplication
@Requirement( hint = "licenseTemplate", optional = true )
private ManagedPlexusResource licenseTemplateResource;

@Requirement( hint = "enterLicenseTemplate", optional = true )
private ManagedPlexusResource enterLicenseTemplateResource;

@Requirement( hint = "IndexRedirectingPlexusResource" )
private ManagedPlexusResource indexRedirectingResource;

Expand Down Expand Up @@ -184,6 +187,10 @@ protected void doCreateRoot( Router root, boolean isStarted )
{
attach( root, false, licenseTemplateResource );
}
if( enterLicenseTemplateResource != null )
{
attach( root, false, enterLicenseTemplateResource );
}

// publish the WAR contents
Directory rootDir = new NexusDirectory( getContext(), "war:///" );
Expand Down

0 comments on commit 4500585

Please sign in to comment.