Use Jython to Write Ant Tasks

zhaozj2021-02-16  46

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 falp.

转载请注明原文地址:https://www.9cbs.com/read-16298.html

New Post(0)