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:
################
Ant could not find the task or a class this task relies upon.
This is common and has a number of causes; the usual
solutions are to read the manual pages then download and
install needed JAR files, or fix the build file:
- You have misspelt 'junit'.
Fix: check your spelling.
- The task needs an external JAR file to execute
and this is not found at the right place in the classpath.
Fix: check the documentation for dependencies.
Fix: declare the task.
- The task is an Ant optional task and the JAR file and/or libraries
implementing the functionality were not found at the time you
yourself built your installation of Ant from the Ant sources.
Fix: Look in the ANT_HOME/lib for the 'ant-' JAR corresponding to the
task and make sure it contains more than merely a META-INF/MANIFEST.MF.
If all it contains is the manifest, then rebuild Ant with the needed
libraries present in ${ant.home}/lib/optional/ , or alternatively,
download a pre-built release version from apache.org
- The build file was written for a later version of Ant
Fix: upgrade to at least the latest release version of Ant
- The task is not an Ant core or optional task
and needs to be declared using <taskdef>.
- You are attempting to use a task defined using
<presetdef> or <macrodef> but have spelt wrong or not
defined it at the point of use
Remember that for JAR files to be visible to Ant tasks implemented
in ANT_HOME/lib, the files must be in the same directory or on the
classpath
Please neither file bug reports on this problem, nor email the
Ant mailing lists, until all of these causes have been explored,
as this is not an Ant bug.
################
I'm really confused cause there is no junit related .jar in my velocity/lib
or velocity/lib/test. Should I try to put the junit.jar manually into the
lib?
Unfortunately there is no report in bin/test-reports which I could send to
you.
Hope my description helps,
Greets,
markus
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von
> Will Glass-Husain
> Gesendet: Mittwoch, 06. Dezember 2006 16:00
> An: Velocity Users List
> Betreff: Re: AW: Installing Velocity 1.5 on Windows
>
> 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/velocity/engine/trunk/src/test/org/apache/
> velocity/test/TemplateTestBase.java
>
> Then replace
> src/test/org/apache/velocity/test/TemplateTestBase.java
>
> and try again. (do an 'ant clean' first)
>
> WILL
>
>
>
> On 12/6/06, Markus Auchmann <[EMAIL PROTECTED]> wrote:
> > 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\wglass\My
> > Documents\Workspace\internal\velocity\trunk\test\absolute\absolute.vm
> > ------------- ---------------- ---------------
> >
> > Testcase: AbsoluteFileResourceLoaderTest took 0,016 sec
> > FAILED
> > Unable to find resource 'C:\Documents and Settings\wglass\My
> > Documents\Workspace\internal\velocity\trunk\test\absolute\absolute.vm'
> > junit.framework.AssertionFailedError: Unable to find resource
> 'C:\Documents
> > and Settings\wglass\My
> > Documents\Workspace\internal\velocity\trunk\test\absolute\absolute.vm'
> > at
> >
> org.apache.velocity.test.AbsoluteFileResourceLoaderTestCase.runTest(Absolu
> te
> > FileResourceLoaderTestCase.java:144)
> > ############
> >
> > Greets,
> > markus
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag
> von
> > > Will Glass-Husain
> > > Gesendet: Mittwoch, 06. Dezember 2006 14:44
> > > An: Velocity Users List
> > > Betreff: Re: AW: Installing Velocity 1.5 on Windows
> > >
> > > 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.apache.velocity.test.AbsoluteFileResourceLoaderTestCase.txt
> > >
> > > WILL
> > >
> > >
> > > On 12/6/06, Markus Auchmann <[EMAIL PROTECTED]> wrote:
> > > > 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 not working at my
> > > machine.
> > > > Is it something which has to do with my specific system
> configuration or
> > > is
> > > > it a winXP issue?
> > > >
> > > > Greets,
> > > > markus
> > > >
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Henning P. Schmiedehausen [mailto:[EMAIL PROTECTED]
> > > > Gesendet: Dienstag, 05. Dezember 2006 23:05
> > > > An: [email protected]
> > > > Betreff: Re: AW: Installing Velocity 1.5 on Windows
> > > >
> > > > "Markus Auchmann" <[EMAIL PROTECTED]> writes:
> > > >
> > > > If anyone knowing maven 2 a bit and is looking for a way to
> contribute,
> > > > please take a look at VELOCITY-466
> > > > (http://issues.apache.org/jira/browse/VELOCITY-466). While I'm not
> sure
> > > that
> > > > downloading ~870k of Maven dependencies to get 2M of jars quicker,
> that
> > > > might be one way. Another could be ivy
> > > > (http://incubator.apache.org/projects/ivy.html) for which I actually
> > > have an
> > > > example in the velocity tree (whiteboard/henning/using_ivy). With
> ivy
> > > coming
> > > > to the ASF, this might be the best way to go.
> > > >
> > > > Best regards
> > > > Henning
> > > >
> > > >
> > > >
> > > > >Hi Claude,
> > > >
> > > > >Thanks a lot for your hint - today I had no problems in going
> through
> > > > >this step of the installation process. But (unfortunately) I have
> now
> > > > >another problem now - with junit. When testing the installation
> with
> > > > >'ant test' - ant told me that there is a error with junit. So I
> > > > >followed the hints given by ant, downloaded junit and added it to
> my
> > > > >classpath (the .jar and the directory). Then I copied the .jar to
> the
> > > > >ant/lib and velocity/lib directory. Now the installation fails with
> > > another
> > > > issue:
> > > >
> > > > >######################################
> > > > >junit-download:
> > > > >http-test-download:
> > > > > [get] Getting:
> > > > http://www.ibiblio.org/maven/junit/jars/junit-3.8.1.jar
> > > > > [get] To: C:\velocity-1.5-beta2\bin\test-lib\junit-3.8.1.jar
> > > > > [get] Not modified - so not downloaded
> > > >
> > > > >[...]
> > > >
> > > > >clean-dependency-classes:
> > > > > [delete] Deleting directory C:\velocity-1.5-beta2\bin\deps
> > > > > [mkdir] Created dir: C:\velocity-1.5-beta2\bin\deps
> > > >
> > > > >[...]
> > > >
> > > > >test:
> > > > > [junit] Running
> > > > >org.apache.velocity.test.AbsoluteFileResourceLoaderTestCase
> > > > > [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed:
> 0,015
> > > > >sec
> > > >
> > > > >BUILD FAILED
> > > > >C:\velocity-1.5-beta2\build\build.xml:802: Test
> > > > >org.apache.velocity.test.AbsoluteFileResourceLoaderTestCase failed
> > > > >######################################
> > > >
> > > > >Maybe you can help me once again in solving this problem.
> > > >
> > > > >Thanks a lot to all of you!
> > > > >Greets,
> > > > >Markus
> > > >
> > > > >> -----Ursprüngliche Nachricht-----
> > > > >> Von: Claude Brisson [mailto:[EMAIL PROTECTED]
> > > > >> Gesendet: Montag, 04. Dezember 2006 21:32
> > > > >> An: Velocity Users List
> > > > >> Betreff: Re: Installing Velocity 1.5 on Windows
> > > > >>
> > > > >> Maybe the ibiblio repository was down at the time you tried the
> > > build.
> > > > >> You can try again later, or you can download manually the needed
> jars
> > > > >> elsewhere (but be sure their name is post-fixed with the version
> > > > >> numbers you have in the build.properties file) and add
> > > "skip.jar.loading
> > > > = true"
> > > > >> to the same file (build.properties).
> > > > >>
> > > > >> Claude
> > > > >>
> > > > >> Le lundi 04 décembre 2006 à 16:14 +0100, Markus Auchmann a écrit
> :
> > > > >> > Hi,
> > > > >> > I tried to set up the new Velocity 1.5-beta2 on my windows xp.
> When
> > > > >> trying
> > > > >> > to build it I get a build failed which says that the download
> of
> > > > >> > antlr-2.7.5.jar was not successful. Therefore I managed to
> download
> > > > >> > this .jar and put it into the build/lib ... but nothing
> changes.
> > > > >> >
> > > > >> > Can you tell me what I might did wrong? (I'm using ant 1.6.5 &
> > > > >> > jdk1.5.0)
> > > > >> >
> > > > >> > ################################################
> > > > >> > C:\velocity-1.5-beta2\build>ant test
> > > > >> > Buildfile: build.xml
> > > > >> >
> > > > >> > build-prepare:
> > > > >> >
> > > > >> > build-download:
> > > > >> >
> > > > >> > antlr-download:
> > > > >> >
> > > > >> > http-download:
> > > > >> > [get] Getting:
> http://www.ibiblio.org/maven/antlr/jars/antlr-
> > > > >> 2.7.5.jar
> > > > >> > [get] To: C:\velocity-1.5-beta2\bin\lib\antlr-2.7.5.jar
> > > > >> > [get] Error opening connection
> java.io.FileNotFoundException:
> > > > >> > http://mirro
> > > > >> > rs.ibiblio.org/pub/mirrors/maven/r/antlr/antlr/2.7.5/antlr-
> > > 2.7.5.jar
> > > > >> > [get] Error opening connection
> java.io.FileNotFoundException:
> > > > >> > http://mirro
> > > > >> > rs.ibiblio.org/pub/mirrors/maven/r/antlr/antlr/2.7.5/antlr-
> > > 2.7.5.jar
> > > > >> > [get] Error opening connection
> java.io.FileNotFoundException:
> > > > >> > http://mirro
> > > > >> > rs.ibiblio.org/pub/mirrors/maven/r/antlr/antlr/2.7.5/antlr-
> > > 2.7.5.jar
> > > > >> > [get] Can't get
> > > > >> > http://www.ibiblio.org/maven/antlr/jars/antlr-2.7.5.jar to
> > > > >> > C:\velocity-1.5-beta2\bin\lib\antlr-2.7.5.jar
> > > > >> >
> > > > >> > BUILD FAILED
> > > > >> > C:\velocity-1.5-beta2\build\build.xml:142: The following error
> > > > >> > occurred while ex ecuting this line:
> > > > >> > C:\velocity-1.5-beta2\build\download.xml:33: The following
> error
> > > > >> occurred
> > > > >> > while
> > > > >> > executing this line:
> > > > >> > C:\velocity-1.5-beta2\build\download.xml:69: The following
> error
> > > > >> occurred
> > > > >> > while
> > > > >> > executing this line:
> > > > >> > C:\velocity-1.5-beta2\build\download.xml:54: Can't get
> > > > >> > http://www.ibiblio.org/ma ven/antlr/jars/antlr-2.7.5.jar to
> > > > >> > C:\velocity-1.5-beta2\bin\lib\antlr-2.7.5.jar
> > > > >> >
> > > > >> > Total time: 2 seconds
> > > > >> > ################################################
> > > > >> >
> > > > >> > Thanks a lot,
> > > > >> > Markus
> > > > >> >
> > > > >> >
> > > > >> > ---------------------------------------------------------------
> ----
> > > > >> > -- To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > >> > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >> >
> > > > >>
> > > > >>
> > > > >> -----------------------------------------------------------------
> ----
> > > > >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > >> For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > > >-------------------------------------------------------------------
> --
> > > > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > >For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > > --
> > > > Henning P. Schmiedehausen -- [EMAIL PROTECTED] | J2EE, Linux,
> > > > 91054 Buckenhof, Germany -- +49 9131 506540 | Apache person
> > > > Open Source Consulting, Development, Design | Velocity - Turbine guy
> > > >
> > > > "Save the cheerleader. Save the world."
> > > >
> > > > --------------------------------------------------------------------
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > > >
> > > > --------------------------------------------------------------------
> -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Forio Business Simulations
> > >
> > > Will Glass-Husain
> > > [EMAIL PROTECTED]
> > > www.forio.com
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Forio Business Simulations
>
> Will Glass-Husain
> [EMAIL PROTECTED]
> www.forio.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]