I've just fetched the latest CVS image for Jetspeed and iCalendar doesn't
compile (with JDK 1.2 tools.jar not jikes) :
D:\cvs\java.apache.org\jetspeed\bin\src\org\apache\jetspeed\project\icalendar\pa
rameters\XParam.java:104: Exception java.lang.Exception must be caught, or it mu
st be declared in the throws clause of this method.
ICalendarErrorResources.getInstance().getMessage(
Also, Kevin please don't put jikes as the default compiler in build.xml.
cvs -z9 diff build.xml (in directory D:\cvs\java.apache.org\jetspeed\build)
Index: build.xml
===================================================================
RCS file: /products/cvs/jetspeed/jetspeed/build/build.xml,v
retrieving revision 1.28
diff -r1.28 build.xml
5c5
< <property name="build.compiler" value="jikes"/>
---
> <property name="build.compiler" value="classic"/>
39d38
<
41,42d39
<
< <!--
59d55
< -->
And here's a patch for the build scripts, to load the appropriate
libs...
I have a diff for build.bat (tested), build.sh (not tested) and I add
a build-cygnus.sh file for those like-minded people who uses cygnus
unix tools on NT.
cvs -z9 diff build.bat (in directory D:\cvs\java.apache.org\jetspeed\build)
Index: build.bat
===================================================================
RCS file: /products/cvs/jetspeed/jetspeed/build/build.bat,v
retrieving revision 1.2
diff -r1.2 build.bat
5,6d4
< REM The default "core" is suggested
< REM and does not require any external packages
9d6
< REM "naming" target builds Turbine core + naming classes
17d13
< REM set TARGET=naming
22,23c18
< REM Define the paths to each of the packages.
< REM If you use the naming target then NAMING must be defined.
---
> REM These path should be OK in any environments
25,29c20,31
< set JAVAMAIL=C:\classes\javamail-1.1.2\mail.jar
< set JAF=C:\classes\jaf-1.0.1\activation.jar
< set VILLAGE=e:\projects\village\classes
< set ECS=e:\projects\ecs\classes
< set NAMING=
---
> set ECS=..\lib\ecs.jar
> set TURBINE=..\lib\turbine-2.0.jar
> set COCOON=..\lib\cocoon-1.6.jar;..\lib\cocoon-ext-servlet2.2.jar
> set CASTOR=..\lib\castor-0.7.4.jar
> set VILLAGE=..\lib\village.jar
> set XALAN=..\lib\xalan.jar
> set XERCES=..\lib\serces.jar
>
> REM -------------------------------------------------------------------
> REM Define the path to your JSDK
> REM -------------------------------------------------------------------
> set JSDK=d:\java\lib\jsdk.jar
45c47
< set
CP=%JSDK%;%JAVAMAIL%;%JAF%;%VILLAGE%;%ECS%;%NAMING%;ant.jar;projectx-tr2.jar;javac.jar
---
> set
>CP=%JSDK%;%ECS%;%TURBINE%;%COCOON%;%CASTOR%;%VILLAGE%;%XALAN%;%XERCES%;ant.jar;projectx-tr2.jar;javac.jar
cvs -z9 diff build.sh (in directory D:\cvs\java.apache.org\jetspeed\build)
Index: build.sh
===================================================================
RCS file: /products/cvs/jetspeed/jetspeed/build/build.sh,v
retrieving revision 1.3
diff -r1.3 build.sh
6d5
< # and does not require any external packages
8,10c7,8
< # "core" target builds Turbine core classes
< # "naming" target builds Turbine core + naming classes
< # "clean" target #oves bin directory
---
> # "core" target builds JetSpeed core classes
> # "clean" target removes bin directory
15d12
< # TARGET=javadoc
17d13
< # TARGET=naming
20a17,24
> ECS=../lib/ecs.jar
> TURBINE=../lib/turbine-2.0.jar
> COCOON=../lib/cocoon-1.6.jar:../lib/cocoon-ext-servlet2.2.jar
> CASTOR=../lib/castor-0.7.4.jar
> VILLAGE=../lib/village.jar
> XALAN=../lib/xalan.jar
> XERCES=../lib/serces.jar
>
22,23c26
< # Define the paths to each of the packages
< # If you use the naming target then NAMING must be defined.
---
> # Define the path to your JSDK
25,29c28,29
< VILLAGE=/projects/servlets/village/classes
< ECS=/projects/servlets/ecs/classes
< JAVAMAIL=/classes/javamail/mail.jar
< JAF=/classes/jaf/activation.jar
< NAMING=
---
> JSDK=/java/lib/jsdk.jar
>
37c37
<
CP=${CLASSPATH}:${JSDK}:${JAVAMAIL}:${JAF}:${VILLAGE}:${ECS}:${NAMING}:ant.jar:projectx-tr2.jar
---
>
>CP=${CLASSPATH}:${JSDK}:${ECS}:${TURBINE}:${COCOON}:${CASTOR}:${VILLAGE}:${XALAN}:${XERCES}:ant.jar:projectx-tr2.jar
build-cygnus.sh
8<------------------------------------8<
#!/bin/sh
# -----------------------------------------------------------
# The targets are the different build scripts.
# The default "dist" is suggested
#
# "core" target builds JetSpeed core classes
# "clean" target removes bin directory
# "dist" target builds "core" + jar file
#
# -----------------------------------------------------------
TARGET=${1}
# TARGET=core
# TARGET=clean
# TARGET=dist
ECS="../lib/ecs.jar"
TURBINE="../lib/turbine-2.0.jar"
COCOON="../lib/cocoon-1.6.jar;../lib/cocoon-ext-servlet2.2.jar"
CASTOR="../lib/castor-0.7.4.jar"
VILLAGE="../lib/village.jar"
XALAN="../lib/xalan.jar"
XERCES="../lib/serces.jar"
#-------------------------------------------------------------------
# Define the path to your JSDK
#-------------------------------------------------------------------
JSDK="d:/java/lib/jsdk.jar"
#--------------------------------------------
# No need to edit anything past here
#--------------------------------------------
if test -z "${TARGET}"; then
TARGET=dist
fi
CP="${CLASSPATH};${JSDK};${ECS};${TURBINE};${COCOON};${CASTOR};${VILLAGE};${XALAN};${XERCES};ant.jar;projectx-tr2.jar"
BUILDFILE=build.xml
java -classpath ${CP} org.apache.tools.ant.Main -buildfile ${BUILDFILE}
${TARGET}
8<------------------------------------8<
--
Rapha�l Luta - [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]