on 2/5/01 3:01 PM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> jmartin 01/02/05 15:01:49
>
> Added: src/scripts alexandria.bat
> Log:
> Added windows batch file to run alexandria
>
> Revision Changes Path
> 1.1 jakarta-alexandria/src/scripts/alexandria.bat
>
> Index: alexandria.bat
> ===================================================================
> @echo off
> setlocal
>
> if defined %ALEX_HOME% goto RUN
>
> set ALEX_HOME=.
>
> :RUN
> set
> CLASSPATH=%ALEX_HOME%\Alexandria.jar;%ALEX_HOME%\lib\castor-0.8.11.jar;%ALEX_H
> OME%\lib\xalan.jar;%ALEX_HOME%\lib\xerces.jar
>
> ant -Dbasedir=%ALEX_HOME% -buildfile %ALEX_HOME%\xml\alexandria.xml %*
>
> endlocal
>
Ok, I'm not sure that I like this at all...
#1. You are assuming that ant.bat is installed in the classpath.
#2. You are assuming that castor-0.8.11 is in the lib directory.
To fix:
#1. Make a more generic .bat file. You can use examples from the Turbine
project. The only thing in that .bat file with regards to classpath should
be what is needed to run Ant.
#2. In the alexandria.xml file, you should have something like this:
<path id="classpath">
<fileset dir=".">
<include name="**/*.jar"/>
</fileset>
<fileset dir="../lib">
<include name="**/*.jar"/>
</fileset>
</path>
thanks..
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/> | <http://java.apache.org/turbine/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]