RE: XMLC Include Files
"Christian Cryder" <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <[email protected]> |
Hey Jake, Sorry to be so long in responding...I was gone all weekend fishing with my kids ;-) In short, I think this is a great idea. Before taking the plunge on making the changes, however, it'd sure be helpful if we had someone to test them out (ie. is there anyone who could use this functionality to verify that we implement it correctly?) Christian ---------------------------------------------- Christian Cryder Internet Architect, ATMReports.com Project Chair, BarracudaMVC - http://barracudamvc.org ---------------------------------------------- "Coffee? I could quit anytime, just not today" > -----Original Message----- > From: [email protected] > [mailto:[email protected]]On Behalf Of Jacob Kjome > Sent: Friday, August 01, 2003 12:29 PM > To: [email protected] > Subject: RE: [Barracuda] XMLC Include Files > > > Hi Christian, > > At 10:47 AM 8/1/2003 -0600, you wrote: > >Hi Jake, > > > >Good question, and I'm not entirely sure of the answer. CopyAndReplace > >extends Ant's Copy task, and then it delegates to Ant's Replace task. > >So...if Replace supports regexp then CopyAndReplace should too, > I presume. > > Actually, Replace doesn't support regular expression matching. However, > the Ant optional task ReplaceRegExp does... > http://ant.apache.org/manual/OptionalTasks/replaceregexp.html > > It is optional because it requires an external regular expression library > to work. These include j2sdk1.4.x regular expression package, > Jakarta-RegeExp, and Jakarta-Oro. Jakarta-Oro is the recommended > one since > it treats line endings in one way across platforms and will work > with older > JDK's. Maybe we can add an attribute to the CopyAndReplace task or to > individual token/value entries identifying the replace to use regular > expressions? If ReplaceRegExp throws an exception saying that no regex > package was found, then either fail the task or log a warning and > continue > on to other token/value pairs. I'd think that logging the > warning, rather > than failing the task, would be the most prudent. > > What do you think? > > Jake > > > >Christian > >---------------------------------------------- > >Christian Cryder > >Internet Architect, ATMReports.com > >Project Chair, BarracudaMVC - http://barracudamvc.org > >---------------------------------------------- > >"Coffee? I could quit anytime, just not today" > > > > > > > -----Original Message----- > > > From: [email protected] > > > [mailto:[email protected]]On Behalf Of Jacob Kjome > > > Sent: Friday, August 01, 2003 9:27 AM > > > To: [email protected] > > > Subject: RE: [Barracuda] XMLC Include Files > > > > > > > > > Hi Christian, > > > > > > At 12:09 PM 6/23/2003 -0600, you wrote: > > > >Now each of these .shtml files actually corresponds to an > actual webapp > > > >screen, so we want to compile these into XMLC objects. We > also want to > > > >perform text replacements, however, changing relative links > into event > > > >references and stuff like that. So for that we use the CopyAndReplace > > > >functionality - this copies the files from our mockups > directory into our > > > >XMLC source directory, resolving .ssi refences and performing text > > > >replacement as well. > > > > > > Sorry to bring this up again over a month later, but does > CopyAndReplace > > > support regular expression text replacements like XMLC does (via > > > -urlregexpmapping)? If not, it seems that it should be > added. If not, > > > then it can't be claimed that CopyAndReplace replaces similar > > > functionality > > > provided directly by XMLC. > > > > > > Jake > > > > > > _______________________________________________ > > > Barracuda mailing list > > > [email protected] > > > http://barracudamvc.org/lists/listinfo/barracuda > > > >_______________________________________________ > >Barracuda mailing list > >[email protected] > >http://barracudamvc.org/lists/listinfo/barracuda > > _______________________________________________ > Barracuda mailing list > [email protected] > http://barracudamvc.org/lists/listinfo/barracuda