mirror of https://github.com/apache/maven.git
MNG-1095: handle locale images in the maven-site.vm
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@295115 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c66610a6e4
commit
fc1cf58818
|
@ -10,6 +10,10 @@
|
||||||
|
|
||||||
#if( $e.getChild( "src" ) )
|
#if( $e.getChild( "src" ) )
|
||||||
#set ( $src = $e.getChild( "src" ).getValue() )
|
#set ( $src = $e.getChild( "src" ).getValue() )
|
||||||
|
#if ( ! ( $src.toLowerCase().startsWith("http") || $src.toLowerCase().startsWith("https") ) )
|
||||||
|
#set ( $src = $PathTool.calculateLink( $src, $relativePath ) )
|
||||||
|
#set ( $src = $src.replaceAll( "\\", "/" ) )
|
||||||
|
#end
|
||||||
#if ( $e.getChild( "alt" ) )
|
#if ( $e.getChild( "alt" ) )
|
||||||
#set ( $alt = $e.getChild( "alt" ).getValue() )
|
#set ( $alt = $e.getChild( "alt" ).getValue() )
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in New Issue