velocity-1.7/ 0000755 0001750 0001750 00000000000 11675166253 013113 5 ustar moeller moeller velocity-1.7/build/ 0000755 0001750 0001750 00000000000 11675166243 014211 5 ustar moeller moeller velocity-1.7/build/download.xml 0000644 0001750 0001750 00000017751 11101415132 016527 0 ustar moeller moeller
velocity-1.7/build/xsl/ 0000755 0001750 0001750 00000000000 11675166242 015016 5 ustar moeller moeller velocity-1.7/build/xsl/xml2pdf.xsl 0000644 0001750 0001750 00000030404 10513464370 017114 0 ustar moeller moeller
Velocity User's Guide - pg
Velocity
Content
·)
...
velocity-1.7/build/xsl/xml2xml.xsl 0000644 0001750 0001750 00000003167 10513464370 017151 0 ustar moeller moeller
velocity-1.7/build/findbugs-exclude.xml 0000755 0001750 0001750 00000011140 11122245113 020140 0 ustar moeller moeller
velocity-1.7/build/build.properties 0000644 0001750 0001750 00000040007 11470267434 017424 0 ustar moeller moeller # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
# This file is used by build.xml and testcases.xml
#
# Global defaults
name= Velocity
project= velocity
version= 1.7
final.name= ${project}-${version}
# compile switches
debug= on
optimize= on
deprecation= off
# Needs to be configured with system location of javacc for parser task
javacc.home= *unset*
velocity.build.dir= build
build.dir= ${velocity.dir}/bin
# The source tree runs through a filter copy task to
# allow substitution of version, date etc. and will
# end up in build.src
build.src= ${build.dir}/src
build.lib= ${build.dir}/lib
build.test.src= ${build.dir}/test-src
build.test.lib= ${build.dir}/test-lib
build.dest= ${build.dir}/classes
build.deps= ${build.dir}/deps
build.test.dest= ${build.dir}/test-classes
build.javadoc= ${build.dir}/apidocs
build.test= ${build.dir}/test
build.test.reports= ${build.dir}/test-reports
build.docs= ${build.dir}/docs
# Various local pathes in the distribution
src.java.dir= ${velocity.dir}/src/java
src.parser.dir = ${velocity.dir}/src/parser
test.java.dir= ${velocity.dir}/src/test
test.dir= ${velocity.dir}/test
example.dir= ${velocity.dir}/examples
xdocs.dir= ${velocity.dir}/xdocs
# @TODO Move parser build out of the tree.
build.parser= ${src.java.dir}/org/apache/velocity/runtime/parser
# Running the tests
test.haltonerror= true
test.haltonfailure= true
# Needs to be configured with system location of Bundlor for bundlor task
# If you wish to skip this, set no.osgi=true (DO NOT SKIP FOR RELEASES)
bundlor.home=*unset*
# Needs to be configured with system location of findbugs for findbugs task
findbugs.home=*unset*
# Needs to be configured with system location of PMD for pmd task
pmd.home=*unset*
# Building the distribution
dist.root= ${build.dir}/dist
dist.dir= ${dist.root}/${final.name}
# distribution properties
publish.server=people.apache.org
publish.dir=~/public_html/velocity/engine/${version}
# required Java version for building the distribution (with "ant release")
# should be major distribution (e.g. 1.4) will match property ${ant.java.version}
dist.required.java.version = 1.4
# Set to "project.xml" for distribution and "project-website.xml"
# when building docs for web site
docs.project= project.xml
# Set to Sun Javadocs
javadocs.ref.jsdk= http://java.sun.com/j2se/1.4.2/docs/api/
# #######################################################################
#
# Downloading jars from ibiblio repository
#
# #######################################################################
# The default behaviour is to download dependency jars only when
# they are not already present.
# Set skip.jar.loading to true to never download any dependency jar,
# or force.jar.loading to true to always download all dependency jars.
skip.jar.loading= false
force.jar.loading= false
#
# Settings for the proxy to use for download. Change this if you must
# use a proxy from your host. If the proxy.host property is unset, no
# proxy is used.
proxy.host=
proxy.port= 80
#
# We download directly from the ibiblio maven repository
repo.m1.url= http://www.ibiblio.org/maven
repo.m2.url=http://www.ibiblio.org/maven2
#
# Jars to be downloaded
jar.antlr.version= 2.7.5
jar.avalon-logkit.version= 2.1
jar.commons-collections.version= 3.2.1
jar.commons-lang.version= 2.4
jar.commons-logging.version= 1.1
jar.jdom.version= 1.0
jar.log4j.version= 1.2.12
jar.oro.version= 2.0.8
jar.servletapi.version= 2.3
jar.werken-xpath.version= 0.9.4
jar.hsqldb.version= 1.7.1
jar.junit.version= 3.8.1
jar.maven.ant.version=2.0.9
########################################################################
# Maven settings
maven.pom=${velocity.dir}/pom.xml
maven.build.dir= ${build.dir}/maven
wagon-ssh.version=1.0-beta-2
# POM distributionManagement is used if this is not set
#maven.remote.repository=
########################################################################
# Gump wants to override these names, so make
# it configurable...
#
jar.oro.name= oro
jar.commons-collections.name= commons-collections
jar.commons-lang.name = commons-lang
jar.oro.dir= ${build.lib}
jar.commons-collections.dir= ${build.lib}
jar.commons-lang.dir= ${build.lib}
#
########################################################################
javac.target=1.4
javac.source=1.4
########################################################################
# OSGi stuff
import=com.werken.xpath;resolution:=optional,\
javax.naming,\
javax.servlet;resolution:=optional,\
javax.servlet.http;resolution:=optional,\
javax.sql,\
org.apache.commons.collections,\
org.apache.commons.collections.map,\
org.apache.commons.lang,\
org.apache.commons.lang.builder,\
org.apache.commons.lang.text,\
org.apache.commons.logging;resolution:=optional,\
org.apache.log;resolution:=optional,\
org.apache.log.format;resolution:=optional,\
org.apache.log.output.io;resolution:=optional,\
org.apache.log4j;resolution:=optional,\
org.apache.oro.text.perl;resolution:=optional,\
org.apache.tools.ant;resolution:=optional,\
org.apache.tools.ant.taskdefs;resolution:=optional,\
org.jdom;resolution:=optional,\
org.jdom.input;resolution:=optional,\
org.jdom.output;resolution:=optional,\
org.xml.sax
dep.import=com.werken.xpath;resolution:=optional,\
javax.naming,\
javax.servlet;resolution:=optional,\
javax.servlet.http;resolution:=optional,\
javax.sql,\
org.apache.commons.logging;resolution:=optional,\
org.apache.log;resolution:=optional,\
org.apache.log.format;resolution:=optional,\
org.apache.log.output.io;resolution:=optional,\
org.apache.log4j;resolution:=optional,\
org.apache.tools.ant;resolution:=optional,\
org.apache.tools.ant.taskdefs;resolution:=optional,\
org.jdom;resolution:=optional,\
org.jdom.input;resolution:=optional,\
org.jdom.output;resolution:=optional,\
org.xml.sax
export=org.apache.velocity;uses:="org.apache.velocity.context,\
org.apache.velocity.exception,\
org.apache.velocity.runtime.resource",\
org.apache.velocity.anakia;uses:="com.werken.xpath,\
org.apache.tools.ant,\
org.apache.tools.ant.taskdefs,\
org.jdom,\
org.jdom.output",\
org.apache.velocity.app;uses:="org.apache.commons.collections,\
org.apache.velocity,\
org.apache.velocity.context,\
org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.log",\
org.apache.velocity.app.event;uses:="org.apache.velocity.context,\
org.apache.velocity.runtime,\
org.apache.velocity.util.introspection",\
org.apache.velocity.app.event.implement;uses:="org.apache.velocity.app.event,\
org.apache.velocity.context,\
org.apache.velocity.runtime,\
org.apache.velocity.util,\
org.apache.velocity.util.introspection",\
org.apache.velocity.app.tools;uses:="org.apache.velocity.context",\
org.apache.velocity.context;uses:="org.apache.velocity.app.event,\
org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.parser.node,\
org.apache.velocity.runtime.resource,\
org.apache.velocity.util.introspection",\
org.apache.velocity.convert,\
org.apache.velocity.exception;uses:="org.apache.velocity.runtime.parser,\
org.apache.velocity.util.introspection",\
org.apache.velocity.io,\
org.apache.velocity.runtime;uses:="org.apache.commons.collections,\
org.apache.velocity,\
org.apache.velocity.app.event,\
org.apache.velocity.context,\
org.apache.velocity.exception,\
org.apache.velocity.runtime.directive,\
org.apache.velocity.runtime.log,\
org.apache.velocity.runtime.parser,\
org.apache.velocity.runtime.parser.node,\
org.apache.velocity.runtime.resource,\
org.apache.velocity.util.introspection",\
org.apache.velocity.runtime.defaults,\
org.apache.velocity.runtime.directive;uses:="org.apache.velocity.context,\
org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.parser,\
org.apache.velocity.runtime.parser.node",\
org.apache.velocity.runtime.log;uses:="org.apache.log.format,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.directive,\
org.apache.velocity.runtime.parser.node,\
org.apache.velocity.util.introspection",\
org.apache.velocity.runtime.parser;uses:="org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.directive,\
org.apache.velocity.runtime.parser.node",\
org.apache.velocity.runtime.parser.node;uses:="org.apache.commons.lang.text,\
org.apache.velocity.context,\
org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.log,\
org.apache.velocity.runtime.parser,\
org.apache.velocity.util.introspection",\
org.apache.velocity.runtime.resource;uses:="org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.resource.loader",\
org.apache.velocity.runtime.resource.loader;uses:="javax.sql,\
org.apache.commons.collections,\
org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.resource,\
org.apache.velocity.runtime.resource.util",\
org.apache.velocity.runtime.resource.util,\
org.apache.velocity.runtime.visitor;uses:="org.apache.velocity.context,\
org.apache.velocity.runtime.parser.node",\
org.apache.velocity.servlet;uses:="javax.servlet,\
javax.servlet.http,\
org.apache.velocity,\
org.apache.velocity.context,\
org.apache.velocity.exception",\
org.apache.velocity.texen;uses:="org.apache.velocity,\
org.apache.velocity.app,\
org.apache.velocity.context",\
org.apache.velocity.texen.ant;uses:="org.apache.commons.collections,\
org.apache.tools.ant,\
org.apache.velocity.context",\
org.apache.velocity.texen.defaults,\
org.apache.velocity.texen.util,\
org.apache.velocity.util;uses:="org.apache.velocity.context,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.parser.node,\
org.apache.velocity.util.introspection",\
org.apache.velocity.util.introspection;uses:="org.apache.velocity.runtime,\
org.apache.velocity.runtime.log,\
org.apache.velocity.runtime.parser.node,\
org.apache.velocity.util"
dep.export=org.apache.commons.collections,\
org.apache.commons.collections.iterators;uses:="org.apache.commons.collections",\
org.apache.commons.collections.map;uses:="org.apache.commons.collections",\
org.apache.commons.lang;uses:="org.apache.commons.lang.exception",\
org.apache.commons.lang.builder,\
org.apache.commons.lang.enum,\
org.apache.commons.lang.enums,\
org.apache.commons.lang.exception,\
org.apache.commons.lang.math,\
org.apache.commons.lang.mutable,\
org.apache.commons.lang.text,\
org.apache.commons.lang.time,\
org.apache.oro.io;uses:="org.apache.oro.text,\
org.apache.oro.text.regex",\
org.apache.oro.text;uses:="org.apache.oro.text.regex,\
org.apache.oro.util",\
org.apache.oro.text.awk;uses:="org.apache.oro.text.regex",\
org.apache.oro.text.perl;uses:="org.apache.oro.text,\
org.apache.oro.text.regex",\
org.apache.oro.text.regex,\
org.apache.oro.util,\
org.apache.velocity;uses:="org.apache.velocity.context,\
org.apache.velocity.exception,\
org.apache.velocity.runtime.resource",\
org.apache.velocity.anakia;uses:="com.werken.xpath,\
org.apache.tools.ant,\
org.apache.tools.ant.taskdefs,\
org.jdom,\
org.jdom.output",\
org.apache.velocity.app;uses:="org.apache.commons.collections,\
org.apache.velocity,\
org.apache.velocity.context,\
org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.log",\
org.apache.velocity.app.event;uses:="org.apache.velocity.context,\
org.apache.velocity.runtime,\
org.apache.velocity.util.introspection",\
org.apache.velocity.app.event.implement;uses:="org.apache.velocity.app.event,\
org.apache.velocity.context,\
org.apache.velocity.runtime,\
org.apache.velocity.util,\
org.apache.velocity.util.introspection",\
org.apache.velocity.app.tools;uses:="org.apache.velocity.context",\
org.apache.velocity.context;uses:="org.apache.velocity.app.event,\
org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.parser.node,\
org.apache.velocity.runtime.resource,\
org.apache.velocity.util.introspection",\
org.apache.velocity.convert,\
org.apache.velocity.exception;uses:="org.apache.velocity.runtime.parser,\
org.apache.velocity.util.introspection",\
org.apache.velocity.io,\
org.apache.velocity.runtime;uses:="org.apache.commons.collections,\
org.apache.velocity,\
org.apache.velocity.app.event,\
org.apache.velocity.context,\
org.apache.velocity.exception,\
org.apache.velocity.runtime.directive,\
org.apache.velocity.runtime.log,\
org.apache.velocity.runtime.parser,\
org.apache.velocity.runtime.parser.node,\
org.apache.velocity.runtime.resource,\
org.apache.velocity.util.introspection",\
org.apache.velocity.runtime.defaults,\
org.apache.velocity.runtime.directive;uses:="org.apache.velocity.context,\
org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.parser,\
org.apache.velocity.runtime.parser.node",\
org.apache.velocity.runtime.log;uses:="org.apache.log.format,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.directive,\
org.apache.velocity.runtime.parser.node,\
org.apache.velocity.util.introspection",\
org.apache.velocity.runtime.parser;uses:="org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.directive,\
org.apache.velocity.runtime.parser.node",\
org.apache.velocity.runtime.parser.node;uses:="org.apache.commons.lang.text,\
org.apache.velocity.context,\
org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.log,\
org.apache.velocity.runtime.parser,\
org.apache.velocity.util.introspection",\
org.apache.velocity.runtime.resource;uses:="org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.resource.loader",\
org.apache.velocity.runtime.resource.loader;uses:="javax.sql,\
org.apache.commons.collections,\
org.apache.velocity.exception,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.resource,\
org.apache.velocity.runtime.resource.util",\
org.apache.velocity.runtime.resource.util,\
org.apache.velocity.runtime.visitor;uses:="org.apache.velocity.context,\
org.apache.velocity.runtime.parser.node",\
org.apache.velocity.servlet;uses:="javax.servlet,\
javax.servlet.http,\
org.apache.velocity,\
org.apache.velocity.context,\
org.apache.velocity.exception",\
org.apache.velocity.texen;uses:="org.apache.velocity,\
org.apache.velocity.app,\
org.apache.velocity.context",\
org.apache.velocity.texen.ant;uses:="org.apache.commons.collections,\
org.apache.tools.ant,\
org.apache.velocity.context",\
org.apache.velocity.texen.defaults,\
org.apache.velocity.texen.util,\
org.apache.velocity.util;uses:="org.apache.velocity.context,\
org.apache.velocity.runtime,\
org.apache.velocity.runtime.parser.node,\
org.apache.velocity.util.introspection",\
org.apache.velocity.util.introspection;uses:="org.apache.velocity.runtime,\
org.apache.velocity.runtime.log,\
org.apache.velocity.runtime.parser.node,\
org.apache.velocity.util"
velocity-1.7/build/testcases.xml 0000644 0001750 0001750 00000016254 10513464370 016731 0 ustar moeller moeller
velocity-1.7/build/build.xml 0000644 0001750 0001750 00000160320 11355456247 016035 0 ustar moeller moeller
****************************************************************************
**
** help is no longer supported. Please run 'ant -projecthelp'
**
***************************************************************************
Global settings:
java.home = ${java.home}
user.home = ${user.home}
java.class.path = ${java.class.path}
Velocity settings:
Version: ${version}
Debug: ${debug}
Optimize: ${optimize}
Deprecation: ${deprecation}
Target settings (relative to build tree root):
Velocity Source: ${build.src}
Velocity Classes: ${build.dest}
Velocity API Docs: ${build.javadoc}
Velocity Docs: ${build.docs}
Velocity Test Reports: ${build.test.reports}
********************************************************
**
** The javax.sql.Datasource class has not been found on
** your classpath. This means that your newly built
** Velocity jar will not contain the JDBC based resource
** loaders. If this is a problem, please use a JDK for
** building that contains the javax.sql.Datasource class.
**
********************************************************
********************************************************
**
** The java.util.logging.Logger class has not been found on your
** classpath. This means that your newly built Velocity jar will
** not contain JDK 1.4 compatible logging code. If this is a
** problem, please use a 1.4 or newer JDK for building.
**
********************************************************
Could not run javacc:
***********************************************************
** You have not configured your JavaCC installation
** location in the javacc.home property.
***********************************************************
Could not run javacc:
***********************************************************
**
** JavaCC 3.2 or later must be installed at ${javacc.home}.
** Ant must be at least version 1.6.x.
**
***********************************************************
***********************************************************
** Creating Parser.jj and Parser.java in source tree.
**
** Note: ASTNode files generated by jjtree are
** not generated with this task. To create new ASTNode files,
** run jjtree manually then copy the relevant files into
** the runtime/parser/node directory (deleting all other
** generated files).
**
***********************************************************
This build will be made ready for use with OSGi,
so long as you configure the "bundlor.home" property.
You can download Bundlor from: http://www.springsource.org/bundlor
Or you can disable this part of the build by
setting "no.osgi" to true in your properties. (Do not do this for releases!)
This build is not be ready for use with OSGi,
unless you add the "build.osgi" property and configure
the "bundlor.home" property to point to the Bundlor resources.
You can download Bundlor from: http://www.springsource.org/bundlor
**************************************************************
** Building the examples :
** examples/app_example1 : application example
** examples/app_example2 : application example
** examples/context_example : example context implementations
** examples/logger_example : how to make an external logger
** examples/xmlapp_example : how to access XML data in a template
** examples/event_example : how to use Velocity's event handlers
**************************************************************
Deploying to ${maven.remote.repository}Deploying to Apache Maven repository
***** RELEASE INSTRUCTIONS *****
* Be sure you can answer "yes" to the following:
* Was your local code up to date and free of modifications or extra files?
* Was the version number correct in both build.properties and pom.xml?
* For a final release, the distributionManagement.site.url value
in the pom.xml should be:
scpexe://people.apache.org/www/velocity.apache.org/engine/releases/velocity-${version}
and for alpha or beta releases it should be:
scpexe://people.apache.org/www/velocity.apache.org/engine/devel/
* Do all new files have the Apache License? (use "ant rat" to double-check)
* Is ${build.src}/changes/changes.xml up to date?
Feel free to set an estimated release date for this version in that file;
it can be corrected later if the release is delayed.
* Is ${build.src}/site/apt/upgrading.apt up to date for this release?
* Is the ${velocity.dir}/README.txt up to date for this release?
* If a final release, update the "Where do I get releases?" section of
${build.dir}/xdocs/docs/index.xml
to show the latest stable version number.
* Write down the current svn revision so you don't have to look it up
later when you make the tag for this release (post-vote).
* Go to ${build.dir} and sign all the jar, zip, tar.gz and pom files
with your personal PGP key using a script like this:
#! /bin/bash
for i in *.tar.gz *.zip *jar; do
gpg --armor --output $i.asc --detach-sig $i
done
* SSH into people.apache.org and make sure that this directory exists:
${publish.dir}
* If you haven't done it before, ensure that your PGP key is appended to
/www/www.apache.org/dist/velocity/KEYS
Some instructions for that are at the top of that file.
* Call "ant publish"
* Review http://wiki.apache.org/velocity/ReleaseProcess for more details.
Could not run create distribution package:
***********************************************************
**
** In order to create a distribution package, you must be
** using Java version ${dist.required.java.version} instead
** of Java version ${java.version}
**
***********************************************************
***********************************************************
**
** Creating a distribution package. Compiling with
** Java version ${java.version}
**
***********************************************************
#######################################################
#
# Now using Anakia to transform the XML documentation
# to HTML.
#
# using project file: ${docs.project}
#
# Note: set property "docs.project" to "project.xml"
# for distribution and "project-website.xml" for
# website.
#######################################################
!!NOT READY TO PUBLISH!!
You must first execute "release" target, then sign the distribution
files with your pgp key (creating the needed '.asc'signature files).
To override this (only when uploading development snapshots not meant
for public release), add the property "release.signed=true" to your
build.properties.
You may also need to add the Jsch jar to Ant's classpath to enable the
optional 'scp' task.
Uploading distribution files from
${build.dir}
to
${username}:${password}@${publish.server}:${publish.dir}
***** RELEASE INSTRUCTIONS *****
* SSH to ${publish.server} and verify the checksums and signatures of the uploaded
files with a script like:
#!/bin/csh
foreach fn ( *.tar.gz *.zip *.jar *.pom )
echo Verifying $fn...
echo GPG signature should be "Good"
gpg --verify $fn.asc
echo MD5s should be identical
cat $fn.md5
md5 -q $fn
echo SHA1s should be identical
cat $fn.sha1
sha1 -q $fn
echo
end
* Announce the availability of an Engine ${version} test build on dev@velocity.apache.org.
* Allow a few days for people to test the test build.
* Call for a release vote on private@velocity.apache.org and dev@velocity.apache.org
* Once the release vote has passed, these files should all be copied to
/www/www.apache.org/dist/velocity/engine/${version}
and the non-dep jar, source jar, javadoc jar, pom and respective md5, sha1 and asc files should be copied into
/www/people.apache.org/repo/m2-ibiblio-rsync-repository/org/apache/velocity/velocity/${version}/
* Remove older releases of the same grade as this one (alpha, beta, final) from
/www/www.apache.org/dist/velocity/engine
* Tag the release in SVN with a command such as:
svn copy -m "Release Engine ${version}" -r [revision #] \
https://svn.apache.org/repos/asf/velocity/engine/trunk \
https://svn.apache.org/repos/asf/velocity/engine/tags/${version}
* Go to ${velocity.dir} and run "mvn site" then "mvn site:deploy"
to publish the documentation for this release on the website
* Wait a day or so for the mirrors and maven repos to sync up.
* Update the main website (velocity-site project) with the release info:
* Add this ${version} release to news.xml, download.xml, doap_engine.rdf and
the "Release status" section of index.xml
* Check those changes into SVN
* Email Henning to have him update and build the site from velocity.zones.apache.org
(or get velocity-site to work for other people besides Henning)
* Wait a few hours for the site to sync up.
* Send an announcement email from your apache.org address to all Velocity lists
and also to announce@apache.org.
* Review http://wiki.apache.org/velocity/ReleaseProcess for more details.
Could not run junit tests:
***********************************************************
**
** Ant must be at least version 1.7
**
***********************************************************
NOTE: At this time, you must add Apache RAT, Apache RAT AntTasks
Commons-Lang, Commons-Collections and Commons-CLI to Ant's lib directory
to use this.
Your RAT report is here: ${build.test.reports}/rat-report.txtWorking with FindBugs at: ${findbugs.home}Analyzing ${build.dir}/${final.name}.jar built from ${build.src}Analyzing ${build.src}...unusedcodeimportsGenerated report is at ${build.test.reports}\pmd_report.html
velocity-1.7/test/ 0000755 0001750 0001750 00000000000 11675166244 014072 5 ustar moeller moeller velocity-1.7/test/parsemacros/ 0000755 0001750 0001750 00000000000 11675166243 016410 5 ustar moeller moeller velocity-1.7/test/parsemacros/parseMacro2.vm 0000644 0001750 0001750 00000000022 10663062343 021114 0 ustar moeller moeller #foo(1) #bar(2)
velocity-1.7/test/parsemacros/parseMacro3.vm 0000644 0001750 0001750 00000000104 10673652637 021132 0 ustar moeller moeller #parse("vm_library1.vm")
#parse("vm_library2.vm")
#foo(1) #bar(2)
velocity-1.7/test/parsemacros/compare/ 0000755 0001750 0001750 00000000000 11675166243 020036 5 ustar moeller moeller velocity-1.7/test/parsemacros/compare/parseMacro1_3b.cmp 0000644 0001750 0001750 00000000006 10663062343 023264 0 ustar moeller moeller
8 6
velocity-1.7/test/parsemacros/compare/parseMacro1_4b.cmp 0000644 0001750 0001750 00000000006 10663062343 023265 0 ustar moeller moeller
8 6
velocity-1.7/test/parsemacros/compare/parseMacro1_1.cmp 0000644 0001750 0001750 00000000006 10663062343 023120 0 ustar moeller moeller
2 4
velocity-1.7/test/parsemacros/compare/parseMacro1_2.cmp 0000644 0001750 0001750 00000000006 10663062343 023121 0 ustar moeller moeller
2 4
velocity-1.7/test/parsemacros/compare/parseMacro2.cmp 0000644 0001750 0001750 00000000022 10663062343 022677 0 ustar moeller moeller #foo(1) #bar(2)
velocity-1.7/test/parsemacros/compare/parseMacro1_1b.cmp 0000644 0001750 0001750 00000000006 10663062343 023262 0 ustar moeller moeller
8 6
velocity-1.7/test/parsemacros/compare/parseMacro1_3.cmp 0000644 0001750 0001750 00000000006 10663062343 023122 0 ustar moeller moeller
2 4
velocity-1.7/test/parsemacros/compare/parseMacro3.cmp 0000644 0001750 0001750 00000000007 10673652637 022717 0 ustar moeller moeller
8 6
velocity-1.7/test/parsemacros/compare/parseMacro1_2b.cmp 0000644 0001750 0001750 00000000006 10663062343 023263 0 ustar moeller moeller
8 6
velocity-1.7/test/parsemacros/compare/parseMacro1_4.cmp 0000644 0001750 0001750 00000000006 10663062343 023123 0 ustar moeller moeller
2 4
velocity-1.7/test/parsemacros/vm_library1.vm 0000644 0001750 0001750 00000000150 10663062343 021167 0 ustar moeller moeller #macro(bar $a)
#if($a)#set($a = $a + $a)$a#end
#end
#macro(foo $a)
#if($a)#set($a = $a + 1)$a#end
#end
velocity-1.7/test/parsemacros/vm_library2.vm 0000644 0001750 0001750 00000000157 10663062343 021177 0 ustar moeller moeller #macro( bar $a)
#if($a)#set($a = $a + $a + $a)$a#end
#end
#macro( foo $a)
#if($a)#set($a = $a * 8)$a#end
#end
velocity-1.7/test/parsemacros/parseMacro1.vm 0000644 0001750 0001750 00000000047 10663062343 021122 0 ustar moeller moeller #parse($includefile)
#foo(1) #bar(2)
velocity-1.7/test/multiloader/ 0000755 0001750 0001750 00000000000 11675166243 016412 5 ustar moeller moeller velocity-1.7/test/multiloader/compare/ 0000755 0001750 0001750 00000000000 11675166243 020040 5 ustar moeller moeller velocity-1.7/test/multiloader/compare/test2.cmp 0000644 0001750 0001750 00000000047 07255707541 021604 0 ustar moeller moeller
this is a template for test1.jar
velocity-1.7/test/multiloader/compare/test3.cmp 0000644 0001750 0001750 00000000047 07300225714 021571 0 ustar moeller moeller
this is a template for test2.jar
velocity-1.7/test/multiloader/compare/path1.cmp 0000644 0001750 0001750 00000000020 07255707541 021547 0 ustar moeller moeller
I am path1.vm
velocity-1.7/test/multiloader/test1.jar 0000644 0001750 0001750 00000001126 07255514616 020150 0 ustar moeller moeller PK ‰e* META-INF/þÊ PK PK ‰e* META-INF/MANIFEST.MFóMÌËLK-.Ñ
K-*ÎÌϳR0Ô3àår.JM,IMÑuª ë(h—æ)øf&åW—¤æ+xæ%ëiòrñr PK3ù5¤D D PK
ãˆe* template/PK Ɉe* template/test1.vmãâ*ÉÈ,V ¢D…’ÔÜ‚œÄ’T…´ü" §¸ÄP/+±H¸ PK¶‚$ ' PK ‰e* META-INF/þÊ PK ‰e*3ù5¤D D = META-INF/MANIFEST.MFPK
ãˆe* à template/PK Ɉe*¶‚$ ' ê template/test1.vmPK ó M velocity-1.7/test/multiloader/test2.jar 0000644 0001750 0001750 00000001126 07300225573 020141 0 ustar moeller moeller PK ?¯* META-INF/þÊ PK PK ?¯* META-INF/MANIFEST.MFóMÌËLK-.Ñ
K-*ÎÌϳR0Ô3àår.JM,IMÑuª ë(h—æ)øf&åW—¤æ+xæ%ëiòrñr PK3ù5¤D D PK
?¯* template/PK ?¯* template/test2.vmãâ*ÉÈ,V ¢D…’ÔÜ‚œÄ’T…´ü" §¸ÄH/+±H¸ PK
µï$ ' PK ?¯* META-INF/þÊ PK ?¯*3ù5¤D D = META-INF/MANIFEST.MFPK
?¯* Ã template/PK ?¯*
µï$ ' ê template/test2.vmPK ó M velocity-1.7/test/multiloader/path1.vm 0000644 0001750 0001750 00000000347 10315733667 017777 0 ustar moeller moeller #*
@test path1.vm
This template is used for Velocity regression testing.
If you alter this template make sure you change the
corresponding comparison file so that the regression
test doesn't fail incorrectly.
*#
I am path1.vm
velocity-1.7/test/texen/ 0000755 0001750 0001750 00000000000 11675166243 015214 5 ustar moeller moeller velocity-1.7/test/texen/license.txt 0000644 0001750 0001750 00000001455 10513464370 017374 0 ustar moeller moeller /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
velocity-1.7/test/texen/service.props 0000644 0001750 0001750 00000002063 10513464370 017732 0 ustar moeller moeller baseName=Weather
package=org.apache.turbine.services.weather
name=Jason van Zyl
email=jvanzyl@apache.org
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
license.file.contents = test/texen/license.txt
# Test some properties that have be give some boolean
# values.
one = true
two = yes
three = on
four = false
five = no
six = off
velocity-1.7/test/texen/compare/ 0000755 0001750 0001750 00000000000 11675166243 016642 5 ustar moeller moeller velocity-1.7/test/texen/compare/WeatherService.java 0000644 0001750 0001750 00000002155 10513464370 022420 0 ustar moeller moeller package org.apache.turbine.services.weather;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.turbine.services.Service;
/**
*
* @author Jason van Zyl
* @occupation somnambulist
*/
public interface WeatherService extends Service
{
public static final String SERVICE_NAME = "TurbineWeatherService";
}
velocity-1.7/test/texen/compare/TurbineWeather.java 0000644 0001750 0001750 00000002543 10513464370 022431 0 ustar moeller moeller package org.apache.turbine.services.weather;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.turbine.services.TurbineServices;
/**
*
*
* @author Jason van Zyl
* @occupation somnambulist
*/
public class TurbineWeather
{
/**
* Utility method for accessing the service
* implementation
*
* @return a WeatherService implementation instance
*/
protected static WeatherService getService()
{
return (WeatherService)TurbineServices
.getInstance().getService(WeatherService.SERVICE_NAME);
}
}
velocity-1.7/test/texen/compare/book.txt 0000644 0001750 0001750 00000000462 10315733667 020337 0 ustar moeller moeller This is the book of the week:
Props retrieved using new method:
Title: Consilience: The Unity of Knowledge
Author: Edward O. Wilson
Publisher: Knopf
ISBN: 0965058305
Props retrieved using old method:
Title: Consilience: The Unity of Knowledge
Author: Edward O. Wilson
Publisher: Knopf
ISBN: 0965058305
velocity-1.7/test/texen/compare/TurbineWeatherService.java 0000644 0001750 0001750 00000002326 10513464370 023751 0 ustar moeller moeller package org.apache.turbine.services.weather;
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import org.apache.turbine.services.TurbineBaseService;
/**
*
* @author Jason van Zyl
* @occupation somnambulist
*/
public class TurbineWeatherService extends TurbineBaseService
implements WeatherService
{
/**
* Initialize the TurbineWeather Service.
*/
public void init()
{
setInit(true);
}
}
velocity-1.7/test/texen/compare/Test.txt 0000644 0001750 0001750 00000000155 10315733667 020323 0 ustar moeller moeller # These should all evaluate to true
true
true
true
# These should all evaluate to false
false
false
false
velocity-1.7/test/texen/additional.props 0000644 0001750 0001750 00000001455 10513464370 020406 0 ustar moeller moeller # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
occupation=somnambulist
velocity-1.7/test/texen/templates/ 0000755 0001750 0001750 00000000000 11675166243 017212 5 ustar moeller moeller velocity-1.7/test/texen/templates/Test.vm 0000644 0001750 0001750 00000000156 10315733667 020477 0 ustar moeller moeller # These should all evaluate to true
$one
$two
$three
# These should all evaluate to false
$four
$five
$six
velocity-1.7/test/texen/templates/Control.vm 0000644 0001750 0001750 00000001647 10315733667 021206 0 ustar moeller moeller #set ( $sourceFile = "Turbine${baseName}Service.java" )
$generator.parse("ServiceImplementation.vm",$sourceFile)
#set ( $sourceFile = "${baseName}Service.java" )
$generator.parse("ServiceInterface.vm",$sourceFile)
#set ( $sourceFile = "Turbine${baseName}.java" )
$generator.parse("ServiceStaticHelper.vm",$sourceFile)
#set ( $sourceFile = "Test.txt" )
$generator.parse("Test.vm",$sourceFile)
#set ( $props = $properties.load("test.props") )
## This is to test a properties file that was once taken from
## the file system but is now taken from a JAR. We have to
## deprecate the use of $generator.TemplatePath if we want
## templates to work the same way from JARs and the file
## system. I have a hack in PropsUtil right now to deal
## with it.
#set ( $props2 = $properties.load("$generator.TemplatePath/test.props") )
$generator.TemplatePath/test.props
#set ( $sourceFile = "book.txt" )
$generator.parse("book.vm",$sourceFile)
velocity-1.7/test/texen/templates/test.props 0000644 0001750 0001750 00000001577 10513464370 021260 0 ustar moeller moeller # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
author = Edward O. Wilson
title = Consilience: The Unity of Knowledge
publisher = Knopf
isbn = 0965058305
velocity-1.7/test/texen/templates/ServiceInterface.vm 0000644 0001750 0001750 00000000440 10315733667 022775 0 ustar moeller moeller package $package;
$license
import org.apache.turbine.services.Service;
/**
*
* @author $name
* @occupation $occupation
*/
public interface ${baseName}Service extends Service
{
public static final String SERVICE_NAME = "Turbine${baseName}Service";
}
velocity-1.7/test/texen/templates/ServiceImplementation.vm 0000644 0001750 0001750 00000000615 10315733667 024066 0 ustar moeller moeller package $package;
$license
import org.apache.turbine.services.TurbineBaseService;
/**
*
* @author $name
* @occupation $occupation
*/
public class Turbine${baseName}Service extends TurbineBaseService
implements ${baseName}Service
{
/**
* Initialize the Turbine${baseName} Service.
*/
public void init()
{
setInit(true);
}
}
velocity-1.7/test/texen/templates/ServiceStaticHelper.vm 0000644 0001750 0001750 00000001040 10315733667 023461 0 ustar moeller moeller package $package;
$license
import org.apache.turbine.services.TurbineServices;
/**
*
*
* @author $name
* @occupation $occupation
*/
public class Turbine$baseName
{
/**
* Utility method for accessing the service
* implementation
*
* @return a ${baseName}Service implementation instance
*/
protected static ${baseName}Service getService()
{
return (${baseName}Service)TurbineServices
.getInstance().getService(${baseName}Service.SERVICE_NAME);
}
}
velocity-1.7/test/texen/templates/book.vm 0000644 0001750 0001750 00000000522 10315733667 020507 0 ustar moeller moeller This is the book of the week:
Props retrieved using new method:
Title: $props.get("title")
Author: $props.get("author")
Publisher: $props.get("publisher")
ISBN: $props.get("isbn")
Props retrieved using old method:
Title: $props2.get("title")
Author: $props2.get("author")
Publisher: $props2.get("publisher")
ISBN: $props2.get("isbn")
velocity-1.7/test/anakia/ 0000755 0001750 0001750 00000000000 11675166243 015315 5 ustar moeller moeller velocity-1.7/test/anakia/xdocs/ 0000755 0001750 0001750 00000000000 11675166243 016435 5 ustar moeller moeller velocity-1.7/test/anakia/xdocs/index.xml 0000644 0001750 0001750 00000003161 10513464370 020257 0 ustar moeller moeller
Jon S. StevensThe Jakarta Project
velocity-1.7/test/anakia/xdocs/stylesheets/ 0000755 0001750 0001750 00000000000 11675166243 021011 5 ustar moeller moeller velocity-1.7/test/anakia/xdocs/stylesheets/project.xml 0000644 0001750 0001750 00000002260 10513464370 023171 0 ustar moeller moeller
Jakarta Site
velocity-1.7/test/anakia/xdocs/stylesheets/site.vsl 0000644 0001750 0001750 00000007354 10513464370 022504 0 ustar moeller moeller ## Licensed to the Apache Software Foundation (ASF) under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. The ASF licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this file except in compliance
## with the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing,
## software distributed under the License is distributed on an
## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
## KIND, either express or implied. See the License for the
## specific language governing permissions and limitations
## under the License.
## Defined variables
#set ($bodybg = "#ffffff")
#set ($bodyfg = "#000000")
#set ($bodylink = "#525D76")
#set ($bannerbg = "#525D76")
#set ($bannerfg = "#ffffff")
#set ($tablethbg = "#039acc")
#set ($tabletdbg = "#a0ddf0")
#document()
## This is where the macro's live
#macro ( makeProject )
#set ($menus = $xpath.applyTo("body/menu", $project))
#foreach ( $menu in $menus )
$menu.getAttributeValue("name")
#foreach ( $item in $menu.getChildren() )
#set ($name = $item.getAttributeValue("name"))
#end
velocity-1.7/test/anakia/xdocs/stylesheets/customContext.xml 0000644 0001750 0001750 00000002173 10513464370 024405 0 ustar moeller moeller
velocity-1.7/test/anakia/xdocs/stylesheets/site_contexts.vsl 0000644 0001750 0001750 00000007563 10513464370 024435 0 ustar moeller moeller ## Licensed to the Apache Software Foundation (ASF) under one
## or more contributor license agreements. See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership. The ASF licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this file except in compliance
## with the License. You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing,
## software distributed under the License is distributed on an
## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
## KIND, either express or implied. See the License for the
## specific language governing permissions and limitations
## under the License.
## Defined variables
#set ($bodybg = "#ffffff")
#set ($bodyfg = "#000000")
#set ($bodylink = "#525D76")
#set ($bannerbg = "#525D76")
#set ($bannerfg = "#ffffff")
#set ($tablethbg = "#039acc")
#set ($tabletdbg = "#a0ddf0")
#document()
## This is where the macro's live
#macro ( makeProject )
#set ($menus = $xpath.applyTo("body/menu", $project))
#foreach ( $menu in $menus )
$menu.getAttributeValue("name")
#foreach ( $item in $menu.getChildren() )
#set ($name = $item.getAttributeValue("name"))
velocity-1.7/test/anakia/velocity.properties 0000644 0001750 0001750 00000001425 10513464370 021263 0 ustar moeller moeller # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
velocity-1.7/test/stop/ 0000755 0001750 0001750 00000000000 11675166243 015056 5 ustar moeller moeller velocity-1.7/test/stop/stop1.vm 0000644 0001750 0001750 00000000056 11130150630 016444 0 ustar moeller moeller Text 1#stop
Text 2 ## We should not see this
velocity-1.7/test/stop/stop2.vm 0000644 0001750 0001750 00000000026 11130150630 016442 0 ustar moeller moeller Text123#test1()
stuff
velocity-1.7/test/stop/stop3.vm 0000644 0001750 0001750 00000000035 11130150630 016443 0 ustar moeller moeller text1#parse("parse.vm")text2
velocity-1.7/test/stop/parse.vm 0000644 0001750 0001750 00000000022 11130150630 016501 0 ustar moeller moeller blaa1#{stop}blaa2
velocity-1.7/test/stop/vmlib1.vm 0000644 0001750 0001750 00000000047 11130150630 016570 0 ustar moeller moeller #macro(test1)
stuff1#{stop}stuff2
#end
velocity-1.7/test/includeevent/ 0000755 0001750 0001750 00000000000 11675166243 016556 5 ustar moeller moeller velocity-1.7/test/includeevent/test1.vm 0000644 0001750 0001750 00000000073 10315733667 020162 0 ustar moeller moeller Test File 1
#include("include-a.vm")
#parse("parse-a.vm")
velocity-1.7/test/includeevent/include-a.vm 0000644 0001750 0001750 00000000016 10315733667 020760 0 ustar moeller moeller include file a velocity-1.7/test/includeevent/include-b.vm 0000644 0001750 0001750 00000000022 10315733667 020756 0 ustar moeller moeller BAD include file b velocity-1.7/test/includeevent/test3.vm 0000644 0001750 0001750 00000000073 10315733667 020164 0 ustar moeller moeller Test File 3
#include("include-a.vm")
#parse("parse-a.vm")
velocity-1.7/test/includeevent/include-c.vm 0000644 0001750 0001750 00000000023 10506300334 020737 0 ustar moeller moeller Good include file c velocity-1.7/test/includeevent/test4.vm 0000644 0001750 0001750 00000000044 10315733667 020163 0 ustar moeller moeller Test File 4
#include("include4.vm")
velocity-1.7/test/includeevent/test5.vm 0000644 0001750 0001750 00000000044 10315733667 020164 0 ustar moeller moeller Test File 5
#include("include5.vm")
velocity-1.7/test/includeevent/test6.vm 0000644 0001750 0001750 00000000101 10503223030 020130 0 ustar moeller moeller Bad include follows
#include("badfile.vm")
After the bad include
velocity-1.7/test/includeevent/compare/ 0000755 0001750 0001750 00000000000 11675166243 020204 5 ustar moeller moeller velocity-1.7/test/includeevent/compare/test2.cmp 0000644 0001750 0001750 00000000135 10506300334 021724 0 ustar moeller moeller Test File 2
Good include file b
Good parse file b
Good include file c
Good parse file c
velocity-1.7/test/includeevent/compare/test3.cmp 0000644 0001750 0001750 00000000017 10311127224 021723 0 ustar moeller moeller Test File 3
velocity-1.7/test/includeevent/compare/test4.cmp 0000644 0001750 0001750 00000000044 10311127224 021724 0 ustar moeller moeller Test File 4
page not found (subdir) velocity-1.7/test/includeevent/compare/test5.cmp 0000644 0001750 0001750 00000000033 10311127224 021723 0 ustar moeller moeller Test File 5
page not found velocity-1.7/test/includeevent/compare/test6.cmp 0000644 0001750 0001750 00000000070 10631156765 021746 0 ustar moeller moeller Bad include follows
page not foundAfter the bad include
velocity-1.7/test/includeevent/compare/test7.cmp 0000644 0001750 0001750 00000000033 11273710244 021735 0 ustar moeller moeller Test File 7
#sample("boo") velocity-1.7/test/includeevent/compare/test1.cmp 0000644 0001750 0001750 00000000051 10311127224 021717 0 ustar moeller moeller Test File 1
include file a
parse file a velocity-1.7/test/includeevent/test7.vm 0000644 0001750 0001750 00000000057 11273710244 020160 0 ustar moeller moeller Test File 7
#parse("macros.vm")
#sample("boo") velocity-1.7/test/includeevent/include4.vm 0000644 0001750 0001750 00000000026 10315733667 020627 0 ustar moeller moeller should not be included velocity-1.7/test/includeevent/subdir/ 0000755 0001750 0001750 00000000000 11675166243 020046 5 ustar moeller moeller velocity-1.7/test/includeevent/subdir/test2.vm 0000644 0001750 0001750 00000000155 10506300334 021433 0 ustar moeller moeller Test File 2
#include("include-b.vm")
#parse("parse-b.vm")
#include("/include-c.vm")
#parse("/parse-c.vm")
velocity-1.7/test/includeevent/subdir/include-b.vm 0000644 0001750 0001750 00000000023 10315733667 022247 0 ustar moeller moeller Good include file b velocity-1.7/test/includeevent/subdir/include-c.vm 0000644 0001750 0001750 00000000023 10506300334 022227 0 ustar moeller moeller BAD include file c
velocity-1.7/test/includeevent/subdir/include4.vm 0000644 0001750 0001750 00000000037 10315733667 022121 0 ustar moeller moeller should not be included (subdir) velocity-1.7/test/includeevent/subdir/include5.vm 0000644 0001750 0001750 00000000037 10315733667 022122 0 ustar moeller moeller should not be included (subdir) velocity-1.7/test/includeevent/subdir/parse-b.vm 0000644 0001750 0001750 00000000021 10315733667 021734 0 ustar moeller moeller Good parse file b velocity-1.7/test/includeevent/subdir/parse-c.vm 0000644 0001750 0001750 00000000021 10506300334 021714 0 ustar moeller moeller BAD parse file c
velocity-1.7/test/includeevent/subdir/notfound.vm 0000644 0001750 0001750 00000000027 10315733667 022245 0 ustar moeller moeller page not found (subdir) velocity-1.7/test/includeevent/include5.vm 0000644 0001750 0001750 00000000026 10315733667 020630 0 ustar moeller moeller should not be included velocity-1.7/test/includeevent/macros.vm 0000644 0001750 0001750 00000000054 11273710244 020373 0 ustar moeller moeller #macro(sample $a)
do something with $a
#end velocity-1.7/test/includeevent/parse-a.vm 0000644 0001750 0001750 00000000014 10315733667 020445 0 ustar moeller moeller parse file a velocity-1.7/test/includeevent/parse-b.vm 0000644 0001750 0001750 00000000020 10315733667 020443 0 ustar moeller moeller BAD parse file b velocity-1.7/test/includeevent/parse-c.vm 0000644 0001750 0001750 00000000022 10506300334 020425 0 ustar moeller moeller Good parse file c
velocity-1.7/test/includeevent/notfound.vm 0000644 0001750 0001750 00000000016 10315733667 020753 0 ustar moeller moeller page not found velocity-1.7/test/resourceexists/ 0000755 0001750 0001750 00000000000 11675166243 017160 5 ustar moeller moeller velocity-1.7/test/resourceexists/testfile.vm 0000755 0001750 0001750 00000000045 11053104277 021332 0 ustar moeller moeller we're just testing that this exists.
velocity-1.7/test/parseexception/ 0000755 0001750 0001750 00000000000 11675166243 017122 5 ustar moeller moeller velocity-1.7/test/parseexception/badtemplate.vm 0000644 0001750 0001750 00000000041 10324117416 021727 0 ustar moeller moeller ok
ok
ok
ok
#set($s)
ok
ok velocity-1.7/test/multi/ 0000755 0001750 0001750 00000000000 11675166243 015223 5 ustar moeller moeller velocity-1.7/test/multi/compare/ 0000755 0001750 0001750 00000000000 11675166243 016651 5 ustar moeller moeller velocity-1.7/test/multi/compare/path1.cmp 0000644 0001750 0001750 00000000020 07250307473 020353 0 ustar moeller moeller
I am path1.vm
velocity-1.7/test/multi/compare/path2.cmp 0000644 0001750 0001750 00000000020 07250307473 020354 0 ustar moeller moeller
I am path2.vm
velocity-1.7/test/multi/path1/ 0000755 0001750 0001750 00000000000 11675166243 016240 5 ustar moeller moeller velocity-1.7/test/multi/path1/path1.vm 0000644 0001750 0001750 00000000347 10315733667 017625 0 ustar moeller moeller #*
@test path1.vm
This template is used for Velocity regression testing.
If you alter this template make sure you change the
corresponding comparison file so that the regression
test doesn't fail incorrectly.
*#
I am path1.vm
velocity-1.7/test/multi/path2/ 0000755 0001750 0001750 00000000000 11675166243 016241 5 ustar moeller moeller velocity-1.7/test/multi/path2/path2.vm 0000644 0001750 0001750 00000000347 10315733667 017627 0 ustar moeller moeller #*
@test path2.vm
This template is used for Velocity regression testing.
If you alter this template make sure you change the
corresponding comparison file so that the regression
test doesn't fail incorrectly.
*#
I am path2.vm
velocity-1.7/test/set/ 0000755 0001750 0001750 00000000000 11675166243 014664 5 ustar moeller moeller velocity-1.7/test/set/compare/ 0000755 0001750 0001750 00000000000 11675166243 016312 5 ustar moeller moeller velocity-1.7/test/set/compare/set1.cmp 0000644 0001750 0001750 00000000037 10723271545 017662 0 ustar moeller moeller set1
123
123
foo
bar
foo
bar
velocity-1.7/test/set/compare/set2.cmp 0000644 0001750 0001750 00000000064 11036444013 017651 0 ustar moeller moeller set2
123
$abc
foo
bar
foo
$map.bar
test
$test
velocity-1.7/test/set/set1.vm 0000644 0001750 0001750 00000000407 10723271545 016100 0 ustar moeller moeller ## This template is used for the case in which #set with a null
## is not accepted
set1
#set($abc = "123")
$abc
#set($abc = $boohoo)
$abc
#set($map = {})
#set($map.foo = "foo")
#set($map.bar = "bar")
$map.foo
$map.bar
#set($map.bar = $boohoo)
$map.foo
$map.bar
velocity-1.7/test/set/set2.vm 0000644 0001750 0001750 00000000566 11036444013 016075 0 ustar moeller moeller ## This template is used for the case in which #set with a null
## IS accepted
set2
#set($abc = "123")
$abc
#set($abc = $boohoo)
$abc
#set($map = {})
#set($map.foo = "foo")
#set($map.bar = "bar")
$map.foo
$map.bar
#set($map.bar = $boohoo)
$map.foo
$map.bar
##
## check a macro
##
#macro (test)
#set ($test = "test")
$test
#set ($test = $null)
$test
#end
#test()
velocity-1.7/test/info/ 0000755 0001750 0001750 00000000000 11675166243 015024 5 ustar moeller moeller velocity-1.7/test/info/info1.vm 0000644 0001750 0001750 00000000022 10315733667 016376 0 ustar moeller moeller $main.unknownField velocity-1.7/test/info/info2.vm 0000644 0001750 0001750 00000000025 10315733667 016402 0 ustar moeller moeller $main.unknownMethod() velocity-1.7/test/misc/ 0000755 0001750 0001750 00000000000 11675166243 015024 5 ustar moeller moeller velocity-1.7/test/misc/compile.sh 0000755 0001750 0001750 00000001724 10513464370 017007 0 ustar moeller moeller # !/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
CLASSPATH=.:../../bin/classes
for jar in ../../build/lib/*.jar
do
CLASSPATH=${CLASSPATH}:${jar}
done
java -cp ${CLASSPATH} org.apache.velocity.runtime.compiler.Compiler $1
velocity-1.7/test/misc/test.sh 0000755 0001750 0001750 00000001732 10513464370 016335 0 ustar moeller moeller # !/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
CLASSPATH=.:../../bin/classes
for jar in ../../build/lib/*.jar
do
CLASSPATH=${CLASSPATH}:${jar}
done
java -cp ${CLASSPATH} org.apache.velocity.test.misc.Test $1 $2 > output 2>&1
velocity-1.7/test/misc/README.txt 0000644 0001750 0001750 00000001234 10362225112 016501 0 ustar moeller moeller $Id: README.txt 369043 2006-01-14 16:43:54Z henning $
This directory contains some misc tests for you to ponder over.
compile.sh: This script will compile a .vm file into a .class file.
Note: at the current time, this code is not working.
Usage: ./compile.sh ../templates/test.vm
dump.sh: This script will dump out a text representation of the AST.
Usage: ./dump.sh ../templates/test.vm
test.sh: This script is used for command line testing of .vm files.
Note: this script is not a replacement for the engine testing
suite. It is simply a convinence script/class for the developers.
thanks!
- The Velocity Team
velocity-1.7/test/misc/dump.sh 0000755 0001750 0001750 00000001743 10513464370 016325 0 ustar moeller moeller # !/bin/sh
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
CLASSPATH=.:../../bin/classes
for jar in ../../build/lib/*.jar
do
CLASSPATH=${CLASSPATH}:${jar}
done
java -cp ${CLASSPATH} org.apache.velocity.test.view.TemplateNodeView $1 > output.dump
velocity-1.7/test/classloader/ 0000755 0001750 0001750 00000000000 11675166243 016365 5 ustar moeller moeller velocity-1.7/test/classloader/Foo.java 0000644 0001750 0001750 00000002476 10513464370 017754 0 ustar moeller moeller /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/**
* Simple class Foo to be used in classloader testing
* This class should be kept here and not in velocity.jar
* to keep out of the parent classloader of the test
* classloader
*/
public class Foo
{
/*
* the ClassloaderChangeTest
* depends on this string as
* is. If this changes (there is no reason
* to ever do that, BTW), then
* udpate ClassloaderChangeTest as well.
*/
private static String MSG =
"Hello From Foo";
public String doIt()
{
return MSG;
}
}
velocity-1.7/test/classloader/Foo.class 0000644 0001750 0001750 00000000564 07351235475 020144 0 ustar moeller moeller Êþº¾ -
MSG Ljava/lang/String; ()V Code LineNumberTable doIt ()Ljava/lang/String;
SourceFile Foo.java Hello From Foo Foo java/lang/Object !
*· ± =
² ° K
³ ± F velocity-1.7/test/stringloader/ 0000755 0001750 0001750 00000000000 11675166243 016566 5 ustar moeller moeller velocity-1.7/test/stringloader/compare/ 0000755 0001750 0001750 00000000000 11675166243 020214 5 ustar moeller moeller velocity-1.7/test/stringloader/compare/simpletemplate.cmp 0000644 0001750 0001750 00000000037 10531706670 023734 0 ustar moeller moeller This is a test for a foo object velocity-1.7/test/stringloader/compare/change1.cmp 0000644 0001750 0001750 00000000024 10531706670 022211 0 ustar moeller moeller I am the 1 template. velocity-1.7/test/stringloader/compare/change2.cmp 0000644 0001750 0001750 00000000026 10531706670 022214 0 ustar moeller moeller I am the two template. velocity-1.7/test/stringloader/compare/multi1.cmp 0000644 0001750 0001750 00000000024 10531706670 022116 0 ustar moeller moeller I am the 1 template. velocity-1.7/test/stringloader/compare/multi2.cmp 0000644 0001750 0001750 00000000026 10531706670 022121 0 ustar moeller moeller I am the two template. velocity-1.7/test/includeerror/ 0000755 0001750 0001750 00000000000 11675166243 016566 5 ustar moeller moeller velocity-1.7/test/includeerror/parsemain.vm 0000644 0001750 0001750 00000000141 10367314621 021075 0 ustar moeller moeller ## tests to see if
## ParseException in parsed file is caught
text
#parse("haserror.txt")
text velocity-1.7/test/includeerror/parsemain2.vm 0000644 0001750 0001750 00000000142 10367314621 021160 0 ustar moeller moeller ## tests to see if
## ParseException in parsed file is caught
text
#parse("haserror2.txt")
text velocity-1.7/test/includeerror/haserror.txt 0000644 0001750 0001750 00000000213 10367314621 021140 0 ustar moeller moeller ## This file has a Velocity error.
## It's intentionally not saved with a 'vm' suffix
## to avoid errors in IDE
#foreach($i in (1..10)
$i velocity-1.7/test/includeerror/haserror2.txt 0000644 0001750 0001750 00000000407 10367314621 021227 0 ustar moeller moeller ## This file has a Velocity error.
## It's intentionally not saved with a 'vm' suffix
## to avoid errors in IDE
## Note: text directly from VELOCITY-96
#macro (myMacro $arg1 $list)
This is text from velPTest2.vm
#myMacro('name', ['apples', 'oranges']
More text
velocity-1.7/test/includeerror/missingparse.vm 0000644 0001750 0001750 00000000131 10367314621 021621 0 ustar moeller moeller ## tests to see if
## missing parse throws an error
text
#parse("doesntexist.vm")
text velocity-1.7/test/includeerror/missinginclude.vm 0000644 0001750 0001750 00000000135 10367314621 022136 0 ustar moeller moeller ## tests to see if
## missing include throws an error
text
#include("doesntexist.vm")
text velocity-1.7/test/templates/ 0000755 0001750 0001750 00000000000 11675166244 016070 5 ustar moeller moeller velocity-1.7/test/templates/velocimacro.vm 0000644 0001750 0001750 00000003563 10315733667 020745 0 ustar moeller moeller #**
@test velocimacro.vm
This template is used for Velocity regression testing.
If you alter this template make sure you change the
corresponding comparison file so that the regression
test doesn't fail incorrectly.
*#
## inline VM : shows how a tablerow might be generated
#macro( tablerow $array $color )
#foreach( $element in $array )
$element
#end
#end
Now, use the \#quietnull example from the global library VM_global_library.vm :
Now, there should be nothing in the brackets : >#quietnull($nada)<
#set($foo = "hello!")
Where there should be something here : >#quietnull($foo)<
#set($arr = ["$10.24","$15.32","$12.15"])
#set($col = "blue")
#tablerow( $arr $col)
Further tests. The following VMs and non-VM should be properly escaped :
\#tablerow
\#quietnull
\#notavm
>\\#quietnull($nada)<
Now try to define a new quietnull VM :
#macro( quietnull $a )
QuietNull : $a
#end
It should have been rejected, as the default is to not let inlines override existing, and there
should be a message in velocity.log.
Therefore it should still function normally :
>#quietnull($foo)<
>#quietnull($nada)<
We should be able to use argless VMs (and directives....)
#macro( noargs )
Hello! I have no args!
#end
#noargs()
And there was a bug where I wasn't getting the params right for the use-instance :
#macro( showarg $i )
Arg :>$i<
#end
#showarg( $jdom.getRootElement().getChild("properties").getChild("author").getTextTrim() )
String literals should work as you expect :
#showarg( "stringliteral")
Test boolean args :
#testbool(true)
#testbool(false)
Test map args :
#macro(showmap $map $key)
$map.get($key)
#end
#set($map = {"a":"aval", "b":"bval" } )
#showmap($map "a")
#showmap($map "b")
#showmap({"a":"avalinline", "b":"bvalinline"} "a")
#showmap({"a":"avalinline", "b":"bvalinline"} "b")
- Another fine Velocity Production -
velocity-1.7/test/templates/vm_test2.vm 0000644 0001750 0001750 00000001015 10315733667 020173 0 ustar moeller moeller #**
@test vm_test2.vm
This template is used for Velocity regression testing.
If you alter this template make sure you change the
corresponding comparison file so that the regression
test doesn't fail incorrectly.
Tests VM recursion *and* the local template namespace feature.
This version of recurse should override the global version
when called by the global VM callrecurse()
*#
#macro( recurse $a )
local recurse $a
#set( $a = $a - 1)
#if ($a > 0)
#recurse( $a )
#end
#end
#set($count = 5)
#callrecurse()
velocity-1.7/test/templates/compare/ 0000755 0001750 0001750 00000000000 11675166244 017516 5 ustar moeller moeller velocity-1.7/test/templates/compare/comment.cmp 0000644 0001750 0001750 00000000342 07747721115 021657 0 ustar moeller moeller
this is some text.
The following is a 'Christoph Comment' ;)
foo
We can now comment after the inline set :
$barfoo!
$there is a dollar before me
Test of multiline/singleline combo
with some closing text
velocity-1.7/test/templates/compare/encodingtest.cmp 0000644 0001750 0001750 00000000153 10256120454 022667 0 ustar moeller moeller Thanks to Kent Johnson for this example and the nudge.
Chinese: 网站登录
Spanish: niño
velocity-1.7/test/templates/compare/vm_test1.cmp 0000644 0001750 0001750 00000000220 07214607131 021740 0 ustar moeller moeller
global recurse 5
global recurse 4
global recurse 3
global recurse 2
global recurse 1
velocity-1.7/test/templates/compare/foreach-type.cmp 0000644 0001750 0001750 00000000447 07365430123 022601 0 ustar moeller moeller
Using a Object []
a
b
c
d
Using a Map
this is from a hashtable!
this is from a hashtable too!
Using a Collection
string1
string2
Using an Iterator
string1
string2
Using an Enumeration
string1
string2
Using an array of primitives
10
20
30
40
50
velocity-1.7/test/templates/compare/vm_test2.cmp 0000644 0001750 0001750 00000000214 07214607131 021744 0 ustar moeller moeller
local recurse 5
local recurse 4
local recurse 3
local recurse 2
local recurse 1
velocity-1.7/test/templates/compare/pedantic.cmp 0000644 0001750 0001750 00000002453 07214051545 022001 0 ustar moeller moeller
This is a test of the new pedantic mode.
There are a few things you can do in pedantic mode.
Like get the spacing between things first elementsecond element to be really, really tight.
Further, it now binds any \n to the control structures, taking them out of the output.
The hope that this is What You Expect.
So...
--
pedantic
--
should come out looking like
--
pedantic
--
But pay attention to what follows the #end statement :
1) First, follow with 'stuff' (not sure why you want to do this... but anway...)
--
pedantic
woogie!
--
should be
--
pedantic
woogie!
--
2) Whitespace will be eaten if there is a following newline
--
pedantic
--
should be
--
pedantic
--
-- INLINE STUFF ---
1) respect spaces in the block
>first elementsecond element<
> first element second element<
>first element second element <
> first element second element <
2) set statement has no output, incuding preceeding whitespace
first element is first element
second element is second element
public void foo( String lala )
{
System.out.println("first element");
System.out.println("second element");
}
public void foo( String lala )
{
System.out.println("first element");
System.out.println("second element");
}
Inline set statement :
Here are the prices : $10.24 $15.32 $12.15
velocity-1.7/test/templates/compare/stop1.cmp 0000644 0001750 0001750 00000000066 10256120454 021252 0 ustar moeller moeller This page checks the stop directive in the main body
velocity-1.7/test/templates/compare/foreach-null-list.cmp 0000644 0001750 0001750 00000000206 10256120454 023530 0 ustar moeller moeller
Foreach with a list that contains null.
This is a.
1
This is b.
2
This is $element.
3
This is d.
4
velocity-1.7/test/templates/compare/string.cmp 0000644 0001750 0001750 00000001245 07774271372 021533 0 ustar moeller moeller
This is a very long string that we are breaking up into multiple lines for testing.
This is a string. The number 2 = 2
This is a string. The value = 3
New language feature
allows newlines in the strings
might make some happy
V V EEEEE L OOOOO CCCCC I TTTTT Y Y
V V E L O O C I T Y Y
V V EEE L O O C I T Y
VV E L O O C I T Y
V EEEEE LLLL OOOOO CCCCC I T Y
RRRRR OOOOO CCCCC K K SSSSS
R R O O C K K S
RRRR O O C KK SSSS
R R O O C K K S
R R O O C K K S
R R OOOOO CCCCC K K SSSS
velocity-1.7/test/templates/compare/arithmetic.cmp 0000644 0001750 0001750 00000000532 10226620623 022333 0 ustar moeller moeller
6
5
10
5
Check the decimal literals
4500.0
4500.0
0.0045
4.5E55
4.5
5.5
11.0
Check that the system can handle integers greater than Integer.MAX_INT
100000000000
100000000001
2
This is a very long string that we are breaking up into multiple lines for testing.
This is a string. The number 2 = 2
This is a string. The value = 3
velocity-1.7/test/templates/compare/stop2.cmp 0000644 0001750 0001750 00000000122 10256120454 021244 0 ustar moeller moeller This page checks the stop directive inside an if statement
this should render
velocity-1.7/test/templates/compare/block.cmp 0000644 0001750 0001750 00000002203 07213514210 021265 0 ustar moeller moeller
First test : spacing between stuff. Note that spacing preceeding the directives counts!
One blank line follows
this should be followed by two blank lines
this is the if statement. (followed by two blank lines)
this is great (followed by a blank line, 4 spaces on a line,and 2 more, yes there should be one after the 4 spaces)
-- Second Test : no spacing between anything (1 blank line follows)
this
this is the if statement.
this is great (line w/ 4 spaces follows (from in front of the #end) + another blank line)
------------
True
-----------
-- Third Test : tight tight tight. Note that #end eats the \n, which is NOT what people expect, I think.
-- one blank line follows
blargh This follows blarghblarghThis immedately follows blargh with a following newline
-- Fourth Test : another tight tight tight. If you want the \n, then put one *after* the content, not a space after #end.
-- one blank line follows
blargh This follows blargh
blarghThis immedately follows blargh with a following newline
-- Fifth Test : different kind of tight. blank line follows
blargh
blargh2
blargh3
velocity-1.7/test/templates/compare/encodingtest2.cmp 0000644 0001750 0001750 00000000134 10256120454 022750 0 ustar moeller moeller This is an example of chinese code encoding:
The chinese string is 上网, its length is 2
velocity-1.7/test/templates/compare/stop3.cmp 0000644 0001750 0001750 00000000205 10405661436 021255 0 ustar moeller moeller This test checks the stop directive when included from a parse directive.
Foo is: stop3-include.vm
A line from stop3-include.vm
velocity-1.7/test/templates/compare/encodingtest3.cmp 0000644 0001750 0001750 00000003110 10256120454 022746 0 ustar moeller moeller