Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems with attempting use (Hide Ant Task)/(if condition)

 
Mat Anthony
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
currently trying to hide an ant task, so that it is not visable for selection to the user.
I currently use ant 1.7.0.

I have used the following :-

<target name="-copyFiles">

</target>

<target name="compile" depends=-copyFiles">

</target>


I have also attempted to use the <if> condition within my ant script and got the following error message:-

Problem: fialed 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.

Any ideas?

Mat

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by:

so that it is not visable for selection to the user.


Do you mean that you do not want the user to see the target when the user enters:



If so, then add descriptions to the targets you want the user to see - then Ant prints only those targets that have descriptions:



And to run it:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic