maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject cvs commit: jakarta-turbine-maven/src/java/org/apache/maven AntProjectBuilder.java
Date Tue, 31 Dec 2002 07:00:52 GMT
jvanzyl     2002/12/30 23:00:52

  Added:       src/java/org/apache/maven AntProjectBuilder.java
  Log:
  refactoring. update to follow
  
  Revision  Changes    Path
  1.1                  jakarta-turbine-maven/src/java/org/apache/maven/AntProjectBuilder.java
  
  Index: AntProjectBuilder.java
  ===================================================================
  package org.apache.maven;
  
  import org.apache.commons.grant.GrantProject;
  import org.apache.commons.jelly.tags.ant.AntTagLibrary;
  import org.apache.maven.jelly.JellyPropsHandler;
  import org.apache.maven.project.Project;
  
  import com.werken.werkz.jelly.JellyBuildListener;
  
  public class AntProjectBuilder
  {
      /**
       * Initialize Ant.
       */
      public static GrantProject build( Project project )
      {
          // Create the build listener.
          JellyBuildListener buildListener = new JellyBuildListener( project.getContext().getXMLOutput()
);
          buildListener.isDebug( project.getContext().getDebugOn().booleanValue() );
          buildListener.setEmacsMode( project.getContext().getEmacsModeOn().booleanValue()
);
  
          // Create our ant project.
          GrantProject antProject = new GrantProject();
          antProject.setPropsHandler( new JellyPropsHandler( project.getContext() ) );
          antProject.init();
          antProject.setBaseDir( project.getFile().getParentFile() );
          antProject.addBuildListener( buildListener );
  
          project.getContext().setAntProject( antProject );
          AntTagLibrary.setProject( project.getContext() , antProject );
  
          return antProject;
      }
  }
  
  
  

Mime
View raw message