ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant Project.java ProjectHelper.java
Date Fri, 29 Mar 2002 11:21:19 GMT
conor       02/03/29 03:21:19

  Modified:    proposal/mutant/build ant1compat.xml
               proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant
                        Project.java ProjectHelper.java
  Log:
  More Ant1 compatability
  
  Revision  Changes    Path
  1.11      +1 -0      jakarta-ant/proposal/mutant/build/ant1compat.xml
  
  Index: ant1compat.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/mutant/build/ant1compat.xml,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -w -u -r1.10 -r1.11
  --- ant1compat.xml	28 Mar 2002 14:49:27 -0000	1.10
  +++ ant1compat.xml	29 Mar 2002 11:21:19 -0000	1.11
  @@ -62,6 +62,7 @@
       <include name="org/apache/tools/ant/AntClassLoader.java"/>
       <include name="org/apache/tools/ant/BuildEvent.java"/>
       <include name="org/apache/tools/ant/BuildListener.java"/>
  +    <include name="org/apache/tools/ant/BuildLogger.java"/>
       <!-- <patternset refid="deprecated"/> -->
       <patternset refid="toohard"/>
       <patternset refid="converted"/>
  
  
  
  1.16      +36 -0     jakarta-ant/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/Project.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -w -u -r1.15 -r1.16
  --- Project.java	25 Mar 2002 05:40:34 -0000	1.15
  +++ Project.java	29 Mar 2002 11:21:19 -0000	1.16
  @@ -197,6 +197,42 @@
       }
   
       /**
  +     * The old constructor fopr Project instances - not used now.
  +     *
  +     * @deprecated
  +     */
  +    public Project() {
  +        throw new BuildException("Projects can not be constructed to " 
  +            + "invoke Ant");
  +    }
  +    
  +    /**
  +     * The old initialisation method for Projects. Not used now
  +     *
  +     * @deprecated
  +     * @exception BuildException if the default task list cannot be loaded
  +     */
  +    public void init() throws BuildException {
  +        throw new BuildException("Projects can not be initialized in this " 
  +            + "manner any longer.");
  +    }
  +
  +
  +    /**
  +     * Old method used to execute targets
  +     * 
  +     * @param targetNames A vector of target name strings to execute.
  +     *                    Must not be <code>null</code>.
  +     * 
  +     * @exception BuildException always
  +     * @deprecated
  +     */
  +    public void executeTargets(Vector targetNames) throws BuildException {
  +        throw new BuildException("Targets within the project cannot be " 
  +            + "executed with this method.");
  +    }
  +        
  +    /**
        * static query of the java version
        *
        * @return a string indicating the Java version
  
  
  
  1.3       +17 -0     jakarta-ant/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/ProjectHelper.java
  
  Index: ProjectHelper.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/mutant/src/java/antlibs/ant1compat/org/apache/tools/ant/ProjectHelper.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -w -u -r1.2 -r1.3
  --- ProjectHelper.java	18 Mar 2002 02:44:25 -0000	1.2
  +++ ProjectHelper.java	29 Mar 2002 11:21:19 -0000	1.3
  @@ -54,6 +54,7 @@
   package org.apache.tools.ant;
   import java.util.Hashtable;
   import java.util.Vector;
  +import java.io.File;
   import org.apache.ant.common.antlib.AntContext;
   import org.apache.ant.common.service.DataService;
   import org.apache.ant.common.util.AntException;
  @@ -130,6 +131,22 @@
           } catch (ExecutionException e) {
               throw new BuildException(e);
           }
  +    }
  +
  +    /**
  +     * Old method to build a project.
  +     * 
  +     * @param project The project to configure. Must not be <code>null</code>.
  +     * @param buildFile An XML file giving the project's configuration.
  +     *                  Must not be <code>null</code>.
  +     * 
  +     * @exception BuildException always
  +     * @deprecated
  +     */
  +    public static void configureProject(Project project, File buildFile) 
  +        throws BuildException {
  +        throw new BuildException("Project are not built by ProjectHelper " 
  +            + "any longer.");
       }
   }
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message