ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chad Loder <clo...@acm.org>
Subject Communicating paths to ant tasks
Date Tue, 07 May 2002 17:07:37 GMT
Hi...it appears that path variables, e.g.:

	<path id="somepath" path="/tmp/foobar"/>

are not inherited by sub-ant tasks in the same
way that properties are (in other words, I can't
refer to this path using refid="somepath" in
another antfile).

Is this a design decision or an oversight? I
find myself having to convert paths to properties
in order to get them to be inherited:

      <pathconvert targetos="windows" property="r7.base.dir">
         <path id="r7.base.dir" path="${basedir}"/>
      </pathconvert>

      <pathconvert targetos="windows" property="r7.3rdparty.dir">
         <path id="r7.3rdparty.dir" path="${r7.base.dir}/3rdparty"/>
      </pathconvert>

      <!--
         ant
      -->
      <pathconvert targetos="windows" property="r7.3rdparty.ant.dir">
         <path id="r7.3rdparty.ant.dir" path="${r7.3rdparty.dir}/ant/jakarta-ant"/>
      </pathconvert>

      <pathconvert targetos="windows" property="r7.3rdparty.ant.classpath">
         <path id="r7.3rdparty.ant.classpath" path="${r7.3rdparty.ant.dir}/build/classes"/>
      </pathconvert>


which, needless to say, is annoying.

Thanks,
	c


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


Mime
View raw message