You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by do...@apache.org on 2001/12/16 06:34:29 UTC

cvs commit: jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant Project.java Target.java

donaldp     01/12/15 21:34:29

  Modified:    proposal/myrmidon/src/main/org/apache/tools/ant Project.java
                        Target.java
  Log:
  Remove some code that wont be used in Myrmidon.
  
  Revision  Changes    Path
  1.7       +0 -42     jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/Project.java
  
  Index: Project.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/Project.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Project.java	2001/12/16 04:37:00	1.6
  +++ Project.java	2001/12/16 05:34:29	1.7
  @@ -884,48 +884,6 @@
       public void executeTarget( String targetName )
           throws TaskException
       {
  -
  -        // sanity check ourselves, if we've been asked to build nothing
  -        // then we should complain
  -
  -        if( targetName == null )
  -        {
  -            String msg = "No target specified";
  -            throw new TaskException( msg );
  -        }
  -
  -        // Sort the dependency tree, and run everything from the
  -        // beginning until we hit our targetName.
  -        // Sorting checks if all the targets (and dependencies)
  -        // exist, and if there is any cycle in the dependency
  -        // graph.
  -        Vector sortedTargets = topoSort( targetName, targets );
  -
  -        int curidx = 0;
  -        Target curtarget;
  -
  -        do
  -        {
  -            curtarget = (Target)sortedTargets.elementAt( curidx++ );
  -            curtarget.performTasks();
  -        } while( !curtarget.getName().equals( targetName ) );
  -    }
  -
  -    /**
  -     * execute the sequence of targets, and the targets they depend on
  -     *
  -     * @param targetNames Description of Parameter
  -     * @throws TaskException if the build failed
  -     */
  -    public void executeTargets( Vector targetNames )
  -        throws TaskException
  -    {
  -        Throwable error = null;
  -
  -        for( int i = 0; i < targetNames.size(); i++ )
  -        {
  -            executeTarget( (String)targetNames.elementAt( i ) );
  -        }
       }
   
       /**
  
  
  
  1.7       +0 -42     jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/Target.java
  
  Index: Target.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/proposal/myrmidon/src/main/org/apache/tools/ant/Target.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- Target.java	2001/12/16 05:12:39	1.6
  +++ Target.java	2001/12/16 05:34:29	1.7
  @@ -121,25 +121,6 @@
           return retval;
       }
   
  -    public final void performTasks()
  -    {
  -        try
  -        {
  -            project.fireTargetStarted( this );
  -            execute();
  -            project.fireTargetFinished( this, null );
  -        }
  -        catch( final TaskException te )
  -        {
  -            project.fireTargetFinished( this, te );
  -        }
  -        catch( RuntimeException exc )
  -        {
  -            project.fireTargetFinished( this, exc );
  -            throw exc;
  -        }
  -    }
  -
       public void addDependency( String dependency )
       {
           dependencies.addElement( dependency );
  @@ -148,29 +129,6 @@
       public void addTask( Task task )
       {
           children.addElement( task );
  -    }
  -
  -    public void execute()
  -        throws TaskException
  -    {
  -        Enumeration enum = children.elements();
  -        while( enum.hasMoreElements() )
  -        {
  -            Object o = enum.nextElement();
  -            if( o instanceof Task )
  -            {
  -                Task task = (Task)o;
  -                task.perform();
  -            }
  -            else
  -            {
  -            }
  -        }
  -    }
  -
  -    public String toString()
  -    {
  -        return name;
       }
   
       void replaceChild( Task el, Object o )
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>