actually, no ...
 
I am calling VelocityEngine inside Java code. In this case how should I set 
file resource loader's path by a variable defined in Ant build file ?
 
Thanks
Ram

Will Glass-Husain <[EMAIL PROTECTED]> wrote:
Are you calling Velocity with the tag in an ant class?

If so, I'd set a System property.

WILL

----- Original Message ----- 
From: "Rambo Mahajan" 
To: 
Sent: Monday, September 26, 2005 4:05 PM
Subject: ant variable


> Hi
>
> I am using FileResourceLoader to initialize VelocityEngine in Java file as 
> follows:
>
> Properties props = new Properties();
> props.setProperty(VelocityEngine.RESOURCE_LOADER, "file");
> props.setProperty("file." + VelocityEngine.RESOURCE_LOADER + ".class", 
> FileResourceLoader.class.getName());
> props.setProperty("file." + VelocityEngine.RESOURCE_LOADER + ".path", 
> ANT_VAR);
> engine.init(props);
>
> I would like to know how to access ant variable ANT_VAR inside Java code ?
>
> Thanks
> Ram
>
>
> ---------------------------------
> Yahoo! for Good
> Click here to donate to the Hurricane Katrina relief effort. 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


                
---------------------------------
Yahoo! for Good
 Click here to donate to the Hurricane Katrina relief effort. 

Reply via email to