• 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: Building WOLips projects from command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Building WOLips projects from command line


  • Subject: Re: Building WOLips projects from command line
  • From: Kieran Kelleher <email@hidden>
  • Date: Tue, 22 May 2007 15:46:42 -0400

.....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@hidden 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@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net


This email sent to email@hidden


--

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@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Building WOLips projects from command line (From: email@hidden)
 >Re: Building WOLips projects from command line (From: Chuck Hill <email@hidden>)

  • Prev by Date: Problems with DirectAction Response header
  • Next by Date: WOHyperlink, Direct Action and session id
  • Previous by thread: Re: Building WOLips projects from command line
  • Next by thread: Re: Building WOLips projects from command line
  • Index(es):
    • Date
    • Thread