Created
November 22, 2011 19:39
-
-
Save simonetripodi/1386681 to your computer and use it in GitHub Desktop.
no_eval.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: src/main/resources/META-INF/maven/site.vm | |
=================================================================== | |
--- src/main/resources/META-INF/maven/site.vm (revision 1203986) | |
+++ src/main/resources/META-INF/maven/site.vm (working copy) | |
@@ -531,7 +531,9 @@ | |
#set ( $head = $StringUtils.replace( $item.toString(), $documentHeader, "" ) ) | |
#end | |
- $StringUtils.replace( $head, '@relativePath@', ${relativePath} ) | |
+ ## $StringUtils.replace( $head, '@relativePath@', ${relativePath} ) | |
+ <!-- $head --> | |
+ #evaluate( $head ) | |
#end | |
#end | |
@@ -704,7 +706,9 @@ | |
#if ( $decoration.body.footer ) | |
#foreach( $item in $decoration.body.footer.getChildren() ) | |
#set ( $foot = $item.toString().trim() ) | |
- $StringUtils.replace( $foot, '@project.name@', ${project.name} ) | |
+ ## $StringUtils.replace( $foot, '@project.name@', ${project.name} ) | |
+ <!-- $foot --> | |
+ $render.eval( $ctx, $foot ) | |
#end | |
#end | |
#if ( !$sideBarEnabled ) | |
Index: src/site/site.xml | |
=================================================================== | |
--- src/site/site.xml (revision 1202763) | |
+++ src/site/site.xml (working copy) | |
@@ -19,7 +19,10 @@ | |
under the License. | |
--> | |
-<project xmlns="http://maven.apache.org/DECORATION/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd"> | |
+<project xmlns="http://maven.apache.org/DECORATION/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
+ xsi:schemaLocation="http://maven.apache.org/DECORATION/1.1.0 http://maven.apache.org/xsd/decoration-1.1.0.xsd" | |
+ name="Apache Maven Fluido-Skin"> | |
+ | |
<bannerLeft> | |
<name>${project.name}</name> | |
</bannerLeft> | |
@@ -50,5 +53,9 @@ | |
<menu ref="reports"/> | |
+ <footer> | |
+ <div class="row">Apache Maven, Apache $project.name, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation. | |
+ All other marks mentioned may be trademarks or registered trademarks of their respective owners.</div> | |
+ </footer> | |
</body> | |
</project> | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment