• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Downgrading WebObjects from 54 to 52
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Downgrading WebObjects from 54 to 52


  • Subject: Re: Downgrading WebObjects from 54 to 52
  • From: Stefan Klein <email@hidden>
  • Date: Fri, 20 Mar 2009 11:26:24 +0100

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,

I would like to downgrade my webobject 54 to 52. (because I work on project develop with WE52 and I have some error running it on WE54)

On my WE52 cd, I have 2 files "install.pkg" and "uninstall.pkg" but on my Leopard dvd, there is only the "install.pkg" file for WE54.

I found in documentation a line to uninstall XCode Tools:
"$ sudo <Xcode directory>/Library/uninstall-devtools --mode=all" seen in "About XCode Tools.pdf" but I doesn't uninstall WebObjects.

I tried to install WE52 over WE54 but I'm still in 54.

Any help will be very appreciated!

Regards,
--
signature
logo
Julien Verez
Centre de Ressources Informatiques

Université de Lille 1
Bâtiment M4
59655 Villeneuve d'Ascq
email@hidden
+33 (0)3 20 33 61 81



_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
#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}/\1@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}/\1@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@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Downgrading WebObjects from 54 to 52
      • From: Julien Verez <email@hidden>
References: 
 >Downgrading WebObjects from 54 to 52 (From: Julien Verez <email@hidden>)

  • Prev by Date: Downgrading WebObjects from 54 to 52
  • Next by Date: Re: Access Control [was: Digging up a Session object from an EOGenericRecord]
  • Previous by thread: Downgrading WebObjects from 54 to 52
  • Next by thread: Re: Downgrading WebObjects from 54 to 52
  • Index(es):
    • Date
    • Thread