Did you know that you could get textpad to easily call ant for you? This allows you to compile your code from inside of textpad and jumpt to errors.
Why you want to do this? Well, in cases where installing Eclipse would be more of a hassle (both in time to install, setup and train), textpad is a nice middle ground. Especially, because the folks around here have textpad handily available.
A quick search for textpad ant compile in google found me the perfect page. Except for one small detail, the link was dead. Thanks to Google's cache though, this was no problem.
So, here are the recommended instructions. Thanks to Tom Wilczak (whover he is) for suggesting the following:
- First get all your environment variables set--if you are able to run Ant from the command line you should be fine.
- In TextPad, select Configure -> Preferences then highlight Tools
- Click the add button, and select DOS command
- Enter "ant -find" in the Command field
- Click the apply button.
- In the left pane, expand "Tools" and highlight "ant -find"
- Make sure that the 'capture output' and 'save all documents first' options are selected. You may also want to select 'Prompt for parameters', as this will allow you to run the other ant targets besides the default project build (ie: Ant clean, ant test, etc.)
- Enter the following in the 'Regular Expression to Match Output' field:
^[ \t]+\[javac\] \([A-Za-z]:[^:]+\):\([0-9]+\):
- Set the File Register to 1, and the Line Register to 2.
- Click the apply button.
To run Ant, select it from the "Tools" menu while editing any project source file. The build.xml file may be in the same directory, or any ancestor directory.
To jump to the offending line on a compiler error, double click the second line of the error message. This works only for compiler errors and not for failed tests.
You can also configure the tools to run from your choice of keyboard shortcuts by selecting the Keyboard option in the preferences box, and selecting tools. The rest should be self explanatory.