Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 79343 invoked from network); 25 Mar 2003 00:08:35 -0000 Received: from rwc-exch-01.zaplet.com (HELO rwc-exch-01.zaplet.corp) (209.233.167.2) by daedalus.apache.org with SMTP; 25 Mar 2003 00:08:35 -0000 Received: from dtbkirsch01 ([10.0.3.35]) by rwc-exch-01.zaplet.corp with Microsoft SMTPSVC(5.0.2195.5329); Mon, 24 Mar 2003 16:08:43 -0800 Message-ID: <008d01c2f262$b2600830$2303000a@zaplet.corp> From: "Alex Zhao" To: "Ant Users List" References: Subject: Re: Problem encountered with Date: Mon, 24 Mar 2003 16:08:43 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-OriginalArrivalTime: 25 Mar 2003 00:08:43.0414 (UTC) FILETIME=[B26F2360:01C2F262] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Nope, it doesn't work. Tried it before and tried it again just now. -Alex ----- Original Message ----- From: "Dominique Devienne" To: "'Ant Users List'" Sent: Monday, March 24, 2003 4:01 PM Subject: RE: Problem encountered with > I suspect you need to escape the ${fs} which resolves to \ windows, which is > also a special character for the regex: > > from="^(.*)\${fs}server\${fs}(.*)Bean.java" > to="\${gen.src.dir}\\${fs}\1\\${fs}spi\\${fs}\2Local.java"/> > > Sorry if it doesn't work. Gotta go. --DD > > -----Original Message----- > From: Alex Zhao [mailto:azhao@zaplet.com] > Sent: Monday, March 24, 2003 5:56 PM > To: Ant Users List > Subject: Re: Problem encountered with > > Dominique, > > Thanks a lot for looking at this for me! Here is more detail: > > > > /> > > type="regexp" > from="^(.*)\${fs}server\${fs}(.*)Bean.java" > > to="\${gen.src.dir}\${fs}\1\${fs}spi\${fs}\2Local.java"/> > > > An example would be to map C:\topdir\src\beandir\com\foo\server\BarBean.java > to > C:\topdir\subdir\com\foo\spi\BarLocal.java. > > When I ran ant with -v option, Ant complains that it cannot find > C:\topdirsubdir\com\foo\spi\BarLocal. > > Hopefully this is what you are looking for. > > -Alex > ----- Original Message ----- > From: "Dominique Devienne" > To: "'Ant Users List'" > Sent: Monday, March 24, 2003 3:45 PM > Subject: RE: Problem encountered with > > > > Please provide an example input path, what it should be mapped to, and the > > context in which the is used, as well as the data type (fileset?) > > used to gather the input files, with explicit value of the dir attribute > (in > > case a variable is used). Thanks, --DD > > > > -----Original Message----- > > From: Alex Zhao [mailto:azhao@zaplet.com] > > Sent: Monday, March 24, 2003 5:40 PM > > To: 'Ant Users List' > > Subject: Re: Problem encountered with > > > > Thanks, but it didn't work. > > > > -Alex > > ----- Original Message ----- > > From: "Dominique Devienne" > > To: "'Ant Users List'" > > Sent: Monday, March 24, 2003 3:35 PM > > Subject: RE: Problem encountered with > > > > > > > The first must use value=, while the second should use > > > location=... Sorry about the typo. --DD > > > > > > -----Original Message----- > > > From: Dominique Devienne [mailto:DDevienne@lgc.com] > > > Sent: Monday, March 24, 2003 5:32 PM > > > To: 'Ant Users List' > > > Subject: RE: Problem encountered with > > > > > > Try > > > > > > > > > > > > > > > > > from="^(.*)\${fs}server\${fs}(.*)Bean.java" > > > to="${gen.src.dir}\${fs}\1\${fs}spi\${fs}\2Local.java"/> > > > > > > --DD > > > > > > -----Original Message----- > > > From: Alex Zhao [mailto:azhao@zaplet.com] > > > Sent: Monday, March 24, 2003 5:25 PM > > > To: user@ant.apache.org > > > Subject: Problem encountered with > > > > > > Hi, > > > > > > 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: > > > > > > > > > or > > > > > > and > > > > > > > > > In each case, the "\" between topdir and subdir gets eaten and > > consequently > > > causes the mapper not finding files it should find. > > > > > > > > > > > from="^(.*)\${file.separator}server\${file.separator}(.*)Bean.java" > > > > > > > > > to="${gen.src.dir}\${file.separator}\1\${file.separator}spi\${file.separator > > > }\2Local.java"/> > > > > > > > > > Please help. > > > > > > > > > -Alex > > > > > > --------------------------------------------------------------------- > > > 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 > > > > > > > > > --------------------------------------------------------------------- > > 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 > > > > > --------------------------------------------------------------------- > 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 >