Archive for April, 2008

Using Commons Logging from Ant

Wednesday, April 23rd, 2008

Here is a common problem with custom Ant tasks. A typical task is implemented using multiple classes, so classes that don't extend org.apache.tools.ant.Task class don't necessarily have to have a dependency on Ant APIs. For example, it is pretty easy to pass Ant properties in a hashtable instead of passing the entire project object. This [...]

Jython Ant Wrapper Examples

Monday, April 7th, 2008
Somebody asked me about examples for PAnt Jython wrapper. Here are some. I'll be updating this page with more examples in the future. Following is a simple echo task. Note that pant.py has to be on your "python.path". You can set it by adding it to your ANT_OPTS environment variable (ANT_OPTS=-Dpython.path=python_path). [...]