Package com.werken.werkz

Examples of com.werken.werkz.Goal


        eh.error(
            LOG,
            "Unable to order cartoon character 'wilma' due to dependency cycle:"
                + " A cycle has been detected from the initial goal [wilma]",
            null,
            new CyclicGoalChainException(new Goal("")));

        c.setMatcher(new ExceptionAwareArgumentsMatcher());

        replayControls();
View Full Code Here


        eh.error(
            LOG,
            "Unable to order cartoon character 'betty' due to dependency cycle: A cycle has been detected from the initial goal [fred]",
            null,
            new CyclicGoalChainException(new Goal("")));

        c.setMatcher(new ExceptionAwareArgumentsMatcher());

        replayControls();
View Full Code Here

        addGoals(p);

        if (_leader == null)
        {
            _leader = new Goal("*-leader-*", new NullAction());
            p.addGoal(_leader);
        }

        if (_trailer == null)
        {
            _trailer = new Goal("*-trailer-*", new NullAction());

            p.addGoal(_trailer);
        }

        addDependencies(p);
View Full Code Here

                {
                    performAction();
                }
            };

            Goal goal = new Goal(o.getName(), a);

            project.addGoal(goal);

            if ("*".equals(o.getPostreqs()))
            {
View Full Code Here

        while (i.hasNext())
        {
            ObjectOrdering o = (ObjectOrdering) i.next();
            String name = o.getName();

            Goal goal = project.getGoal(name);

            addDependencies(project, goal, o);
        }
    }
View Full Code Here

        for (int i = 0; i < names.length; i++)
        {
            String prename = names[i];

            Goal pregoal = project.getGoal(prename);

            if (pregoal == null)
            {
                _errorHandler.error(
                    _log,
View Full Code Here

        for (int i = 0; i < names.length; i++)
        {
            String postname = names[i];

            Goal postgoal = project.getGoal(postname);

            if (postgoal == null)
            {
                _errorHandler.error(
                    _log,
View Full Code Here

     */
    public void doTag(final XMLOutput output) throws Exception {
       
        log.debug("doTag(..):" + name);

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

        goal.setDescription( this.description );
        addPrereqs( goal );

        Action action = new DefaultAction() {
                public void performAction() throws Exception {
                    log.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

        if ( project == null ) {
            throw new JellyException( "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 JellyException( "No such target name: " + name );
        }
        return goal;
    }
View Full Code Here

TOP

Related Classes of com.werken.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.