On Monday 31 December 2001 13:45, Chuck Esterbrook wrote: > > * lots of changes to existing servlet code !!! though a > > conversion tool could ease migration > > I feel obligated that the project provide a conversion tool with > the release that uses the properties style. I have 2 juicy projects > I can test such a tool on and I'm sure there are others who would > be willing to help with testing that. ... > Another interesting question: Can a script aid in the conversion of > Webware, or is it better to just go line by line with the > occasional search and replace? > > .response() --> .response > ._response --> .response
Alot of the conversions will be identical in the WebKit code and the servlet code so it would make sense to write a converter tool that could handle both. It should be able to do a dry/debug run before doing the actual conversion. For each file it would print each affected line before and after the conversion, so you can verify it's working properly. Speed's not an issue so you could just create a list of regexs and their substitutions then loop through every line searching for matches and doing all the conversions on the current line before moving on. That should easier to debug than doing a global find and replace. If we go ahead with this, it would make sense to use this transition to weed out any methods/properties that shouldn't be there, such as the methods of 'HTTPRequest' that assume too much about the url-decoding scheme. _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
