Browse Source

No need for tasks to know which target they are in ... or even if they are in a target.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270183 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
ff55918264
10 changed files with 2 additions and 50 deletions
  1. +0
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/BuildEvent.java
  2. +0
    -20
      proposal/myrmidon/src/main/org/apache/tools/ant/Task.java
  3. +0
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Get.java
  4. +0
    -1
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Rmic.java
  5. +1
    -2
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Cab.java
  6. +0
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/BuildEvent.java
  7. +0
    -20
      proposal/myrmidon/src/todo/org/apache/tools/ant/Task.java
  8. +0
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Get.java
  9. +0
    -1
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Rmic.java
  10. +1
    -2
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Cab.java

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

@@ -53,7 +53,6 @@ public class BuildEvent extends EventObject
{
super( task );
this.project = task.getProject();
this.target = task.getOwningTarget();
this.task = task;
}



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

@@ -13,7 +13,6 @@ public abstract class Task
extends ProjectComponent
implements org.apache.myrmidon.api.Task
{
protected Target target;
protected String description;
protected String taskType;

@@ -28,30 +27,11 @@ public abstract class Task
description = desc;
}

/**
* Sets the target object of this task.
*
* @param target Target in whose scope this task belongs.
*/
public void setOwningTarget( Target target )
{
this.target = target;
}

public String getDescription()
{
return description;
}

/**
* Get the Target to which this task belongs
*
* @return the task's target.
*/
public Target getOwningTarget()
{
return target;
}
/**
* Perform this task
*/


+ 0
- 1
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Get.java View File

@@ -303,7 +303,6 @@ public class Get extends Task
if( project.getJavaVersion() != Project.JAVA_1_1 )
{
Touch touch = (Touch)project.createTask( "touch" );
touch.setOwningTarget( target );
touch.setFile( file );
touch.setMillis( timemillis );
touch.touch();


+ 0
- 1
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Rmic.java View File

@@ -691,6 +691,5 @@ public class Rmic extends MatchingTask
}
}
}

}


+ 1
- 2
proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/optional/Cab.java View File

@@ -317,8 +317,7 @@ public class Cab extends MatchingTask
throws TaskException
{
ExecTask exec = (ExecTask)project.createTask( "exec" );
exec.setOwningTarget( this.getOwningTarget() );
exec.setDescription( this.getDescription() );
exec.setDescription( getDescription() );

return exec;
}


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

@@ -53,7 +53,6 @@ public class BuildEvent extends EventObject
{
super( task );
this.project = task.getProject();
this.target = task.getOwningTarget();
this.task = task;
}



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

@@ -13,7 +13,6 @@ public abstract class Task
extends ProjectComponent
implements org.apache.myrmidon.api.Task
{
protected Target target;
protected String description;
protected String taskType;

@@ -28,30 +27,11 @@ public abstract class Task
description = desc;
}

/**
* Sets the target object of this task.
*
* @param target Target in whose scope this task belongs.
*/
public void setOwningTarget( Target target )
{
this.target = target;
}

public String getDescription()
{
return description;
}

/**
* Get the Target to which this task belongs
*
* @return the task's target.
*/
public Target getOwningTarget()
{
return target;
}
/**
* Perform this task
*/


+ 0
- 1
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Get.java View File

@@ -303,7 +303,6 @@ public class Get extends Task
if( project.getJavaVersion() != Project.JAVA_1_1 )
{
Touch touch = (Touch)project.createTask( "touch" );
touch.setOwningTarget( target );
touch.setFile( file );
touch.setMillis( timemillis );
touch.touch();


+ 0
- 1
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Rmic.java View File

@@ -691,6 +691,5 @@ public class Rmic extends MatchingTask
}
}
}

}


+ 1
- 2
proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/optional/Cab.java View File

@@ -317,8 +317,7 @@ public class Cab extends MatchingTask
throws TaskException
{
ExecTask exec = (ExecTask)project.createTask( "exec" );
exec.setOwningTarget( this.getOwningTarget() );
exec.setDescription( this.getDescription() );
exec.setDescription( getDescription() );

return exec;
}


Loading…
Cancel
Save