Назад | Перейти на главную страницу

Получение URL-адреса с помощью ant в JBoss EAP AS 6.3

У меня есть простая задача ant, чтобы получить URL-адрес и сохранить его в файл:

<target name="test_xhtml">
    <get verbose="on"
        dest="/tmp/test.xhtml"
        src="http://localhost:8080/forms/faces/test.xhtml?param=loremipsum" 
    />
</target>

Скрипт возвращает:

test_xhtml:
      [get] Getting: http://localhost:8080/forms/faces/test.xhtml?param=loremipsum
      [get] To: C:/tmp/test.xhtml
      [get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/forms/faces/test.xhtml?param=loremipsum
      [get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/forms/faces/test.xhtml?param=loremipsum
      [get] Error opening connection java.io.IOException: Server returned HTTP response code: 505 for URL: http://localhost:8080/forms/faces/test.xhtml?param=loremipsum
      [get] Can't get http://localhost:8080/forms/faces/test.xhtml?param=loremipsum to C:\tmp\test.xhtml
BUILD SUCCESSFUL
Total time: 468 milliseconds

Вопрос в том, как я могу получить URL? (возможно, некоторая конфигурация в jboss 6.3, потому что http 505 означает, что jboss не перенастраивает протокол http, используемый ant: см. http spec # 505