Package com.werken.werkz

Examples of com.werken.werkz.Project


    public Project getProject() {
        if ( project == null ) {
          // we may be invoked inside a child script, so lets try find the parent project
          project = (Project) context.findVariable( "org.apache.commons.jelly.werkz.Project" );
          if ( project == null ) {
              project = new Project();
              context.setVariable( "org.apache.commons.jelly.werkz.Project", project );
          }
        }
        return project;
    }
View Full Code Here


    /**
     * @return the goal of the given name or
     *  throws a JellyExceptoin if the goal could not be found
     */
    protected Goal getGoal(String name) throws JellyException {
        Project project = getProject();
        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

            session = attainTag.getSession();
        }

        ProjectTag projectTag = (ProjectTag) findAncestorWithClass( ProjectTag.class );

        Project project = projectTag.getProject();

        invokeBody(output);

        try
        {
            project.attainGoal( getName(),
                                session );
        }
        catch (UnattainableGoalException e)
        {
            Throwable root = e.getRootCause();
View Full Code Here

TOP

Related Classes of com.werken.werkz.Project

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.