java - 从 HTTP GET 请求的响应中设置 ANT 属性
问题描述
我是 ANT 新手,我需要一种将 HTTP GET 请求的输出读入属性的方法,以便稍后在构建脚本中使用它。
我尝试使用https://ant.apache.org/manual/Tasks/get.html但发现没有可用的参数。我正在使用 ant 1.9.6 和最新的 ant contrib 版本
谢谢!
解决方案
将<loadresource>任务与嵌套的<url>资源一起使用:
<loadresource property="content">
<url url="https://google.com"/>
</loadresource>
推荐阅读
- spring-integration - Spring Integration - 聚合优先级通道
- php - 构建自定义 Elementor Widget-Wordpress(未显示)
- javascript - 检测浏览器是否有自动隐藏 URL 栏
- reactjs - 使用 Typescript 调试在 ReactJS 中开发的 chrome 扩展
- visual-studio-code - 你能给出vs代码“添加配置”是如何工作的吗?
- abap - SUBMIT 命令在 ME49/rm06eps0 报告中挂起
- java - 无法连接到 smtp 主机 ovh 服务器端口 465
- qt - CONFIG += qmltypes 的 cmake 等效项
- mysql - Sql find_in_set group concat在laravel查询中不起作用
- java - 我的 Java-Stream 的过滤器不起作用