Package org.apache.maven.werkz

Examples of org.apache.maven.werkz.Goal


            {
                String goalName = (String) i.next();
                LOGGER.debug( "attaining goal " + goalName );
                try
                {
                    Goal goal = werkzProject.getGoal( goalName );
                    if ( ( goal == null ) || ( goal.getAction() == null ) )
                    {
                        throw new NoSuchGoalException( goalName );
                    }
                    goal.attain( session );
                }
                catch ( NoSuchGoalException e )
                {
                    throw new UnknownGoalException( goalName );
                }
View Full Code Here


        throws JellyTagException
    {

        LOGGER.debug( "doTag(..):" + name );

        Goal goal = getProject().getGoal( getName(), true );

        goal.setDescription( this.description );
        try
        {
            addPrereqs( goal );
        }
        catch ( CyclicGoalChainException e )
        {
            throw new JellyTagException( e );
        }

        Action action;

        action = getAction();

        if ( action == null )
        {
            action = new DefaultAction()
            {
                public void performAction( Session session )
                    throws Exception
                {
                    performAction();
                }

                public void performAction()
                    throws Exception
                {
                    LOGGER.debug( "Running action of target: " + getName() );
                    invokeBody( output );
                }
            };
        }

        goal.setAction( action );
    }
View Full Code Here

        }

        StringTokenizer tokens = new StringTokenizer( getPrereqs(), "," );

        String eachToken = null;
        Goal eachPrereq = null;

        while ( tokens.hasMoreTokens() )
        {
            eachToken = tokens.nextToken().trim();
View Full Code Here

        {
            throw new JellyTagException( "Must use this tag inside a <maven:project> tag" );
        }

        // #### allow lazy creation of callbacks before the goal is defined...
        Goal goal = project.getGoal( name, true );
        if ( goal == null )
        {
            throw new JellyTagException( "No such target name: " + name );
        }
        return goal;
View Full Code Here

TOP

Related Classes of org.apache.maven.werkz.Goal

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.