Created
October 6, 2009 12:38
-
-
Save metafeather/202979 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I found Tim Fanelli's Blog ( http://www.timfanelli.com/cgi-bin/pyblosxom.cgi/j2ee/ ) entry quite helpful | |
1. In xcode, create a new empty project with the same dir any sources were checked out from. | |
2. 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. | |
3. From the finder, dragged the src/ directory into the top level project name item in the project window. | |
4. Removed any unwanted items from the folder hierarchy now in xcode. For example, remove all generated build .jar files. | |
5. Project -> New Target. Chose 'Shell Script Target'. | |
6. In the new Target, double clicked on "Run Script". Under the "General" tab, entered, "/usr/bin/ant;" | |
7. Project -> New Build Phase -> New Copy Files Build Phase | |
8. Control + Click "Copy Files" (or right click if you have Mighty Mouse) | |
9. Add "Empty File in Project". Choose the dist/ directory. Create a file matching the output from your Ant build e.g. Project.war | |
10. Double click on the "Copy Files" phase. Type the absolute path to your tomcat deployment directory. | |
11. Project -> New Custom Executable. Enter "Tomcat" and make the path "/usr/bin/java". | |
12. 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 | |
13. Under the Debugging tab, choose "Java Debugger". |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment