velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claude Brisson" <cla...@savoirweb.com>
Subject Re: convenience global static method for parse validity of templates?
Date Wed, 18 Sep 2002 09:47:09 GMT
?!

by dummy, I meant empty : give it an empty context


try {
    myTemplate.merge(new VelocityContext(), new StringWriter())
}
catch (Exception e) {
report exception
task failed
}


CloD

----- Original Message ----- 
From: "Mark D. Anderson" <mda@discerning.com>
To: "Velocity Users List" <velocity-user@jakarta.apache.org>
Sent: mercredi 18 septembre 2002 00:19
Subject: Re: convenience global static method for parse validity of templates?


> 
> > then, give it a dummy context and catch exceptions, no ?
> 
> no, because i want my ant task to succeed if there are no syntax errors.
> there will always be an exception if i try to do more than the parse, if there
> is no context.
> 
> -mda
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <mailto:velocity-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:velocity-user-help@jakarta.apache.org>


Mime
View raw message