WO app building (was: searching for a weird deletion)
WO app building (was: searching for a weird deletion)
- Subject: WO app building (was: searching for a weird deletion)
- From: OC <email@hidden>
- Date: Fri, 20 Feb 2015 19:05:08 +0100
Ramsey,
On 20. 2. 2015, at 18:06, Ramsey Gurley <email@hidden> wrote:
>> On 19. 2. 2015, at 19:15, Ramsey Gurley <email@hidden> wrote:
>>> You do a lot of weird stuff :)
>> I am not using Eclipse anymore
> I stand by my original statement :D
:)
Anyway, as always, YMMV, but I found Eclipse next-to-unusable myself.
>> -- can't speak for other platforms, but on Mac, I have never seen a worse IDE.
> I’ve heard this sentiment on list plenty of times before. Care to explain how you manage to develop a WO app without WOLips? I’m sure there are several folks here who would be keen to hear about alternatives to Eclipse.
Me, I am using Xcode -- not that it's a great IDE either, but I'm sorta used to it, and I use it all the time to develop Mac OS X and iOS apps. Thus, it helps to have consistent environment all the time. For others, integrating to another IDE like AppCode would be probably more productive.
To be able to build WO apps, I simply wrote a couple of scripts. The gist is really simple -- when all the fancy stuff, error recovering, incremental compilation, AST support etc. etc. etc. gets removed, essentially just the following remains:
===
groovyc -cp $MYCLASSPATH -e -j -d $XCODEBUILDDIR/build $SOURCE_ROOT/**/*.(groovy|java)
jar -cf $XCODEBUILDDIR/$APPNAME.wo/Content/Resources/Java -C $XCODEBUILDDIR/build .
#cp -R $SOURCE_ROOT/components/*.wo $SOURCE_ROOT/resources/* $XCODEBUILDDIR/$APPNAME.wo/Content/Resources
===
The resources copy phase -- including Info.plist, classpath, and the launch script, which is similar to (but not identical to) the Apple's one -- is commented out, for I left it to Xcode to copy resources to the target bundle; it can do it quite nicely.
I am going to improve the scripts so as they can be used stand-alone, too -- one of these days. Alas, so far, I had not time for that :/
Now... the current scripts are not, repeat *not*, prepared for general use. They are only 80-odd per cent finished; they do work, but there's still LOTS of things hard-coded. They very definitely won't work for anyone with another IDE than Xcode, and there's bound to be lots of problems for anyone with a different setup than the one of mine (there's e.g., an extra code for two different shared code folders with hard-coded names, an awk filter to turn groovy compiler output to be properly shown in Xcode, and much worse mess I won't mention here :)). That all said and triple emphasized -- whomemer wants to, the full scripts are freely available at http://www.ocs.cz/CD/ocswobuildxcode.zip
All the best,
OC
_______________________________________________
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