« Return to Thread: warnings by install velocity

Re: warnings by install velocity

by Richard-147 :: Rate this Message:

Reply to Author | View in Thread

Hi,

some more questions. I tried now to install velocity-tools-1.4-src. Yes,
if i test my build with "ant test" its says everything is alright. But i
get warnings, like:

compile.struts:
Compiling 55 source files to C:\apache\velocity-tools-1.4-src\build\classes
C:\apache\velocity-tools-1.4-src\src\java\org\apache\velocity\tools\generic\log\CommonsLogLogSystem.java:25:
warning: [deprecation] org.apache.velocity.runtime.log.LogSystem in
org.apache.velocity.runtime.log has been deprecated
import org.apache.velocity.runtime.log.LogSystem;

I get 75 warnings, and they tell me something about [deprecation].

For what are this warnings?

Is it right, that i have to install velocity or velocity-tolls and not both?

I tried to ad to my CLASSPATH "velocity-1.6.2-dep.jar", but then the
build routine gives me the error:

do-http-download:

docs:
Loading stylesheet C:\apache\velocity-tools-1.4-src\xdocs\site.dvsl
 [error] Failed to load Directive: org.apache.dvsl.directive.MatchDirective
Failed to read stylesheet C:\apache\velocity-tools-1.4-src\xdocs\site.dvsl

If i now type "ant test" (in velocity-tools-1.4-src directory) i even
get "BUILD SUCCESSFUL"???

For what is this test, if it always says "BUILD SUCCESSFUL", even if
there are errors?

Well i just want to start with velocity, without to run in problems,
because velocity isn't right installed.


One more question. If i install "velocity-1.6.2" i have to add the
"velocity-1.6.2.jar" file to my classpath. (Is there a variable like
VELOCITY_HOME?)

If i install "velocity-tools-1.4-src", what do i have to add to my
classpath? Because there is now .jar file in the directory  
"C:\apache\velocity-tools-1.4-src"

Richard schrieb:

> Hi all,
>
> a am new to this usergroup. I would like to try to use velocity for
> generating pdf with xml. I hope this is possible.
>
> I can't install velocity correct, on windows vista. I installed ant, i
> hope so.
>
> By installing velocity-1.6.2 and velocity-tools-1.4-src i a am getting
> a lot of warnings like:
>
> velocity:
> ...\velocity-1.6.2\bin\src\org\apache\velocity\anakia\AnakiaTask.java:34:
> package org.apache.tools.ant does not exist
> import org.apache.tools.ant.BuildException;
>
> What meas package org.apache.tools.ant does not exist. My
> java.class.path has "C:\ANT_HOME\lib\ant.jar"
>
> or
>
> ...\velocity-1.6.2\bin\src\org\apache\velocity\anakia\AnakiaTask.java:217:
> cannot find symbol
> symbol  : class BuildException
> location: class org.apache.velocity.anakia.AnakiaTask
>    public void execute () throws BuildException
>
> I get 15 warnings and then the build routines says:
>
> docs:
>
>  #######################################################
>  #
>  #  Now using Anakia to transform the XML documentation
>  #  to HTML.
>  #
>  #  using project file: project.xml
>  #
>  #  Note: set property "docs.project" to "project.xml"
>  #  for distribution and "project-website.xml" for
>  #  website.
>  #######################################################
>   Transforming into:
> Z:\tools\entwicklung\anakia_apache\velocity-1.6.2\bin\docs
> Input:  user-guide.xml
>
> Error: The content of elements must consist of well-formed character
> data or markup.
>       Line: 760 Column: 50
>
> There is no user-guide.html in the docs folder.
>
> May i can start with solving the warnings from velocity and than go to
> the warnings of velocity-tools.
>
> Could someone point my, where my problem is. I can't read/understand
> the warnings.
>
> Tanks in advance.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@...
> For additional commands, e-mail: user-help@...
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@...
For additional commands, e-mail: user-help@...

 « Return to Thread: warnings by install velocity