.....and if you are like me having had to update some old bash scripts to now work with the default build.xml in WOLips projects instead of xcodebuild command, you can use the -lib arg in the ant command and refer to the woproject.jar on your HD (one comes with WOLips download and one is included in Wonder download too) ........ for example here is a bash script that builds and installs a bunch of frameworks from my eclipse workspace ...... note the -lib arg in the ant command.

PS. the chmod -R 777 is wide open permissions, but since this is my dev laptop I don't care. Deployment scripts take care of permissions

<snip>
#!/bin/bash

## A script to build and install all my custom frameworks
## Version 4/17/2007

# Must be run as root
if [ `whoami` != "root" ]; then
  echo "You must be root or execute with sudo to use this!"
  exit 1
fi

## Parameters
WOPROJECT_LIB="/Users/kieran/WonderLatest/Wonder/Build/lib/ woproject.jar"
ECLIPSE_WORKSPACE="/Users/kieran/DevProjects/eclipseworkspace/"
FRAMEWORKS_DIR="/Library/Frameworks/"

echo "Preparing to install..."

echo Started at `date`


################## WKEmailData #########################
PROJECT_NAME="WKEmailData"
if [ -d $FRAMEWORKS_DIR$PROJECT_NAME.framework ]; then
        echo deleting old $PROJECT_NAME
        rm -r $FRAMEWORKS_DIR$PROJECT_NAME.framework
fi
echo installing new version of $PROJECT_NAME
cd $ECLIPSE_WORKSPACE$PROJECT_NAME/
echo "ant -lib $WOPROJECT_LIB clean install"
ant -lib $WOPROJECT_LIB clean install
chmod -R 777 $FRAMEWORKS_DIR$PROJECT_NAME.framework

################## WKDemography #########################
PROJECT_NAME="WKDemography"
if [ -d $FRAMEWORKS_DIR$PROJECT_NAME.framework ]; then
        echo deleting old $PROJECT_NAME
        rm -r $FRAMEWORKS_DIR$PROJECT_NAME.framework
fi
echo installing new version of $PROJECT_NAME
cd $ECLIPSE_WORKSPACE$PROJECT_NAME/
echo "ant -lib $WOPROJECT_LIB clean install"
ant -lib $WOPROJECT_LIB clean install
chmod -R 777 $FRAMEWORKS_DIR$PROJECT_NAME.framework


################## WKFoundation #########################
PROJECT_NAME="WKFoundation"
if [ -d $FRAMEWORKS_DIR$PROJECT_NAME.framework ]; then
        echo deleting old $PROJECT_NAME
        rm -r $FRAMEWORKS_DIR$PROJECT_NAME.framework
fi
echo installing new version of $PROJECT_NAME
cd $ECLIPSE_WORKSPACE$PROJECT_NAME/
echo "ant -lib $WOPROJECT_LIB clean install"
ant -lib $WOPROJECT_LIB clean install
chmod -R 777 $FRAMEWORKS_DIR$PROJECT_NAME.framework


################## WKPrototypes #########################
PROJECT_NAME="WKPrototypes"
if [ -d $FRAMEWORKS_DIR$PROJECT_NAME.framework ]; then
        echo deleting old $PROJECT_NAME
        rm -r $FRAMEWORKS_DIR$PROJECT_NAME.framework
fi
echo installing new version of $PROJECT_NAME
cd $ECLIPSE_WORKSPACE$PROJECT_NAME/
echo "ant -lib $WOPROJECT_LIB clean install"
ant -lib $WOPROJECT_LIB clean install
chmod -R 777 $FRAMEWORKS_DIR$PROJECT_NAME.framework

################## WKRemoteClient #########################
PROJECT_NAME="WKRemoteClient"
if [ -d $FRAMEWORKS_DIR$PROJECT_NAME.framework ]; then
        echo deleting old $PROJECT_NAME
        rm -r $FRAMEWORKS_DIR$PROJECT_NAME.framework
fi
echo installing new version of $PROJECT_NAME
cd $ECLIPSE_WORKSPACE$PROJECT_NAME/
echo "ant -lib $WOPROJECT_LIB clean install"
ant -lib $WOPROJECT_LIB clean install
chmod -R 777 $FRAMEWORKS_DIR$PROJECT_NAME.framework


################## WKRemoteMailingServices #########################
PROJECT_NAME="WKRemoteMailingServices"
if [ -d $FRAMEWORKS_DIR$PROJECT_NAME.framework ]; then
        echo deleting old $PROJECT_NAME
        rm -r $FRAMEWORKS_DIR$PROJECT_NAME.framework
fi
echo installing new version of $PROJECT_NAME
cd $ECLIPSE_WORKSPACE$PROJECT_NAME/
echo "ant -lib $WOPROJECT_LIB clean install"
ant -lib $WOPROJECT_LIB clean install
chmod -R 777 $FRAMEWORKS_DIR$PROJECT_NAME.framework


WKEOFExtensions
################## WKEOFExtensions #########################
PROJECT_NAME="WKEOFExtensions"
if [ -d $FRAMEWORKS_DIR$PROJECT_NAME.framework ]; then
        echo deleting old $PROJECT_NAME
        rm -r $FRAMEWORKS_DIR$PROJECT_NAME.framework
fi
echo installing new version of $PROJECT_NAME
cd $ECLIPSE_WORKSPACE$PROJECT_NAME/
echo "ant -lib $WOPROJECT_LIB clean install"
ant -lib $WOPROJECT_LIB clean install
chmod -R 777 $FRAMEWORKS_DIR$PROJECT_NAME.framework



echo Done at `date`
</snip>


On May 22, 2007, at 3:20 PM, Chuck Hill wrote:

This is how I do it...

Add to build.xml:

                <!-- woproject Tasks -->
<taskdef file="${user.library.dir}/woproject_tasks.properties" classpath="${woproject.path}" />

Create this file (or is this part of WOLips, I forget)
~/Library/woproject_tasks.properties:

woframework=org.objectstyle.woproject.ant.WOFramework
wocompile=org.objectstyle.woproject.ant.WOCompile
woapplication=org.objectstyle.woproject.ant.WOApplication


Chuck


On May 22, 2007, at 11:28 AM, [EMAIL PROTECTED] wrote:

Everyone,

When I try to build a WO framework like this:

ant install

I get an error stating that it can't find the java class:

org.objectstyle.woproject.ant.WOFramework

How do I tell ant on the command line where the class is?

Thanks,
Ken

 _______________________________________________
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/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
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/kieran_lists% 40mac.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
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]

Reply via email to