good point.

we have MPIR-80 that should exactly document this, but the proposed 
implementation wasn't accepted.
Time to try to implement this feature, IMHO

Le jeudi 01 juillet 2010, Dennis Lundberg a écrit :
> Now that we are starting to use Java 5 code, we should probably document
> somewhere on the site that this component requires Java 5.
> 
> There is a prerequisite for Maven 2.2.1 in the POM, but for shared
> components that info doesn't show up anywhere on the generated site.
> 
> On 2010-06-30 23:13, hbout...@apache.org wrote:
> > Author: hboutemy
> > Date: Wed Jun 30 21:13:06 2010
> > New Revision: 959435
> > 
> > URL: http://svn.apache.org/viewvc?rev=959435&view=rev
> > Log:
> > use StringBuilder instead of String +=
> > 
> > Modified:
> >     maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/d
> >     oxia/tools/DefaultSiteTool.java
> > 
> > Modified:
> > maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxi
> > a/tools/DefaultSiteTool.java URL:
> > http://svn.apache.org/viewvc/maven/shared/trunk/maven-doxia-tools/src/ma
> > in/java/org/apache/maven/doxia/tools/DefaultSiteTool.java?rev=959435&r1=9
> > 59434&r2=959435&view=diff
> > ========================================================================
> > ====== ---
> > maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxi
> > a/tools/DefaultSiteTool.java (original) +++
> > maven/shared/trunk/maven-doxia-tools/src/main/java/org/apache/maven/doxi
> > a/tools/DefaultSiteTool.java Wed Jun 30 21:13:06 2010 @@ -356,43 +356,43
> > @@ public class DefaultSiteTool
> > 
> >              toTokeniser.nextToken();
> >          
> >          }
> > 
> > -        String relativePath = "";
> > +        StringBuilder relativePath = new StringBuilder();
> > 
> >          // add back refs for the rest of from location.
> >          while ( fromTokeniser.hasMoreTokens() )
> >          {
> >          
> >              fromTokeniser.nextToken();
> > 
> > -            relativePath += "..";
> > +            relativePath.append( ".." );
> > 
> >              if ( fromTokeniser.hasMoreTokens() )
> >              {
> > 
> > -                relativePath += File.separatorChar;
> > +                relativePath.append( File.separatorChar );
> > 
> >              }
> >          
> >          }
> >          
> >          if ( relativePath.length() != 0 && toTokeniser.hasMoreTokens() )
> >          {
> > 
> > -            relativePath += File.separatorChar;
> > +            relativePath.append( File.separatorChar );
> > 
> >          }
> >          
> >          // add fwd fills for whatever's left of to.
> >          while ( toTokeniser.hasMoreTokens() )
> >          {
> > 
> > -            relativePath += toTokeniser.nextToken();
> > +            relativePath.append( toTokeniser.nextToken() );
> > 
> >              if ( toTokeniser.hasMoreTokens() )
> >              {
> > 
> > -                relativePath += File.separatorChar;
> > +                relativePath.append( File.separatorChar );
> > 
> >              }
> >          
> >          }
> > 
> > -        if ( !relativePath.equals( to ) )
> > +        if ( getLogger().isDebugEnabled() && !relativePath.equals( to )
> > )
> > 
> >          {
> >          
> >              getLogger().debug( "Mapped url: " + to + " to relative path:
> >              " + relativePath );
> >          
> >          }
> > 
> > -        return relativePath;
> > +        return relativePath.toString();
> > 
> >      }
> >      
> >      /** {...@inheritdoc} */


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

Reply via email to