You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by Jon Scott Stevens <jo...@latchkey.com> on 2002/02/24 21:02:54 UTC
Re: cvs commit:
jakarta-turbine-maven/src/java/org/apache/maven/jrcs/rcs Archive.java
Why isn't this ' instead of ":
'$' + "Header" + '$'
??????
-jon
on 2/24/02 5:52 AM, "sbailliez@apache.org" <sb...@apache.org> wrote:
> sbailliez 02/02/24 05:52:28
>
> Modified: src/java/org/apache/maven/jrcs/rcs Archive.java
> Log:
> Fixed typo about 'RCSFile' instead of 'RCSfile'.
> I don't understand how this part works about the
> substitution since the sequential substitutes in the loop
> actually never use the result of the preceding substitute call.
>
> Revision Changes Path
> 1.6 +1 -1
> jakarta-turbine-maven/src/java/org/apache/maven/jrcs/rcs/Archive.java
>
> Index: Archive.java
> ===================================================================
> RCS file:
> /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/jrcs/rcs/Archive.jav
> a,v
> retrieving revision 1.5
> retrieving revision 1.6
> diff -u -r1.5 -r1.6
> --- Archive.java 23 Feb 2002 13:48:35 -0000 1.5
> +++ Archive.java 24 Feb 2002 13:52:28 -0000 1.6
> @@ -832,7 +832,7 @@
> result[i] = Id_re.substituteAll(text[i], "$" + "Id" + "$");
> result[i] = Header_re.substituteAll(text[i], "$" + "Header" +
> "$");
> result[i] = Source_re.substituteAll(text[i], "$" + "Source" +
> "$");
> - result[i] = RCSfile_re.substituteAll(text[i], "$" + "RCSFile" +
> "$");
> + result[i] = RCSfile_re.substituteAll(text[i], "$" + "RCSfile" +
> "$");
> result[i] = Revision_re.substituteAll(text[i], "$" + "Revision" +
> "$");
> result[i] = Date_re.substituteAll(text[i], "$" + "Date" + "$");
> result[i] = Author_re.substituteAll(text[i], "$" + "Author" +
> "$");
>
>
>
>
> --
> To unsubscribe, e-mail: <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
--
Standard rules apply: Ask any questions, and you get the job. ;-)
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: cvs commit:jakarta-turbine-maven/src/java/org/apache/maven/jrcs/rcs Archive.java
Posted by Juancarlo Anez <ju...@suigeneris.org>.
Jon,
> Why isn't this ' instead of ":
>
> '$' + "Header" + '$'
>
> ??????
Why not just "$Header$" ???
I don't know. It looks as the reult of a quick copy&paste&replace.
Juanco
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>