Re: Anyone using xcode 1.5 to develop java web apps?
Re: Anyone using xcode 1.5 to develop java web apps?
- Subject: Re: Anyone using xcode 1.5 to develop java web apps?
- From: Mark Grimes <email@hidden>
- Date: Thu, 22 Jul 2004 11:32:30 -0700
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> I have been asked to evaluate XCode 1.5 to develop JSP based java web
> apps with XCode 1.5 beta. The documentation is way lacking, so anyone
> have any general feedback or tips on using it this way?
You want documentation on stuff that hasn't been released yet? :)
> One question is that the application will be built on a number of jar
> files, the source of each one has to be modified in parallel with the
> main application. Each of this "subprojects" is in a separate CVS
> project. How do I set up the XCode project and targets so that I can
> build each jar first then the main project? The java module template
> sets up a single target which just passes the build.xml file to ant.
> Without making major changes to the build.xml (which I am not allowed
> to do apparently), is what I need to do possible?
I have multiple Java tool templated projects I maintain for work under
Xcode 1.2 under the same being checked into the same cvs branch. I use
Ant for build scripts via customized targets, with customized
executables spawning /usr/bin/java to call the -jar programname arg1
arg2 ... argn. I recommend doing something in this fashion. The trick
is when selecting the template type for the new target, pick the special
external one from the list.
Now my project is checked into cvs as a single entity, as the multiple
projects in Xcode represent a client and a server piece. The reason I
did this is because there is no way to allow two seperate executables to
run at the sametime through Xcode (the server and the client) -- so I
had to make an Xcode project out of each to make this happen.
This is certainly a feature I would like to see in Xcode in the future
but have not gotten around to filling out a feature request for it.
But I digress -- if you would like to check in multiple projects, you
can assign each of them seperate xcode projects and stick them in
subdirectories so they are self-contained (autonomous) builds.
Stick ant xml build files in each of them and a main build file that
systematically calls the other build files in turn. Ant is just nice
for maintaining more complicated builds where you may have dependency
builds, main builds and packaging components -- and the os agnostic
nature of it for deployment is superb.
> One possibility of course to just to build separate project files for
> each subproject, but it would be nice to build everything at once (but
> still keep the sources in CVS separate, since they may be shared with
> other projects I am not working on).
You can tinker with this, but in my experience you may get frustrated
when you find you can only debug one runtime at a time.
> My normal IDE for java is IntelliJ where this is quite easy to do, but
> is not an option here at all.
Xcode is not perfect, but it is my choice because I am primarily a
Cocoa/Objective-C zealot that also codes Java for my jobby job. There
are probably plenty of better IDE's for coding OS agnostic java code,
but I would recommend Xcode highly if you are wanting to take advantage
of OSX's Cocoa components of Java in the future.
I can't afford to test out new Xcode beta builds in my production
environment so your mileage may vary.
Cheers!
Mark Grimes
Xcode Evangelist
-----BEGIN PGP SIGNATURE-----
Version: PGP SDK 3.2.2
iQA/AwUBQQAIOw+XGmEXIfFdEQLYngCdFJBPu/YkZWNcK+f4ssWQFoA27SoAn03l
oOQ0kmzKvKlo1IBvjTGApvv5
=/k0s
-----END PGP SIGNATURE-----
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.