You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Jim Rudnicki <jd...@pacbell.net> on 2001/10/06 11:00:27 UTC

[PATCH] 1.2rc1 Anakia example build .bat

The build.bat file for the Anakia example has a hardcoded path to Ant and
also erases the user's current ANT_HOME variable.  Also, it did not add the
Ant jars to the classpath. The attached patch fixes these.

I tested this on Win2000.  It will also work on Win98 iff the line ends are
fixed in both build.bat and lcp.bat

Jim



Re: [BUG] 1.2rc1 missing file in dist

Posted by Jon Stevens <jo...@latchkey.com>.
on 10/7/01 12:29 PM, "Jim Rudnicki" <jd...@pacbell.net> wrote:

> The all important .vsl file / template for building the documentation with
> Anakia seems to be missing from both the distribution and even CVS.
> 
> Jim

      <echo>
       #######################################################
       #
       #  Now using Anakia to transform our XML documentation
       #  to HTML.
       #
       #  Note : this step depends upon having the jakarta-site2
       #  project located as a peer to the jakarta-velocity
       #  directory (the directory that holds the Velocity
       #  distribution.)  That means that jakarta-site2 and
       #  jakarta-velocity are located in the same subdirectory.
       #
       #  Please see :
       #    http://jakarta.apache.org/site/cvsindex.html
       #  for more information on obtaining jakarta-site2.
       #
       #######################################################
      </echo>


Re: [BUG] 1.2rc1 missing file in dist

Posted by "Geir Magnusson Jr." <ge...@optonline.net>.
On 10/7/01 3:29 PM, "Jim Rudnicki" <jd...@pacbell.net> wrote:

> The all important .vsl file / template for building the documentation with
> Anakia seems to be missing from both the distribution and even CVS.
> 
> Jim
> 

If Jon's reponse wasn't clear....

The .vsl comes from the jakarta-site2 tree - it's the same .vsl that we use
for the jakarta (and now Apache Foundation) sites.  This ensures that we
never fall out of synch, although it is a minor pain in that you must keep
the trees peers of one another in the directory layout. (But just a minor
one...)

Anyway, checkout jakarta-site2 to be a parallel directory to
jakarta-velocity, and all will be well.


-- 
Geir Magnusson Jr.     geirm@optonline.net
System and Software Consulting
"They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - Benjamin Franklin



[BUG] 1.2rc1 missing file in dist

Posted by Jim Rudnicki <jd...@pacbell.net>.
The all important .vsl file / template for building the documentation with
Anakia seems to be missing from both the distribution and even CVS.

Jim


[PATCH] Anakia docs

Posted by Jim Rudnicki <jd...@pacbell.net>.
> Thanks. I just ended up removing the .bat/.sh files as you should really
> just install Ant and use that directly. They are left over old stuff...

Good. If that is done, then this will help.

Index: ./xdocs/anakia.xml
===================================================================
RCS file: /home/cvspublic/jakarta-velocity/xdocs/anakia.xml,v
retrieving revision 1.12
diff -r1.12 anakia.xml
99,103c99,105
<     After building Velocity, <code>cd</code> into the
<     jakarta-velocity/examples/anakia/build directory and run
<     <code>./build.sh</code>. (Shell scripts will work on the Windows
<     platform if you install <a
<     href="http://sources.redhat.com/cygwin/">Cygwin</a>.)
---
>     To use Anakia with Ant, several jar files must be copied into Ant's
/lib
>     directory.  Of course, velocity12.jar must be copied.  In addition,
the
>     following support jars must be copied from the build/lib directory of
>     the Velocity distribution: jdom-b7.jar, xerces-2.0.0.jar,
>     werken.xpath.jar, and antlr-runtime.jar.  Note that the version
numbers
>     will change with time.  The run scripts (ant.sh or ant.bat) add all
the jars
>     in Ant's /lib directory, so you do not have to add these jars to the
classpath.
106c108,110
<     Output from the build.sh script, in this case HTML files, is placed
---
>     With the jars installed, change to the examples/anakia folder and
execute the
>     command "Ant".
>     Output from the Ant build process, in this case HTML files, is placed

The command completed successfully.


Re: [PATCH] 1.2rc1 Anakia example build .bat

Posted by Jon Stevens <jo...@latchkey.com>.
Thanks. I just ended up removing the .bat/.sh files as you should really
just install Ant and use that directly. They are left over old stuff...

-jon