I'm doing something similar, and it works, but I'm using:

    <pathconvert property="xxx-classpath"
                 dirsep="/"
                 pathsep=" ${nl} "
                 refid="xxx.jar-files">
      <map from="${xxx.home}\jar" to="../xxx/jar" />
    </pathconvert>

Note how I used a back-slash instead of a forward slash. Also note that
stripping ${xxx.home}\jar to the entries in the fileset result in a short
filename (no path at all, so no path separator).

I'm not so sure the 'from' and 'to' attributes of the <map> sub-element of
<pathconvert> have the same kind of path-magic Ant uses elsewhere, and I
think simple literal substitution happens. This would mean the substitution
can be affected by the local platform's path separator character

I'm using a <fileset> on Windows (so I get \ I think), and xxx.home is a
<property location=""/>, so also uses \, and I add \jar. So everythings
using backslash, and works.

Or maybe it's simply my using the 'dirsep' attribute???

Anyways, try using 'dirsep'. If it doesn't help, try using <pathconvert> to
convert everything to the same kind of path separator, and then do another
<pathconvert> to do the mapping.

Confusing, but hopefully helpful. --DD

-----Original Message-----
From: Michael Rauh [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 19, 2002 4:14 AM
To: [EMAIL PROTECTED]
Subject: Problem with pathconvert and map, perhaps a bug 

If i use this code the pathconvert doesn�t work,

        <fileset dir="${resin.home}/webapps/${newbuild.dir}" id="jsp-path">
          <patternset>
            <include name="**/*.jsp"/>
          </patternset>
        </fileset>
        <pathconvert pathsep=" " property="resin.http-path"
refid="jsp-path">
          <map from="${resin.home}/webapps/" to="http://localhost/"/>
        </pathconvert>
         <exec executable="${resin.home}/bin/httpd.exe"
dir="${resin.home}/webapps">
           <arg value="-compile ${resin.http-path}"/>
         </exec>

but if i change:

          <map from="${resin.home}/webapps/" to="http://localhost/"/>
to
          <map from="D:/tools/resin/resin-2.0.5/webapps/"
to="http://localhost/"/>

it just works  fine.

But I can`t figure out why?

Can anyone help me please.


Best regards


Michael



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to