You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2005/01/28 14:01:53 UTC

DO NOT REPLY [Bug 33288] New: - Ant tasks lack proxy support

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33288>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33288

           Summary: Ant tasks lack proxy support
           Product: Slide
           Version: 2.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: WebDAV client
        AssignedTo: slide-dev@jakarta.apache.org
        ReportedBy: lars@trieloff.net


I am unable to use the slide-ant-tasks in conjunction with a HTTP proxy server.
Following example buildfile will try to upload a file to a remote server.

<?xml version="1.0"?>
<project name="davtest" default="upload">
	<path id="classpath">
		<pathelement path="commons-httpclient.jar"/>
		<pathelement path="commons-logging.jar"/>
		<pathelement path="jakarta-slide-ant-webdav-2.1.jar"/>
		<pathelement path="jakarta-slide-webdavlib-2.1.jar"/>
	</path>
	
	<target name="declare-tasks">
		<taskdef classname="org.apache.webdav.ant.taskdefs.Put"
classpathref="classpath" name="davput"/>
		<taskdef classname="org.apache.webdav.ant.taskdefs.Get"
classpathref="classpath" name="davget"/>
		<taskdef classname="org.apache.webdav.ant.taskdefs.Lock"
classpathref="classpath" name="lock"/>
		<taskdef classname="org.apache.webdav.ant.taskdefs.Unlock"
classpathref="classpath" name="unlock"/>
		<taskdef classname="org.apache.webdav.ant.taskdefs.Mkcol"
classpathref="classpath" name="mkcol"/>
		<taskdef classname="org.apache.webdav.ant.taskdefs.Delete"
classpathref="classpath" name="davdelete"/>
		<taskdef classname="org.apache.webdav.ant.taskdefs.Proppatch"
classpathref="classpath" name="proppatch"/>
		<taskdef classname="org.apache.webdav.ant.taskdefs.Copy"
classpathref="classpath" name="davcopy"/>
		<taskdef classname="org.apache.webdav.ant.taskdefs.Move"
classpathref="classpath" name="davmove"/>
	</target>
	
	<target name="upload" depends="declare-tasks">
		<setproxy proxyhost="proxy" proxyport="8080"/>
		<davput url="http://bpt-project.hpi.uni-potsdam.de/xmldb/README">
			<fileset dir=".">
				<include name="README"/>
			</fileset>
		</davput>
	</target>
</project>

The build fails with following error message:

BUILD FAILED
C:\Documents and
Settings\C5058687\Desktop\jakarta-slide-ant-webdav-bin-2.1\jakarta-slide-ant-webdav-bin-2.1\build.xml:24:
Put error! (java.net.UnknownHostException: bpt-project.hpi.uni-potsdam.de)

Total time: 2 seconds

I am also unable to specify the proxy using the -Dhttp.proxyHost and
-Dhttp.proxyPort flags.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org