Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 65660 invoked from network); 9 May 2003 12:17:41 -0000 Received: from unknown (HELO gwaihir.fuegolabs.com) (200.80.200.100) by daedalus.apache.org with SMTP; 9 May 2003 12:17:41 -0000 Received: from fuegolabs.com (wintermute.fuegolabs.com [192.168.0.11]) by gwaihir.fuegolabs.com (8.12.2/8.12.2) with ESMTP id h49CFJbC016661; Fri, 9 May 2003 09:15:19 -0300 Message-ID: <3EBB9C5F.50807@fuegolabs.com> Date: Fri, 09 May 2003 09:17:35 -0300 From: Mariano Benitez User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en, es-ar MIME-Version: 1.0 To: Ant Users List , Ant Developers List Subject: how to set a property with a regexp Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have the following problem: I have a fileset that I want to convert to the manifest classpath. so this is what I do: 1) pathconvert 2) the problem comes when trying to make this work fine on both win with cygnus and unix. the paths in the fileset comes with the path separator of the target os, so I change my map so that reflect that. the problem is that if the fileset contains another subdirectory like lib/tomcat/catalina.jar, the result of the mapping is different on each platform, in unix is "tomcat/catalina.jar" and in windows is "tomcat\catalina.jar" 3) now, how can I set another property but replacing ${file.separator} with /? any suggestions are appreciated! MAriano