How to Make Compiler Build Default Ant Task

We are evaluating IntelliJ IDEA as a possible replacement for Eclipse/NetBeans.  So far everything is working to our liking except for one thing.  Using Eclipse we would turn off the default Java Builder and create an Ant builder that would load and run an Ant task within the build.xml file that we developed.  This way you could make your modifications and then run Build Project to build it from within Eclipse.  The reason we did it this way is that we can now go to a command line and run the same Ant task and get the same results.  I can't seem to find a way to turn off the built-in compiler and use Ant and the default task to build instead within IDEA.  Am I missing something obvious?

3 comments
Comment actions Permalink

Hi.

Am I correct that essentially the task is just to run some Ant target? If so, right-click on the build file, select "Add as Ant Build file". Then the targets will be available as commands in main menu / Build. Additional configuration facilities are available in Ant Build tool window.

Alexander.

0
Comment actions Permalink

Yes I have that part working, what I wanted to know was whether I can make it run a particular Ant task from that build file instead of running the regular built-in Java compile whenever I make code changes.

0
Comment actions Permalink

Unlike Eclipse IDEA does not trigger compilation automatically after a code change. So, an action performed after a change is the choice of the user. This may be a compilation or running an ant target, from menu or via keyboard shortcut, configurable in Settings / Keymap.

(Sorry if I haven't caught some idea...)

0

Please sign in to leave a comment.