You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by laredotornado <la...@gmail.com> on 2011/06/28 17:31:33 UTC

Including something from Ant contrib

Hi,

I'm using Ant 1.8.1.  I have downloaded ant-contrib-1.0b3.jar and placed it
in my $ANT_HOME/lib directory.  However, when I include this in my build.xml
file ...

<propertyregex property="selenium.email.success.subject"
              input="package.ABC.name"
              regexp="(.*)__ENV__(.*)"
              replace="\1${buildtarget}\2"
              override="true"
              casesensitive="false" />

I get the error "Problem: failed to create task or type propertyregex. 
Cause: The name is undefined." upon running my Ant build file.  What else do
I need to do to get this task recognized?

Thanks, - Dave

--
View this message in context: http://ant.1045680.n5.nabble.com/Including-something-from-Ant-contrib-tp4532215p4532215.html
Sent from the Ant - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: Including something from Ant contrib

Posted by Joe Attardi <jo...@attardi.net>.
Did you remember to add the <taskdef>?
On Jun 29, 2011 12:07 AM, "laredotornado" <la...@gmail.com> wrote:
> Hi,
>
> I'm using Ant 1.8.1. I have downloaded ant-contrib-1.0b3.jar and placed it
> in my $ANT_HOME/lib directory. However, when I include this in my
build.xml
> file ...
>
> <propertyregex property="selenium.email.success.subject"
> input="package.ABC.name"
> regexp="(.*)__ENV__(.*)"
> replace="\1${buildtarget}\2"
> override="true"
> casesensitive="false" />
>
> I get the error "Problem: failed to create task or type propertyregex.
> Cause: The name is undefined." upon running my Ant build file. What else
do
> I need to do to get this task recognized?
>
> Thanks, - Dave
>
> --
> View this message in context:
http://ant.1045680.n5.nabble.com/Including-something-from-Ant-contrib-tp4532215p4532215.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>

AW: Including something from Ant contrib

Posted by "Knuplesch, Juergen" <Ju...@icongmbh.de>.
You need to run taskdef:

  <!-- antcontrib Tasks (z.B. for-Task)-->
  <taskdef resource="net/sf/antcontrib/antlib.xml"/>

-----Ursprüngliche Nachricht-----
Von: laredotornado [mailto:laredotornado@gmail.com] 
Gesendet: Dienstag, 28. Juni 2011 17:32
An: user@ant.apache.org
Betreff: Including something from Ant contrib

Hi,

I'm using Ant 1.8.1.  I have downloaded ant-contrib-1.0b3.jar and placed it
in my $ANT_HOME/lib directory.  However, when I include this in my build.xml
file ...

<propertyregex property="selenium.email.success.subject"
              input="package.ABC.name"
              regexp="(.*)__ENV__(.*)"
              replace="\1${buildtarget}\2"
              override="true"
              casesensitive="false" />

I get the error "Problem: failed to create task or type propertyregex. 
Cause: The name is undefined." upon running my Ant build file.  What else do
I need to do to get this task recognized?

Thanks, - Dave

--
View this message in context: http://ant.1045680.n5.nabble.com/Including-something-from-Ant-contrib-tp4532215p4532215.html
Sent from the Ant - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org