You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Patrick Waugh <pt...@gmail.com> on 2008/11/13 13:10:56 UTC

not working

I am doing this:

	<target name="-build" depends="-deps, -init">
		<mkdir dir="${build.dir}" />
		<if>
			<available file="entryGUI.properties"/>
			<then>

in build.xml, and get this error:

/home/patrick/repo/dib/common/build.xml:89: Problem: failed to create
task or type if
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

and line 89 is the <If>.  I don't see an <If> task in Ant docs either.

What is wrong?

Patrick

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


Re: not working

Posted by Mark Salter <ma...@talktalk.net>.
Patrick Waugh wrote:

> What is wrong?

You need to get ant-contrib :-

http://ant-contrib.sourceforge.net/

-- 
Mark

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


AW: not working

Posted by Ja...@rzf.fin-nrw.de.
AntContrib has both: 

normal tasks 
http://ant-contrib.sourceforge.net/tasks/tasks/index.html

and c++ tasks
http://ant-contrib.sourceforge.net/cpptasks/index.html



Jan

>-----Ursprüngliche Nachricht-----
>Von: Patrick Waugh [mailto:ptwaugh@gmail.com] 
>Gesendet: Donnerstag, 13. November 2008 13:54
>An: Ant Users List
>Betreff: Re: <if> not working
>
>Thanks.  Yes, I can't seem to find the antcontrib... it seems to be
>ccptask or something.
>
>I'll check out Antelope.  =)
>
>Patrick
>
>On Thu, Nov 13, 2008 at 6:32 AM, Rebhan, Gilbert
><Gi...@huk-coburg.de> wrote:
>>
>>
>> -----Original Message-----
>> From: Patrick Waugh [mailto:ptwaugh@gmail.com]
>> Sent: Thursday, November 13, 2008 1:11 PM
>> To: Ant Users List
>> Subject: <if> not working
>>
>> /*
>>
>> and line 89 is the <If>.  I don't see an <If> task in Ant 
>docs either.
>>
>> What is wrong?
>> */
>>
>> i wrote =
>>
>> ...
>>
>> ***
>> or check the condition with antcontrib if/else in one target
>> ***
>>
>> means the <if> task is part of the antcontrib task suite,
>> it's not part of core ant.
>> Another fine ant task suite is Antelope, it has
>> similar tasks as antcontrib and an <if> task too.
>>
>> antcontrib =
>> http://ant-contrib.sourceforge.net/tasks/tasks/index.html
>> http://sourceforge.net/project/showfiles.php?group_id=36177
>> (take version 1.0b2 or 1.0b3)
>>
>> antelope =
>> http://antelope.tigris.org/nonav/docs/manual/index.html
>> 
>http://antelope.tigris.org/files/documents/1409/11489/AntelopeT
>asks_3.5.0.zip
>>
>>
>> put the jar it in %ANT_HOME%/lib and =
>>
>> <!-- Import AntContrib -->
>> <taskdef resource="net/sf/antcontrib/antlib.xml" />
>> ...
>>
>> or
>>
>> <!-- Import Antelope -->
>> <taskdef resource="ise/antelope/tasks/antlib.xml" />
>> ....
>>
>>
>> Regards, Gilbert
>>
>>
>> ---------------------------------------------------------------------
>> 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
>
>

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


RE: not working

Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.

-----Original Message-----
From: Patrick Waugh [mailto:ptwaugh@gmail.com]
Sent: Thursday, November 13, 2008 1:54 PM
To: Ant Users List
Subject: Re: <if> not working

/*
Thanks.  Yes, I can't seem to find the antcontrib... it seems to be
ccptask or something.

I'll check out Antelope.  =)

*/

just use the left link =
http://sourceforge.net/project/showfiles.php?group_id=36177&package_id=28636

Regards, Gilbert




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


Re: not working

Posted by Patrick Waugh <pt...@gmail.com>.
Thanks.  Yes, I can't seem to find the antcontrib... it seems to be
ccptask or something.

I'll check out Antelope.  =)

Patrick

On Thu, Nov 13, 2008 at 6:32 AM, Rebhan, Gilbert
<Gi...@huk-coburg.de> wrote:
>
>
> -----Original Message-----
> From: Patrick Waugh [mailto:ptwaugh@gmail.com]
> Sent: Thursday, November 13, 2008 1:11 PM
> To: Ant Users List
> Subject: <if> not working
>
> /*
>
> and line 89 is the <If>.  I don't see an <If> task in Ant docs either.
>
> What is wrong?
> */
>
> i wrote =
>
> ...
>
> ***
> or check the condition with antcontrib if/else in one target
> ***
>
> means the <if> task is part of the antcontrib task suite,
> it's not part of core ant.
> Another fine ant task suite is Antelope, it has
> similar tasks as antcontrib and an <if> task too.
>
> antcontrib =
> http://ant-contrib.sourceforge.net/tasks/tasks/index.html
> http://sourceforge.net/project/showfiles.php?group_id=36177
> (take version 1.0b2 or 1.0b3)
>
> antelope =
> http://antelope.tigris.org/nonav/docs/manual/index.html
> http://antelope.tigris.org/files/documents/1409/11489/AntelopeTasks_3.5.0.zip
>
>
> put the jar it in %ANT_HOME%/lib and =
>
> <!-- Import AntContrib -->
> <taskdef resource="net/sf/antcontrib/antlib.xml" />
> ...
>
> or
>
> <!-- Import Antelope -->
> <taskdef resource="ise/antelope/tasks/antlib.xml" />
> ....
>
>
> Regards, Gilbert
>
>
> ---------------------------------------------------------------------
> 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


RE: not working

Posted by "Rebhan, Gilbert" <Gi...@huk-coburg.de>.

-----Original Message-----
From: Patrick Waugh [mailto:ptwaugh@gmail.com]
Sent: Thursday, November 13, 2008 1:11 PM
To: Ant Users List
Subject: <if> not working

/*

and line 89 is the <If>.  I don't see an <If> task in Ant docs either.

What is wrong?
*/

i wrote =

...

***
or check the condition with antcontrib if/else in one target
***

means the <if> task is part of the antcontrib task suite,
it's not part of core ant.
Another fine ant task suite is Antelope, it has
similar tasks as antcontrib and an <if> task too.

antcontrib =
http://ant-contrib.sourceforge.net/tasks/tasks/index.html
http://sourceforge.net/project/showfiles.php?group_id=36177
(take version 1.0b2 or 1.0b3)

antelope =
http://antelope.tigris.org/nonav/docs/manual/index.html
http://antelope.tigris.org/files/documents/1409/11489/AntelopeTasks_3.5.0.zip


put the jar it in %ANT_HOME%/lib and =

<!-- Import AntContrib -->
<taskdef resource="net/sf/antcontrib/antlib.xml" />
...

or

<!-- Import Antelope -->
<taskdef resource="ise/antelope/tasks/antlib.xml" />
....


Regards, Gilbert


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