Browse Source

getTaskName() -> getName() and this is inherited from AbstractTask

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270174 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
a61676acdd
2 changed files with 2 additions and 44 deletions
  1. +1
    -22
      proposal/myrmidon/src/main/org/apache/tools/ant/Task.java
  2. +1
    -22
      proposal/myrmidon/src/todo/org/apache/tools/ant/Task.java

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

@@ -15,7 +15,6 @@ public abstract class Task
{
protected Target target;
protected String description;
protected String taskName;
protected String taskType;
protected RuntimeConfigurable wrapper;

@@ -40,16 +39,6 @@ public abstract class Task
this.target = target;
}

/**
* Set the name to use in logging messages.
*
* @param name the name to use in logging messages.
*/
public void setTaskName( String name )
{
this.taskName = name;
}

public String getDescription()
{
return description;
@@ -74,21 +63,11 @@ public abstract class Task
{
if( wrapper == null )
{
wrapper = new RuntimeConfigurable( this, getTaskName() );
wrapper = new RuntimeConfigurable( this, getName() );
}
return wrapper;
}

/**
* Get the name to use in logging messages.
*
* @return the name to use in logging messages.
*/
public String getTaskName()
{
return taskName;
}

/**
* Perform this task
*/


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

@@ -15,7 +15,6 @@ public abstract class Task
{
protected Target target;
protected String description;
protected String taskName;
protected String taskType;
protected RuntimeConfigurable wrapper;

@@ -40,16 +39,6 @@ public abstract class Task
this.target = target;
}

/**
* Set the name to use in logging messages.
*
* @param name the name to use in logging messages.
*/
public void setTaskName( String name )
{
this.taskName = name;
}

public String getDescription()
{
return description;
@@ -74,21 +63,11 @@ public abstract class Task
{
if( wrapper == null )
{
wrapper = new RuntimeConfigurable( this, getTaskName() );
wrapper = new RuntimeConfigurable( this, getName() );
}
return wrapper;
}

/**
* Get the name to use in logging messages.
*
* @return the name to use in logging messages.
*/
public String getTaskName()
{
return taskName;
}

/**
* Perform this task
*/


Loading…
Cancel
Save