gpt4 book ai didi

java - Intellij IDEA 工件,后处理不起作用

转载 作者:行者123 更新时间:2023-12-04 17:47:26 25 4
gpt4 key购买 nike

构建工件后,我想运行一个 ant 目标。但它不起作用。

1.我通过 Ant Build Tool Window 创建了一个 ant 目标。 (可以独立运行)

enter image description here

2.我选中了 Run Ant target 复选框并指定了目标。

enter image description here

3.设置后没有显示

enter image description here

当我运行 Build-->Build artifacts 时,ant 目标不起作用。但是当我用 Ant Build Tool 运行它时,它运行良好。谁能帮帮我?

最佳答案

确保您已在 build.xml 文件中定义了您的目标

下面是构建 XML 的示例。

<?xml version = "1.0"?>
<project name = "Hello World Project" default = "info">
<target name = "info">
<echo>Hello World - Welcome to Apache Ant!</echo>
</target>
</project>

当您将 XML 文件添加到 IntelliJ IDEA 时,您可以在您的项目下找到列出的目标

Target displayed within IntelliJ IDEA

然后您可以将目标添加到预处理或后处理任务。

Browse window for selecting targets Post processing target

关于java - Intellij IDEA 工件,后处理不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47828012/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com