You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by an...@apache.org on 2005/03/03 09:12:25 UTC

[Ant Wiki] Updated: AntNewbies

   Date: 2005-03-03T00:12:25
   Editor: NicoEngelen
   Wiki: Ant Wiki
   Page: AntNewbies
   URL: http://wiki.apache.org/ant/AntNewbies

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -167,7 +167,18 @@
 BUILD SUCCESSFUL
 Total time: 1 second
 }}}
+'''Answer#3'''
 
+Just change your target definition from
+{{{
+	<target name="if_target" if="${p}">
+}}}
+to
+{{{
+	<target name="if_target" if="p">
+}}}
+
+With your definition you referenced the value of p, not p itself. The if-statement just looks, if the given property exists anyway, not if the value is true.
 ----
  ```Question#4``` How do i pass src and destfile to bzip2 from the command line?
 This is what i tried:

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