AW: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Markus Auchmann
Ok thanks a lot for your reply. Do I just have to install ivy or do I have to make configurations in ant or velocity to get through the velocity installation process (as you can see it's my first time in the java/apache/velocity/ant/... world :) ) Can you tell me why the installation process is no

Re: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Will Glass-Husain
Hi Markus, I run Win Xp, Ant 1.6.2, and JDK 1.5. I downloaded a fresh copy of Velocity 1.5 beta 2, cd'd to the build directory, typed "ant test" and it built fine. You shouldn't need anything else. Can you email the test report for AbsoluteFileResourceLoader? It's in bin/test-reports/TEST-org

Re: Installing Velocity 1.5 on Windows

2006-12-06 Thread Will Glass-Husain
Markus, Also - you know that you don't actually need to build Velocity, right? When you download the distribution, there is a copy of velocity-1.5beta2.jar and velocity-dep-1.5beta2.jar. One or the other of these is all you need for your application. Best, WILL On 12/4/06, Markus Auchmann <[EM

Re: How do I set a property

2006-12-06 Thread Will Glass-Husain
Martin, If at all possible, use VelocityViewServlet from the Velocity Tools project. Although it works similarly It's better supported. (we've deprecated VelocityServlet in the latest release). Having said that, you need to override the loadConfiguration method to set Velocity properties. WIL

AW: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Markus Auchmann
Hi Will, here is the requested file: Testsuite: org.apache.velocity.test.AbsoluteFileResourceLoaderTestCase Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0,016 sec - Standard Output --- Retrieving template at absolute path: C:\Documents and Settings\wgla

Re: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Will Glass-Husain
Ah, that's helpful. Or rather, somewhat embarassing. Looks like we made a mistake in distributing the files and my personal path got embedded in the test source. (supposed to be a marker used by ant to insert your local path). Download this file from svn http://svn.apache.org/repos/asf/velocit

AW: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Markus Auchmann
First of all, thanks for your help! I did what you told me but unfortunately now I'm back again there where I started: BUILD FAILED C:\velocity-1.5-beta2\build\build.xml:802: Could not create task or type of type: junit. Ant provides me these hints:

AW: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Markus Auchmann
Oh sorry ... there is a junit-3.8.1.jar in the bin/test-lib > -Ursprüngliche Nachricht- > Von: Markus Auchmann [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 06. Dezember 2006 16:17 > An: 'Velocity Users List' > Betreff: AW: AW: Installing Velocity 1.5 on Windows > > First of all, thanks

Re: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Will Glass-Husain
Try copying the junit jar into your ANT_HOME\lib directory On 12/6/06, Markus Auchmann <[EMAIL PROTECTED]> wrote: Oh sorry ... there is a junit-3.8.1.jar in the bin/test-lib > -Ursprüngliche Nachricht- > Von: Markus Auchmann [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 06. Dezember 2

AW: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Markus Auchmann
Thanks, now he started to run the tests with junit but he interrupts while testing anakia: # test-anakia: [echo] Running Anakia tests... BUILD FAILED C:\velocity-1.5-beta2\build\build.xml:830: The following error occurred while executing this line: C:\velocity-1.5-beta2\b

Re: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Will Glass-Husain
That's strange. Was JDOM downloaded? Look in the lib directory. WILL On 12/6/06, Markus Auchmann <[EMAIL PROTECTED]> wrote: Thanks, now he started to run the tests with junit but he interrupts while testing anakia: # test-anakia: [echo] Running Anakia tests... BUILD

AW: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Markus Auchmann
Yes there is jdom-1.0.jar I checked all the reports, but there is no failure in there > -Ursprüngliche Nachricht- > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von > Will Glass-Husain > Gesendet: Mittwoch, 06. Dezember 2006 16:39 > An: Velocity Users List > Betreff: Re: AW

Re: AW: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Henning Schmiedehausen
Hi, oops, sorry if I confused you. a) If you want to test out / develop using Velocity, get the binary distribution. It contains the velocity jar, the docs and API docs and your are set to develop. b) If you insist on compiling Velocity yourself, get the source distribution. If you have network

Re: How do I set a property

2006-12-06 Thread Martin Tilsted
Citat Will Glass-Husain <[EMAIL PROTECTED]>: > Martin, > > If at all possible, use VelocityViewServlet from the Velocity Tools > project. Although it works similarly It's better supported. (we've > deprecated VelocityServlet in the latest release). With the latest release, I asume you mean 1.5

Re: How do I set a property

2006-12-06 Thread Nathan Bubna
On 12/6/06, Martin Tilsted <[EMAIL PROTECTED]> wrote: Citat Will Glass-Husain <[EMAIL PROTECTED]>: > Martin, > > If at all possible, use VelocityViewServlet from the Velocity Tools > project. Although it works similarly It's better supported. (we've > deprecated VelocityServlet in the latest r

Re: How do I set a property

2006-12-06 Thread Martin Tilsted
Citat Nathan Bubna <[EMAIL PROTECTED]>: > On 12/6/06, Martin Tilsted <[EMAIL PROTECTED]> wrote: > > Citat Will Glass-Husain <[EMAIL PROTECTED]>: > > > > > Martin, > > > > > > If at all possible, use VelocityViewServlet from the Velocity Tools > > > project. Although it works similarly It's better

Re: How do I set a property

2006-12-06 Thread Will Glass-Husain
In Velocity 1.4 the velocity jar has to be in the same classloader (e.g. WEB-INF/lib) as all property files and other class based resources. In the upcoming Velocity 1.5 it is now possibly to separate these. (Velocity looks in the ThreadContextClassLoader for properties), so if velocity.jar is in

Re: AW: AW: Installing Velocity 1.5 on Windows

2006-12-06 Thread Will Glass-Husain
Are there separate source and binary distributions? I thought the tar.gz and the zip file contain both the binary and the source? WILL On 12/6/06, Henning Schmiedehausen <[EMAIL PROTECTED]> wrote: Hi, oops, sorry if I confused you. a) If you want to test out / develop using Velocity, get the

Re: How do I set a property

2006-12-06 Thread Nathan Bubna
On 12/6/06, Martin Tilsted <[EMAIL PROTECTED]> wrote: ... > > But I don't understand how VelocityViewServlet, works similary to > > VelocityServlet. Let my try if I understand VelocityViewServlet correct. > > > > 1: I don't have a class for each template. Insted I populate a View with > > 'tool o

velocimacro.library.autoreload = true does not work?

2006-12-06 Thread Peter Locke
I've searched the archives and have seen this discussed before, although I've failed to find a definitive answer, and I'm hoping to get one. I also have not seen evidence that this is addressed in Velocity 1.5. My templates reload on the fly as expected if changed, but changes to the macro lib

Re: velocimacro.library.autoreload = true does not work?

2006-12-06 Thread Nathan Bubna
Actually, the resource loader is the issue. The ClasspathResourceLoader is not as full featured as the FileResourceLoader or the WebappLoader (from VelocityTools). Specifically, it doesn't have functional implementations of isSourceModified() or getLastModified(), these always return false and 0

Re: velocimacro.library.autoreload = true does not work?

2006-12-06 Thread Will Glass-Husain
Also, in Velocity 1.5 the ClasspathResourceLoader looks for the resources in the ThreadContext classloader, meaning you can stick velocity.jar in the container classpath and the templates in the webapp classpath. WILL On 12/6/06, Nathan Bubna <[EMAIL PROTECTED]> wrote: Actually, the resource lo