ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ant-...@apache.org
Subject [Ant Wiki] Updated: AntNewbies
Date Thu, 03 Mar 2005 08:12:25 GMT
   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


Mime
View raw message