Browse Source

Remove some code that wont be used in Myrmidon.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270207 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
990c5b2a36
4 changed files with 0 additions and 168 deletions
  1. +0
    -42
      proposal/myrmidon/src/main/org/apache/tools/ant/Project.java
  2. +0
    -42
      proposal/myrmidon/src/main/org/apache/tools/ant/Target.java
  3. +0
    -42
      proposal/myrmidon/src/todo/org/apache/tools/ant/Project.java
  4. +0
    -42
      proposal/myrmidon/src/todo/org/apache/tools/ant/Target.java

+ 0
- 42
proposal/myrmidon/src/main/org/apache/tools/ant/Project.java View File

@@ -884,48 +884,6 @@ public class Project
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 ) );
}
}

/**


+ 0
- 42
proposal/myrmidon/src/main/org/apache/tools/ant/Target.java View File

@@ -121,25 +121,6 @@ public class Target
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 );
@@ -150,29 +131,6 @@ public class Target
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 )
{
int index = -1;


+ 0
- 42
proposal/myrmidon/src/todo/org/apache/tools/ant/Project.java View File

@@ -884,48 +884,6 @@ public class Project
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 ) );
}
}

/**


+ 0
- 42
proposal/myrmidon/src/todo/org/apache/tools/ant/Target.java View File

@@ -121,25 +121,6 @@ public class Target
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 );
@@ -150,29 +131,6 @@ public class Target
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 )
{
int index = -1;


Loading…
Cancel
Save