lihongxu
lihongxu

Reputation: 784

Intelli J IDEA Artifacts,Post-processing is not working

After the artifact is built,I want to run a ant target.But it was not working.

1.I created an ant target by Ant Build Tool Window. (it could run independently)

enter image description here

2.I selected the Run Ant target checkbox and specify the target.

enter image description here

3.it showed me none aftering setting.

enter image description here

When I run Build-->Build artifacts,the ant target did not work. But When I just run it by Ant Build Tool,it worked well. Can anyone help me ?

Upvotes: 3

Views: 508

Answers (1)

Xnkr
Xnkr

Reputation: 562

Make you sure you have defined your target in your build.xml file.

Below is an example build 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>

When you add the XML file to IntelliJ IDEA, you can find targets listed under your project

Target displayed within IntelliJ IDEA

You can then add the target to pre-processing or post-processing tasks.

Browse window for selecting targets Post processing target

Upvotes: 1

Related Questions