Use SVN, Ant and Tomcat in XCode
I found Tim Fanelli's Blog ( http://www.timfanelli.com/cgi-bin/pyblosxom.cgi/j2ee/ ) entry quite helpful
In xcode, create a new empty project with the same dir any sources were checked out from.
Name the project with the same name used as the SVN module. NOTE: the .xcodeproj file should end up in the same directory as your build.xml file.
From the finder, dragged the src/ directory into the top level project name item in the project window.
Removed any unwanted items from the folder hierarchy now in xcode. For example, remove all generated build .jar files.
Project -> New Target. Chose 'Shell Script Target'.
In the new Target, double clicked on "Run Script". Under the "General" tab, entered, "/usr/bin/ant;"
Project -> New Build Phase -> New Copy Files Build Phase
Control + Click "Copy Files" (or right click if you have Mighty Mouse)
Add "Empty File in Project". Choose the dist/ directory. Create a file matching the output from your Ant build e.g. Project.war
Double click on the "Copy Files" phase. Type the absolute path to your tomcat deployment directory.
Project -> New Custom Executable. Enter "Tomcat" and make the path "/usr/bin/java".
Select the Arguments Tab enter:
Under the Debugging tab, choose "Java Debugger".
In xcode, create a new empty project with the same dir any sources were checked out from.
Name the project with the same name used as the SVN module. NOTE: the .xcodeproj file should end up in the same directory as your build.xml file.
From the finder, dragged the src/ directory into the top level project name item in the project window.
Removed any unwanted items from the folder hierarchy now in xcode. For example, remove all generated build .jar files.
Project -> New Target. Chose 'Shell Script Target'.
In the new Target, double clicked on "Run Script". Under the "General" tab, entered, "/usr/bin/ant;"
Project -> New Build Phase -> New Copy Files Build Phase
Control + Click "Copy Files" (or right click if you have Mighty Mouse)
Add "Empty File in Project". Choose the dist/ directory. Create a file matching the output from your Ant build e.g. Project.war
Double click on the "Copy Files" phase. Type the absolute path to your tomcat deployment directory.
Project -> New Custom Executable. Enter "Tomcat" and make the path "/usr/bin/java".
Select the Arguments Tab enter:
-classpath /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/commons-logging-api.jar -Dcatalina.home=/opt/tomcat -Xmx128m -Xms64m -Xincgc -Djava.awt.headless=true org.apache.catalina.startup.Bootstrap -debug start
Under the Debugging tab, choose "Java Debugger".