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:
-
Extract the Ant plugin from the
CodeInsightversionPlugins.zipfile. See Downloading Plugins. -
Configure
%ANT_HOME%and add%ANT_HOME%/binto the path variable. -
To check the Ant plugin installation, run the following command:
ant -v -
Add all the dependent jars from the code-insight-ant-plugin folder to the application’s compile classpath.
-
To run the task codeinsightantplugin along with the compile target, paste the
taskdefcode snippet into the compile target and run the following command:ant compile
- For the code snippet, see Executing the Scan.
- Copy the
code-insight-ant.jarinto the path used for the compile task, and set theclasspath refidof thejavac taskas the classpathref in the codeinsightantplugin task.