Package org.apache.maven.jelly

Examples of org.apache.maven.jelly.MavenJellyContext


                ForeheadClassLoader pluginClassLoader = (ForeheadClassLoader) cl;
                pluginClassLoader.addURL( jellyScriptHousing.getPluginDirectory().toURL() );
            }
        }

        MavenJellyContext context = jellyScriptHousing.getProject().getContext();
        URL oldRoot = context.getRootURL();
        URL oldCurrent = context.getCurrentURL();

        context.setRootURL( jellyScriptHousing.getSource().toURL() );
        context.setCurrentURL( jellyScriptHousing.getSource().toURL() );

        try
        {
            if ( LOGGER.isDebugEnabled() )
            {
                LOGGER.debug( "Jelly script to parse : " + jellyScriptHousing.getSource().toURL() );
            }
            Script script = JellyUtils.compileScript( jellyScriptHousing.getSource(), context );

            context.setRootURL( oldRoot );
            context.setCurrentURL( oldCurrent );

            return script;
        }
        catch ( Exception e )
        {
View Full Code Here


            }
            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() );
View Full Code Here

TOP

Related Classes of org.apache.maven.jelly.MavenJellyContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.