SF.net SVN: ant-contrib: [85] trunk/ant-contrib/src/java/net/sf/antcontrib/ net/URLImportTask.java

[email protected]
Newsgroups gmane.comp.java.ant-contrib.devel
Message-ID <[email protected]>
Revision: 85
          http://svn.sourceforge.net/ant-contrib/?rev=85&view=rev
Author:   mattinger
Date:     2007-03-01 13:53:37 -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:29:36 UTC (rev 84)
+++ trunk/ant-contrib/src/java/net/sf/antcontrib/net/URLImportTask.java	2007-03-01 21:53:37 UTC (rev 85)
@@ -31,6 +31,7 @@
 import fr.jayasoft.ivy.DefaultModuleDescriptor;
 import fr.jayasoft.ivy.DependencyResolver;
 import fr.jayasoft.ivy.Ivy;
+import fr.jayasoft.ivy.IvyContext;
 import fr.jayasoft.ivy.MDArtifact;
 import fr.jayasoft.ivy.ModuleDescriptor;
 import fr.jayasoft.ivy.ModuleId;
@@ -41,6 +42,7 @@
 import fr.jayasoft.ivy.resolver.FileSystemResolver;
 import fr.jayasoft.ivy.resolver.IvyRepResolver;
 import fr.jayasoft.ivy.resolver.URLResolver;
+import fr.jayasoft.ivy.util.MessageImpl;
 
 /***
  * Task to import a build file from a url.  The build file can be a build.xml,
@@ -102,6 +104,28 @@
 	public void execute()
 		throws BuildException {
 
+		IvyContext.getContext().setMessageImpl(
+				new MessageImpl() {
+
+					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) {
+					}
+				}
+				);
 		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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.