ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vijay Raghavan <>
Subject Setting properties ***
Date Thu, 20 Jul 2000 22:05:52 GMT
In the following example do the properties get set eventhough the init target
is never invoked?
Is that the expected behavior? I would have thought that just executing "ant
all" or "ant clean" would mean that none of the properties get set. On the
contrary the properties appear to all be set and in this example the subproject
in /tmp/build/build.xml sees the values of the properties.

<project name="myproject" default="all" basedir=".">
  <target name="init">
    <property name="name1" value="value1"/>
    <property name="name2" value="value2"/>

  <target name="all" >
   <ant antfile="/tmp/build/build.xml" dir="."/ target="all">

  <target name="clean" >
    <ant antfile="/tmp/build/build.xml" dir="." target="clean"/>


View raw message