Skip to main content

Configuring the Apache Ant Plugin

Use the following procedure to configure the Apache Ant Plugin to execute along with the build target.

To configure the plugin, do the following:

  1. Extract the Ant plugin from the CodeInsightversionPlugins.zip file. See Downloading Plugins.

  2. Configure %ANT_HOME% and add %ANT_HOME%/bin to the path variable.

  3. To check the Ant plugin installation, run the following command:

    ant -v 
  4. Add all the dependent jars from the code-insight-ant-plugin folder to the application’s compile classpath.

  5. To run the task codeinsightantplugin along with the compile target, paste the taskdef code snippet into the compile target and run the following command:

    ant compile 
  1. Copy the code-insight-ant.jar into the path used for the compile task, and set the classpath refid of the javac task as the classpathref in the codeinsightantplugin task.