ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <>
Subject RE: Problem encountered with <mapper>
Date Mon, 24 Mar 2003 23:35:50 GMT
The first <property> must use value=, while the second should use
location=... Sorry about the typo. --DD

-----Original Message-----
From: Dominique Devienne [] 
Sent: Monday, March 24, 2003 5:32 PM
To: 'Ant Users List'
Subject: RE: Problem encountered with <mapper> 


<property name="fs" value="${file.separator}"/>
<property name="gen.src.dir" location="topdir/subdir"/>

<mapper type="regexp"


-----Original Message-----
From: Alex Zhao [] 
Sent: Monday, March 24, 2003 5:25 PM
Subject: Problem encountered with <mapper> 


I am working on a build.xml file in which I'd like to check that certain
dependent files are
up to date with respect to its source. I am using Ant 1.5.2 on Window 2000.

The mapper tag essentially tries to find the generated Local interface of
some EJB's. Everything seems to work
except a property associated with directory ${gen.src.dir}. Unless I
"hardcode" it, i.e., put "C:\\topdir\\subdir", nothing works. 

I tried:

<property name="gen.src.dir" value="topdir${file.separator}subdir"/>
<property name="gen.src.dir" value="topdir\${file.separator}subdir"/>
<property name="gen.src.dir" value="topdir\\\${file.separator}subdir"/>

In each case, the "\" between topdir and subdir gets eaten and consequently 
causes the mapper not finding files it should find.

     <mapper   type="regexp"

Please help.


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

View raw message