You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by br...@apache.org on 2003/09/01 07:18:04 UTC

cvs commit: maven/src/java/org/apache/maven/jelly/tags/maven MakeRelativePathTag.java

brett       2003/08/31 22:18:04

  Modified:    src/java/org/apache/maven/jelly/tags/maven
                        MakeRelativePathTag.java
  Log:
  must change both separators. Lets hope there aren't any bizarre ones out there.
  
  Revision  Changes    Path
  1.4       +1 -1      maven/src/java/org/apache/maven/jelly/tags/maven/MakeRelativePathTag.java
  
  Index: MakeRelativePathTag.java
  ===================================================================
  RCS file: /home/cvs/maven/src/java/org/apache/maven/jelly/tags/maven/MakeRelativePathTag.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MakeRelativePathTag.java	31 Aug 2003 07:33:05 -0000	1.3
  +++ MakeRelativePathTag.java	1 Sep 2003 05:18:04 -0000	1.4
  @@ -136,7 +136,7 @@
               if ( separator != null )
               {
                   StringBuffer buf = new StringBuffer();
  -                StringTokenizer tok = new StringTokenizer( canonicalPath, File.separator );
  +                StringTokenizer tok = new StringTokenizer( canonicalPath, "/\\" );
                   while ( tok.hasMoreTokens() ) 
                   {
                       buf.append( tok.nextToken() );
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org