ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chad Loder <>
Subject Communicating paths to ant tasks
Date Tue, 07 May 2002 17:07:37 GMT 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 targetos="windows" property="r7.3rdparty.dir">
         <path id="r7.3rdparty.dir" path="${r7.base.dir}/3rdparty"/>

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

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

which, needless to say, is annoying.


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message