From b1083f0784b10ea62ad76a0ed1ecf3b0c717e687 Mon Sep 17 00:00:00 2001 From: mattinger Date: Thu, 1 Mar 2007 21:54:39 +0000 Subject: git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@86 32d7a393-a5a9-423c-abd3-5d954feb1f2f --- src/java/net/sf/antcontrib/net/URLImportTask.java | 43 +++++++++++++---------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/src/java/net/sf/antcontrib/net/URLImportTask.java b/src/java/net/sf/antcontrib/net/URLImportTask.java index 9c89526..c245e61 100755 --- a/src/java/net/sf/antcontrib/net/URLImportTask.java +++ b/src/java/net/sf/antcontrib/net/URLImportTask.java @@ -64,6 +64,11 @@ public class URLImportTask private File ivyConfFile; private String artifactPattern = "/[org]/[module]/[ext]s/[module]-[revision].[ext]"; private String ivyPattern = "/[org]/[module]/ivy-[revision].xml"; + private boolean verbose = false; + + public void setVerbose(boolean verbose) { + this.verbose = verbose; + } public void setModule(String module) { this.module = module; @@ -104,28 +109,30 @@ public class URLImportTask public void execute() throws BuildException { - IvyContext.getContext().setMessageImpl( - new MessageImpl() { + if (! verbose) { + IvyContext.getContext().setMessageImpl( + new MessageImpl() { - public void endProgress(String arg0) { - // TODO Auto-generated method stub - - } + public void endProgress(String arg0) { + // TODO Auto-generated method stub - public void log(String arg0, int arg1) { - // TODO Auto-generated method stub - - } + } - public void progress() { - // TODO Auto-generated method stub - - } - - public void rawlog(String arg0, int arg1) { + public void log(String arg0, int arg1) { + // TODO Auto-generated method stub + + } + + public void progress() { + // TODO Auto-generated method stub + + } + + public void rawlog(String arg0, int arg1) { + } } - } - ); + ); + } Ivy ivy = new Ivy(); DependencyResolver resolver = null; Repository rep = null; -- cgit v1.2.3