From 3db972a2b07def403930b56d4b161ceef9c10122 Mon Sep 17 00:00:00 2001 From: Steve Loughran Date: Thu, 27 Jan 2005 14:52:13 +0000 Subject: [PATCH] bugzilla bug#30307 ; need a way of adding typedef'd image operations. submitted by Christopher Lenz git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277511 13f79535-47bb-0310-9956-ffa450edef68 --- .../tools/ant/taskdefs/optional/image/Image.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/image/Image.java b/src/main/org/apache/tools/ant/taskdefs/optional/image/Image.java index 99e700e5a..d0e68f4df 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/image/Image.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/image/Image.java @@ -153,6 +153,17 @@ public class Image extends MatchingTask { instructions.add(instr); } + + /** + * Adds an ImageOperation to chain. + * Adds an ImageOperation to the chain. + * @param instr The ImageOperation to append to the chain + * @since Ant 1.7 + */ + public void add(ImageOperation instr) { + addImageOperation(instr); + } + /** * Executes all the chained ImageOperations on the file * specified.