ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <>
Subject AW: PATH issue
Date Fri, 10 Oct 2003 07:09:03 GMT
pathconvert is a special task that you can use to convert a path into a
for instance
<pathconvert refid="build.path" property="myproperty" targetos="unix"/>
to convert your path to the property myproperty using the unix convention
for separator.

-----Urspr√ľngliche Nachricht-----
Von: Thomas Lionel SMETS []
Gesendet: Freitag, 10. Oktober 2003 08:44
An: "Ant Users List"
Betreff: PATH issue

I am trying to use ANT with WSAD 4.0 & WSAD 5.0 as exeplained by Barry
Searle in a document published on I.B.M.'s web site (see
html). I however have a very simple & annoying issue related to ant.

I defined in a property file all my attributes which I load with a
    <property file="./script/" />
The call is made outside any "target", I can see all the property in a
special target where I "echo" all my properties....

I then define a "path" :
    <path id="build.path">
        <pathelement location="${wsad.boot.lib}" />
        <pathelement location="${wsad.ant.lib}" />

and I cannot display the content of the PATH in my "echo" target...

    <target name="echo"
                description="Echoes the variables known by the script" >

        <property name="" refid="build.path" />
            script.dir  = ${script.dir}
            lib.dir     = ${lib.dir}
            source.dir  = ${source.dir}
            build.dir   = ${build.dir}
            dist.dir    = ${dist.dir}

            wsad4.home  = ${wsad4.home}
            wsad.plugins.dir  = ${wsad.plugins.dir}
            wsad.ant.dir    = ${wsad.ant.dir}
            wsad.boot.dir = ${wsad.boot.dir}
            wsad.startup.lib = ${wsad.startup.lib}

            wsad.ant.lib.dir = ${wsad.ant.lib.dir}
            wsad.ant.lib    = ${wsad.ant.lib}
            wsad.boot.lib   = ${wsad.boot.lib}
            wsad.antoptionnal.lib = ${wsad.antoptionnal.lib}

            wsad.xerces.dir = ${wsad.xerces.dir}
            wsad.xerces.lib = ${wsad.xerces.lib}

   = ${}


As I wrote ALL the variables are well displayed but I cannot use the
"build.path", neither can display it after transfering it into a "normal"

Can someone advise me ... ?
Jan ?


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

View raw message