summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormattinger <[email protected]>2007-03-01 21:54:39 +0000
committermattinger <[email protected]>2007-03-01 21:54:39 +0000
commitb1083f0784b10ea62ad76a0ed1ecf3b0c717e687 (patch)
treebd919da77c0f63336344c77d37f8fefc089032fe
parentd550910f71ad8f97022abb535d0a1e5d23e6fcca (diff)
git-svn-id: file:///home/sven/projects/JOGL/temp/ant-contrib/svn/ant-contrib-code/trunk/ant-contrib@86 32d7a393-a5a9-423c-abd3-5d954feb1f2f
-rwxr-xr-xsrc/java/net/sf/antcontrib/net/URLImportTask.java43
1 files 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;