SF.net SVN: ant-contrib: [86] trunk/ant-contrib/src/java/net/sf/antcontrib/ net/URLImportTask.java
| Newsgroups | gmane.comp.java.ant-contrib.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 86
http://svn.sourceforge.net/ant-contrib/?rev=86&view=rev
Author: mattinger
Date: 2007-03-01 13:54:39 -0800 (Thu, 01 Mar 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/ant-contrib/src/java/net/sf/antcontrib/net/URLImportTask.java
Modified: trunk/ant-contrib/src/java/net/sf/antcontrib/net/URLImportTask.java
===================================================================
--- trunk/ant-contrib/src/java/net/sf/antcontrib/net/URLImportTask.java 2007-03-01 21:53:37 UTC (rev 85)
+++ trunk/ant-contrib/src/java/net/sf/antcontrib/net/URLImportTask.java 2007-03-01 21:54:39 UTC (rev 86)
@@ -64,7 +64,12 @@
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 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 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 rawlog(String arg0, int arg1) {
- }
- }
- );
+ );
+ }
Ivy ivy = new Ivy();
DependencyResolver resolver = null;
Repository rep = null;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV