velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Larry Siden <lsi...@gmail.com>
Subject Re: ant DVSL task can't find VM_global_library.vm
Date Wed, 10 Nov 2004 19:48:37 GMT
That worked!  Thank you so much, Shinobu.

I was wondering what the "basedir" attribute was doing in the <dvsl>
tag.  It didn't seem to have any effect on the "in", "out", or "style"
attributes, which is what I originally thought it was for.

On Wed, 10 Nov 2004 14:13:11 +0900, Shinobu Kawai
<shinobu.kawai@gmail.com> wrote:
> 
> Hi Larry,
> 
> Took a closer look at the log.
> 
> > Buildfile: C:\Views\lsiden_view_2\sdm_svc\SDMservices\GKN\Phase2\DeveloperRepository\SvJP\UI\build.xml
> I see your current directory != ${basedir}.
> 
> ## snip
> 
> > Project base dir set to:
> > C:\Views\lsiden_view_2\sdm_svc\SDMservices\GKN\Phase2\DeveloperRepository
> 
> ## snip
> 
> >      [dvsl] [info] Resource Loader Instantiated:
> > org.apache.velocity.runtime.resource.loader.FileResourceLoader
> >      [dvsl] [info] FileResourceLoader : initialization starting.
> >      [dvsl] [info] FileResourceLoader : adding path '.'
> >      [dvsl] [info] FileResourceLoader : initialization complete.
> Here's where the resources will be searched.
> 
> Try this:
> >       <dvsl basedir="."
> >           in="${target.dir}/svjp-ui-tabbed.xml"
> >           out="${target.dir}/svjp-ui-tabbed.html"
> >           style="${target.dir}/svjp-ui-tabbed.dvsl"
> >           toolboxfile="${target.dir}/toolbox.properties"
> >           classpath="${dvsl.toolbox.classpath}">
>           <velconfig name="file.resource.loader.path" value="${basedir}"/>
>           <velconfig name="velocimacro.library" value="/veltemplate/VM_global_library.vm"/>
> >       </dvsl>
> This will force the FileResourceLoader to look under ${basedir}.
> 
> I think it should work.
> 
> 
> 
> Best regards,
> -- Shinobu Kawai
> 
> --
> Shinobu Kawai <shinobu.kawai@gmail.com>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> 
> 


-- 
Larry Siden
http://umich.edu/~lsiden/

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


Mime
View raw message