}
lvm.addLinkValidator( new FileLinkValidator() );
// Project is only null in test cases
if ( getProject() != null )
{
MavenJellyContext ctx = ( (Project) getProject() ).getContext();
if ( ctx.getOnline().booleanValue() )
{
lvm
.addLinkValidator( new OnlineHTTPLinkValidator(
getMethod(),
(String) ctx.getVariable( MAVEN_PROXY_HOST ),
(String) ctx.getVariable( MAVEN_PROXY_PORT ),
(String) ctx.getVariable( MAVEN_PROXY_USERNAME ),
(String) ctx.getVariable( MAVEN_PROXY_PASSWORD ),
(String) ctx
.getVariable( MAVEN_PROXY_NTLM_HOST ),
(String) ctx
.getVariable( MAVEN_PROXY_NTLM_DOMAIN ) ) );
}
else
{
lvm.addLinkValidator( new OfflineHTTPLinkValidator() );