notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
svn commit: r1477 - development/main/magic/core/src/main/net/dpml/magic/tasks
- From: dleangen AT netcompartner.com
- To: notify-dpml AT lists.ibiblio.org
- Subject: svn commit: r1477 - development/main/magic/core/src/main/net/dpml/magic/tasks
- Date: Sat, 15 Jan 2005 06:49:46 +0100
Author: dleangen
Date: Sat Jan 15 06:49:46 2005
New Revision: 1477
Modified:
development/main/magic/core/src/main/net/dpml/magic/tasks/FilterTask.java
Log:
Added support for "value" property.
Modified:
development/main/magic/core/src/main/net/dpml/magic/tasks/FilterTask.java
==============================================================================
--- development/main/magic/core/src/main/net/dpml/magic/tasks/FilterTask.java
(original)
+++ development/main/magic/core/src/main/net/dpml/magic/tasks/FilterTask.java
Sat Jan 15 06:49:46 2005
@@ -31,12 +31,18 @@
public class FilterTask extends FeatureTask
{
private String m_token;
+ private String m_value;
public void setToken( final String token )
{
m_token = token;
}
+ public void setValue( final String value )
+ {
+ m_value = value;
+ }
+
public void execute() throws BuildException
{
if( null == m_token )
@@ -46,7 +52,13 @@
throw new BuildException( error );
}
- final String value = super.resolve();
+ final String value;
+ if( null != m_value )
+ value = m_value;
+
+ else
+ value = super.resolve();
+
if( null != value )
{
final Filter filter = (Filter) getProject().createTask( "filter"
);
-
svn commit: r1477 - development/main/magic/core/src/main/net/dpml/magic/tasks,
dleangen, 01/15/2005
- Re: svn commit: r1477 - development/main/magic/core/src/main/net/dpml/magic/tasks, Niclas Hedhman, 01/15/2005
Archive powered by MHonArc 2.6.24.