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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to