You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2008/06/25 07:12:41 UTC
svn commit: r671432 - in /velocity/tools/trunk/xdocs: site.dvsl upgrading.xml
Author: nbubna
Date: Tue Jun 24 22:12:41 2008
New Revision: 671432
URL: http://svn.apache.org/viewvc?rev=671432&view=rev
Log:
nitpicks and tweaks
Modified:
velocity/tools/trunk/xdocs/site.dvsl
velocity/tools/trunk/xdocs/upgrading.xml
Modified: velocity/tools/trunk/xdocs/site.dvsl
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/xdocs/site.dvsl?rev=671432&r1=671431&r2=671432&view=diff
==============================================================================
--- velocity/tools/trunk/xdocs/site.dvsl (original)
+++ velocity/tools/trunk/xdocs/site.dvsl Tue Jun 24 22:12:41 2008
@@ -330,23 +330,23 @@
*#
#match( 'javadoc' )##
#if( $attrib.package )
- #set( $package = $attrib.package )
- #if( !$package.startsWith('org.apache.velocity.tools') )
- #set( $package = "org.apache.velocity.tools.$package" )
- #end
+#set( $package = $attrib.package )
+#if( !$package.startsWith('org.apache.velocity.tools') )
+#set( $package = "org.apache.velocity.tools.$package" )
+#end
#else
- #set( $package = 'org.apache.velocity.tools' )
+#set( $package = 'org.apache.velocity.tools' )
#end
#set( $href = "javadoc/$package.replace('.','/')/${attrib.name}.html" )
#set( $content = "$!node.value()" )
#if( $content == '' )
- #if( $attrib.full )
- #set( $content = $package + '.' + $attrib.name )
- #else
- #set( $content = $attrib.name )
- #end
+#if( $attrib.full )
+#set( $content = $package + '.' + $attrib.name )
+#else
+#set( $content = $attrib.name )
#end
-<a href="$href">$content</a>
+#end##
+<a href="$href">$content</a>##
#end
#*
Modified: velocity/tools/trunk/xdocs/upgrading.xml
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/xdocs/upgrading.xml?rev=671432&r1=671431&r2=671432&view=diff
==============================================================================
--- velocity/tools/trunk/xdocs/upgrading.xml (original)
+++ velocity/tools/trunk/xdocs/upgrading.xml Tue Jun 24 22:12:41 2008
@@ -264,7 +264,7 @@
make a few changes to upgrade your custom
tools to do things the "Tools 2 way". Here's a few quick starts for
that, though this doesn't cover everything. More details can be
- found <a href="creatingtools.html">here</a>.
+ found in the <a href="creatingtools.html">instructions for creating tools</a>.
</p>
<p><b>Naming:</b>
The recommended practice is to give a tool to be used as
@@ -273,7 +273,7 @@
follow and learn. If you have to name a tool FooBarUtility but want
it to be <code>$foo</code> in templates, the second best thing is to
provide a
- <code>@<javadoc full="true" package="config" name="DefaultKey"/>("foo")</code>
+ <javadoc package="config" name="DefaultKey">@DefaultKey("foo")</javadoc>
annotation on the class, though this introduces a dependency on
VelocityTools. As a last resort, if you are providing tools
for a framework or otherwise can influence or control the configuration,
@@ -285,12 +285,12 @@
<p><b>Scoping:</b>
If your tool is only meant to be used in a particular scope,
it's recommended that you give the class a
- <code>@<javadoc full="true" package="config" name="ValidScope"/>(Scope.REQUEST)</code>
+ <javadoc package="config" name="ValidScope">@ValidScope(Scope.REQUEST)</javadoc>
annotation as well. If you only want to ban a particular scope and
allow all others, you could provide a
- <code>@<javadoc full="true" package="config" name="InvalidScope"/>(Scope.APPLICATION)</code>
+ <javadoc package="config" name="InvalidScope">@InvalidScope(Scope.APPLICATION)</javadoc>
annotation on the class. The
- <code>org.apache.velocity.tools.Scope</code> class provides constants for
+ <code><javadoc name="Scope"/></code> class provides constants for
REQUEST, SESSION, and APPLICATION. Other scopes are now
theoretically possible, but only a little work and no testing has
been done there at this point.