CSDN博客

img yuanqingfei

Use Jython to Write Ant Tasks

发表于2004/7/14 13:29:00  1382人阅读

http://www.pycs.net/users/0000177/stories/11.html
Use Jython to Write Ant Tasks

Abstract

This article looks at how to add scripted behaviour to ant builds. It details the steps to write a custom Ant task in jython, compile it and install it into ant so it can be used as any other task in an ant build. The article also takes a quick look at an alternate implementation using Groovy.

Fowler summarizes the issues like this:
... Simple builds are easy to express as a series of tasks and dependencies. For such builds the facilities of ant/make work well. But more complex builds require conditional logic, and that requires more general programming language constructs - and that's where ant/make fall down. 
0 0

相关博文

我的热门文章

img
取 消
img