com.threerings.jpkg.ant
Class VelocityHelper
java.lang.Object
com.threerings.jpkg.ant.VelocityHelper
public class VelocityHelper
- extends Object
A helper class to generate silent velocity engines and work with VelocityTemplate
classes.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityHelper
public VelocityHelper()
mergeTemplate
public static void mergeTemplate(VelocityTemplate template,
Writer writer)
throws ResourceNotFoundException,
ParseErrorException,
MethodInvocationException,
Exception
- Merge the supplied
VelocityTemplate
, performing all substitutions defined, into
the supplied Writer
.
- Parameters:
template
- The VelocityTemplate
to merge.writer
- The Writer
to write the merged template to.
- Throws:
MethodInvocationException
- If the merge fails.
ParseErrorException
- If the template is invalid.
ResourceNotFoundException
- If the template could not be found in the classpath.
Exception
- If any other failure occurs constructing the merging the template.
Copyright © 2007-2008 Three Rings Design, Inc.
All Rights Reserved. Released under a BSD license.