September 13, 2006
Using Ant with WO? Don't Forget WOProject!
I was attempting to build, on a testing server, one of the WO-based applications for which I recently became responsible. The process uses ant to read a build.xml file, do the CVS checkouts and build the application. I ran into a problem right away:
build.xml:15: taskdef class org.objectstyle.woproject.ant.WOApplication cannot be found
Ah, yes... I remembered that on my Mac OS X development machine, I needed to install a WOProject jar in order for ant to build a WO application properly. I couldn't remember where I put the jar, though. I couldn't find it with the Finder. (So much for that application's name.) Turns out it was in the .ant/lib subdirectory of my home. So I copied it over to the testing server and the build completed properly.
After that, I looked around for some helpful WO & ant tips.
The red shed didn't disappoint: rentzsch.com: WOProject: Ant, WebObjects and You
The source of WOProject: Home - WOProject / WOLips - Confluence
Posted by lsloan at 12:04 PM | Comments (0)
Specifying a WebObjects Application's Port Number
Yesterday I was trying to remember how to specify the port number a WebObjects application should listen to when it runs on my development machine. I remember Jason showing me how to do it with a different application. It was a bit obscure, but not difficult.
I couldn't find it anywhere. So, while I wanted to ask my friend Gavin Eadie about it, he's on vacation. I found a message he sent to me and a few WO developers suggesting we set up a group of our own. So I emailed those other people and asked if one of them could help me.
Barry Starrfield replied back to tell me that I could specify the port by selecting the executable in the project, open the info window for it, select the argument tab and enter the argument, "-WOPort xxxx". I tried it and it works well. I think the method Jason showed me was different, though. Barry confirmed that I would have to unset that option before I move the application to production, but I don't remember Jason ever saying that was necessary. Perhaps the method Jason showed me used a special feature of the WATS-developed libraries.
Posted by lsloan at 10:27 AM | Comments (0)