ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ravi Pachipala <rpachip...@everypath.com>
Subject ant <get> task throws "connect exception" with jdk1.4.1
Date Wed, 23 Jun 2004 23:15:17 GMT
Hi,

I have been using the <get> task as follows.

	<target name="dist-tomcat41">
		<get src="${tomcat.zip.url}" dest="./tomcat41.zip"
verbose="on" ignoreerrors="false"/>
		<unzip src="./tomcat41.zip" dest="${dist.path}/3rdparty"/>
		<delete file="./tomcat41.zip" quiet="true"/>
	</target>

This works fine with jdk1.3.1. 

However, when I switched to jdk1.4.1, I am getting "connection failure"
exception. Any ideas?

dist-tomcat41:
      [get] Getting: file://Utilitysrv1/Misc/Tomcat41Zip/tomcat41.zip
      [get] Error getting file://Utilitysrv1/Misc/Tomcat41Zip/tomcat41.zip
to U:
\cm\build\tomcat41.zip

BUILD FAILED
file:U:/cm/build/build.xml:676: java.net.ConnectException: Connection
refused: connect


Thanks
ravi
-----Original Message-----
From: Ravi Pachipala 
Sent: Wednesday, June 23, 2004 3:18 PM
To: 'Ant Users List'
Subject: RE: recursive expansion of property names


Hi,

I have been using a <get task as follows.

	<target name="dist-tomcat41">
		<get src="${tomcat.zip.url}" dest="./tomcat41.zip"
verbose="on" ignoreerrors="false"/>
		<unzip src="./tomcat41.zip" dest="${dist.path}/3rdparty"/>
		<delete file="./tomcat41.zip" quiet="true"/>
	</target>

This works fine with jdk1.3.1. 

However, when I switched to jdk1.4.1, I am getting "connection failure"
exception. Any ideas?

dist-tomcat41:
      [get] Getting: file://Utilitysrv1/Misc/Tomcat41Zip/tomcat41.zip
      [get] Error getting file://Utilitysrv1/Misc/Tomcat41Zip/tomcat41.zip
to U:
\cm\build\tomcat41.zip

BUILD FAILED
file:U:/cm/build/build.xml:676: java.net.ConnectException: Connection
refused: connect

-----Original Message-----
From: Matt Benson [mailto:gudnabrsam@yahoo.com]
Sent: Wednesday, June 23, 2004 3:10 PM
To: Ant Users List
Subject: Re: recursive expansion of property names


See
http://ant.apache.org/faq.html#propertyvalue-as-name-for-property

-Matt

--- Jeffrey Bacon <jbacon@magmic.com> wrote:
> sorry, I should be more specific:
> 
> I have a properties file:
> 
> projects = com.magmic
> com.magmic.name = APIs
> 
> and I load that in Ant.
> 
> I want to access com.magmic.name by using the
> projects property:
> 
> <echo>${${projects}.name}</echo>
> 
> I want that to print "APIs".  Is there some way to
> effect that?
> 
> --
> Jeffrey Bacon
> jbacon@magmic.com
> Creative Developer
> http://www.magmic.com
> 
> 
> Jeffrey Bacon wrote:
> > Can I effect the below behavior somehow to get it
> to print 'hello'?
> > 
> > <property name="prop1" value="prop2" />
> > <property name="prop2" value="hello" />
> > <echo>${{prop1}}</echo>
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@ant.apache.org
> For additional commands, e-mail:
> user-help@ant.apache.org
> 
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message