Browse Source

No need to apply policy in task - can do that in context

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270566 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Donald 24 years ago
parent
commit
a99f864176
4 changed files with 4 additions and 26 deletions
  1. +1
    -5
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Available.java
  2. +1
    -8
      proposal/myrmidon/src/main/org/apache/tools/ant/taskdefs/Input.java
  3. +1
    -5
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Available.java
  4. +1
    -8
      proposal/myrmidon/src/todo/org/apache/tools/ant/taskdefs/Input.java

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

@@ -165,11 +165,7 @@ public class Available

if( eval() )
{
if( null == getProject().getProperty( m_property ) )
{
setProperty( m_property, m_value );
}
//else ignore
setProperty( m_property, m_value );
}
}



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

@@ -142,14 +142,7 @@ public class Input extends Task
// adopted from org.apache.tools.ant.taskdefs.Property
if( addproperty != null )
{
if( getProject().getProperty( addproperty ) == null )
{
setProperty( addproperty, input );
}
else
{
getLogger().debug( "Override ignored for " + addproperty );
}
setProperty( addproperty, input );
}
}
}


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

@@ -165,11 +165,7 @@ public class Available

if( eval() )
{
if( null == getProject().getProperty( m_property ) )
{
setProperty( m_property, m_value );
}
//else ignore
setProperty( m_property, m_value );
}
}



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

@@ -142,14 +142,7 @@ public class Input extends Task
// adopted from org.apache.tools.ant.taskdefs.Property
if( addproperty != null )
{
if( getProject().getProperty( addproperty ) == null )
{
setProperty( addproperty, input );
}
else
{
getLogger().debug( "Override ignored for " + addproperty );
}
setProperty( addproperty, input );
}
}
}


Loading…
Cancel
Save