You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by vs...@apache.org on 2005/08/26 22:40:19 UTC
svn commit: r240337 -
/maven/components/trunk/maven-plugins/maven-site-plugin/src/main/resources/org/apache/maven/doxia/maven-site.vm
Author: vsiveton
Date: Fri Aug 26 13:40:17 2005
New Revision: 240337
URL: http://svn.apache.org/viewcvs?rev=240337&view=rev
Log:
Added a test in the banner macro to remove Velocity error (RHS of #set statement is null. Context will not be modified....)
Modified:
maven/components/trunk/maven-plugins/maven-site-plugin/src/main/resources/org/apache/maven/doxia/maven-site.vm
Modified: maven/components/trunk/maven-plugins/maven-site-plugin/src/main/resources/org/apache/maven/doxia/maven-site.vm
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-plugins/maven-site-plugin/src/main/resources/org/apache/maven/doxia/maven-site.vm?rev=240337&r1=240336&r2=240337&view=diff
==============================================================================
--- maven/components/trunk/maven-plugins/maven-site-plugin/src/main/resources/org/apache/maven/doxia/maven-site.vm (original)
+++ maven/components/trunk/maven-plugins/maven-site-plugin/src/main/resources/org/apache/maven/doxia/maven-site.vm Fri Aug 26 13:40:17 2005
@@ -1,4 +1,5 @@
#macro ( banner $id )
+ #if ( $siteDescriptor.getChild( $id ) )
#set ( $e = $siteDescriptor.getChild( $id ) )
#if( $e.getChild( "href" ) )
#set ( $link = $e.getChild( "href" ).getValue() )
@@ -24,7 +25,7 @@
#else
</span>
#end
-
+ #end
#end
#macro ( links )
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org