【问题标题】:Fetch/Download jar from shared location using ant使用 ant 从共享位置获取/下载 jar
【发布时间】:2018-09-24 01:33:26
【问题描述】:

我们在共享位置(即 \machine\jar)有一些 jar(项目依赖项)。目前,我们从该共享位置手动复制这些 jar 文件并将它们添加到我们的项目中以解决构建依赖关系。

我正在编写一个 Ant 脚本来自动化我们的一些任务。我想知道是否有办法通过 ant 脚本将这些 jar 从共享位置复制到本地系统?

【问题讨论】:

    标签: ant build-tools


    【解决方案1】:

    我能够使用 Ant FileSet 复制 jar。

     <target name="copy">
      <copy todir="location_to_copy">
        <fileset dir="share_location"> 
        </fileset> 
      </copy> 
     </target>
    

    https://ant.apache.org/manual/Types/fileset.html

    ant: copy file from remote location on windows

    【讨论】:

      猜你喜欢
      • 2021-08-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多