Hello,

I’m trying to get the ‘dot’ output of the dependency graph of Spring,
without success so far.

I added a ‘repreport’ call in a specific target:

--- build-spring-framework/build.xml	(révision 2806)
+++ build-spring-framework/build.xml	(copie de travail)
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project name="build-spring-framework" default="precommit">
+<project name="build-spring-framework" default="precommit"
+	 xmlns:ivy="antlib:org.apache.ivy.ant">
 
 	<path id="bundles">
 		<pathelement location="../org.springframework.instrument"/>
@@ -34,6 +35,10 @@
 
 	<target name="precommit" depends="clean,clean-integration,test"/>
 
+	<target name="ivy-graph" depends="ivy.init">
+	  <ivy:repreport dot="true" organisation="org\.spring.*"/>
+	</target>
+
 	<presetdef name="javadoc.links">
 		<javadoc>
 			<link href="http://java.sun.com/javase/6/docs/api"/>
After that, ‘ant ivy-graph’ takes forever, apparently downloading data
from Maven/Ivy repositories at a very slow rate:

--8<---------------cut here---------------start------------->8---
ivy-graph:
[ivy:repreport] :: Ivy 2.0.0 - 20090108225011 :: http://ant.apache.org/ivy/ ::
:: loading settings :: file = 
/home/ludo/src/spring/spring-build/common/ivysettings.xml
[ivy:repreport] Feb 22, 2010 11:23:29 AM 
org.apache.commons.httpclient.HttpMethodBase getResponseBody
[ivy:repreport] WARNING: Going to buffer response body of large or unknown 
size. Using getResponseBodyAsStream instead is recommended.
[ivy:repreport] Feb 22, 2010 12:08:14 PM 
org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[ivy:repreport] INFO: I/O exception (java.net.SocketException) caught when 
processing request: Connection reset
[ivy:repreport] Feb 22, 2010 12:08:14 PM 
org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[ivy:repreport] INFO: Retrying request
[ivy:repreport] Feb 22, 2010 12:44:03 PM 
org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[ivy:repreport] INFO: I/O exception (java.net.SocketException) caught when 
processing request: Connection reset
[ivy:repreport] Feb 22, 2010 12:44:03 PM 
org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[ivy:repreport] INFO: Retrying request
[ivy:repreport] Feb 22, 2010 12:49:46 PM 
org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[ivy:repreport] INFO: I/O exception (java.net.SocketException) caught when 
processing request: Connection reset
[ivy:repreport] Feb 22, 2010 12:49:46 PM 
org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
[ivy:repreport] INFO: Retrying request
--8<---------------cut here---------------end--------------->8---

Eventually I interrupt it.

Any idea what I’m doing wrong?

Thanks,
Ludo’.

Reply via email to