ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Rosenberg" ...@tabbysplace.org>
Subject RE: Problem with Ant pathconvert and paths with spaces
Date Fri, 23 Jul 2010 15:40:15 GMT
How about <propertyregex />?

--
Jonathan Rosenberg
Founder & Executive Director, Tabby's Place
http://www.tabbysplace.org/




-----Original Message-----
From: Bailey, Darragh [mailto:dbailey@hp.com] 
Sent: Friday, July 23, 2010 11:01 AM
To: Ant Users List
Subject: RE: Problem with Ant pathconvert and paths with spaces


 

> -----Original Message-----
> From: Jonathan Rosenberg [mailto:jr@tabbysplace.org] 
> Sent: 23 July 2010 15:43
> To: 'Ant Users List'
> Subject: RE: Problem with Ant pathconvert and paths with spaces
> 
> What happens if you run the build outside of Eclipse?

I did, guess I wasn't particularly clear. When I was making the following
comments, I should have stated that I was doing this by running ant via the
command line on a linux box.

> Some testing on the linux, by moving extralib to extralib\ 
> test and setting
> the property extra.lib.dir on the command line as following, 
> resulted in a
> similar error message:
> -Dextra.lib.dir=/build/extralib\ test/trunk
> 
> "/build/<some project>/trunk/build.xml:209:
> /build/extralib%20test/trunk/build does not exist."

Renaming the folder from "extralib test" to "extralib" allows the build to
work correctly once again.

So it's not a problem with eclipse, but rather that I was running eclipse on
Windows and my workspace folder in under a directory path that contains
multiple spaces. On the linux system that I generally write the ant scripts,
I use a heirarchy that doesn't have spaces in any directory name.


I've also done some additional testing and have found that the following
will eliminate the problem for a single space.

      <chainedmapper>
        <regexpmapper to="\1" from="file:([^\!]*)" />
        <regexpmapper from="(.*)%20(.*)" to="\1 \2" />
      </chainedmapper>

That's not particularly scalable as I can't just duplicate the second
regexpmapper to handle subsequent matches, as it results in an empty
property when I do. 
So I'm currently looking at the following options:
1) whether there is a regex substitution in ant that can replace all
occurances of a string
2) whether to modify my libraries to be locatable by jarlib-resolve and
extension
3) Use scriptmapper


--
Regards,
Darragh Bailey

Systems Software Engineer
Hewlett Packard Galway Ltd.

Postal Address:    Hewlett Packard Galway Limited, Ballybrit Business Park,
Galway
Registered Office: Hewlett Packard Galway Limited, 63-74 Sir John Rogerson's
Quay Dublin 2
Registered Number: 361933 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message