Reputation: 784
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)
2.I selected the Run Ant target checkbox and specify the target.
3.it showed me none aftering setting.
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
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
You can then add the target to pre-processing or post-processing tasks.
Upvotes: 1