|
Hi Julien, you can use WO 5.2 and 5.4 on the same Mac. I copied all the WO 5.2 stuff under /Developer/WebObjects52 and followed the the description under http://wiki.objectstyle.org/confluence/display/WO/WO+5.4+Getting+Started#WO5.4GettingStarted-DevelopingwithbothWebObjects5.4and5.3 The changed properties files and scripts to switch between 5.2 and 5.4 are attached. Stefan Julien Verez schrieb: Hi list, |
#This file stores the wo specific properties #Fri Aug 22 16:09:04 CEST 2008 wo.wosystemroot=/System wo.wolocalroot=/ wo.woroot=/ wo.dir.reference.api=/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.WebObjectsReference.docset/Contents/Resources/Documents/documentation/MacOSXServer/Reference/WO54_Reference wo.version=5.4
#This file stores the wo specific properties #Fri Aug 22 16:09:04 CEST 2008 wo.wosystemroot=/Developer/WebObjects52/System wo.wolocalroot=/Developer/WebObjects52 wo.woroot=/Developer/WebObjects52 wo.dir.reference.api=/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.WebObjectsReference.docset/Contents/Resources/Documents/documentation/MacOSXServer/Reference/WO54_Reference wo.version=5.2
#!/bin/sh
WO54PATH=${NEXT_ROOT}
WO52PATH=/Developer/WebObjects52
TMPDIR=/tmp
WOBUILDPROPS=~/Library/wobuild.properties
WOVERSION=54
echo ${WOVERSION}
WOSYSVERSION=
WOVERSIONFILE=${WO54PATH}/System/Library/Frameworks/JavaWebObjects.framework/Resources/version.plist
if [ -f ${WOVERSIONFILE} ] ; then
WOSYSVERSION=`cat ${WOVERSIONFILE} | grep -A 1 CFBundleShortVersionString | \
tail -1 | sed -e 's/^.*5\.\([0-9]\).*/5\1/'`
fi
if [ X${WOSYSVERSION} != X54 ] ; then
echo WebObjects 5.4 is not currently installed
exit
fi
if [ ! -d ${WO52PATH}/System -a ${WOVERSION} -eq 52 ] ; then
echo WebObjects 5.2 is not currently installed
exit
fi
if [ ! -e ${WO52PATH}/System/Library/WebObjects/Executables/WOOpenURL ] ; then
mkdir -p ${WO52PATH}/System/Library/WebObjects/Executables
ln -s /usr/bin/open
${WO52PATH}/System/Library/WebObjects/Executables/WOOpenURL
fi
if [ -f ${WOBUILDPROPS} ]
then
if [ ! -f ${WOBUILDPROPS}54 ] ; then
cp ${WOBUILDPROPS} ${WOBUILDPROPS}54
fi
if [ ! -f ${WOBUILDPROPS}52 ] ; then
cat ${WOBUILDPROPS} | sed -E
"s...@=${wo54path}.(System|Lib|$)@=${WO52PATH}/\...@g ; s@/\$@@" >
${WOBUILDPROPS}52
fi
else
echo Cannot find ${WOBUILDPROPS}. You need to run WOLips at least once.
exit 1
fi
WOVERSTRING=`echo ${WOVERSION} | sed -E 's/^([0-9])/\1./'`
echo Setting wobuild.properties for WebObjects ${WOVERSTRING}
cp ${WOBUILDPROPS}${WOVERSION} ${WOBUILDPROPS}
#!/bin/sh
WO54PATH=${NEXT_ROOT}
WO52PATH=/Developer/WebObjects52
TMPDIR=/tmp
WOBUILDPROPS=~/Library/wobuild.properties
WOVERSION=52
echo ${WOVERSION}
WOSYSVERSION=
WOVERSIONFILE=${WO54PATH}/System/Library/Frameworks/JavaWebObjects.framework/Resources/version.plist
if [ -f ${WOVERSIONFILE} ] ; then
WOSYSVERSION=`cat ${WOVERSIONFILE} | grep -A 1 CFBundleShortVersionString | \
tail -1 | sed -e 's/^.*5\.\([0-9]\).*/5\1/'`
fi
if [ X${WOSYSVERSION} != X54 ] ; then
echo WebObjects 5.4 is not currently installed
exit
fi
if [ ! -d ${WO52PATH}/System -a ${WOVERSION} -eq 52 ] ; then
echo WebObjects 5.2 is not currently installed
exit
fi
if [ ! -e ${WO52PATH}/System/Library/WebObjects/Executables/WOOpenURL ] ; then
mkdir -p ${WO52PATH}/System/Library/WebObjects/Executables
ln -s /usr/bin/open
${WO52PATH}/System/Library/WebObjects/Executables/WOOpenURL
fi
if [ -f ${WOBUILDPROPS} ]
then
if [ ! -f ${WOBUILDPROPS}54 ] ; then
cp ${WOBUILDPROPS} ${WOBUILDPROPS}54
fi
if [ ! -f ${WOBUILDPROPS}52 ] ; then
cat ${WOBUILDPROPS} | sed -E
"s...@=${wo54path}.(System|Lib|$)@=${WO52PATH}/\...@g ; s@/\$@@" >
${WOBUILDPROPS}52
fi
else
echo Cannot find ${WOBUILDPROPS}. You need to run WOLips at least once.
exit 1
fi
WOVERSTRING=`echo ${WOVERSION} | sed -E 's/^([0-9])/\1./'`
echo Setting wobuild.properties for WebObjects ${WOVERSTRING}
cp ${WOBUILDPROPS}${WOVERSION} ${WOBUILDPROPS}
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]

