Development: NetBeans Module FAQ
From Agent Factory
What do the three different modules do?
There are three modules making up the suite of Agent Factory NetBeans modules. Each lives in a separate subdirectory of the AF-NetBeans directory in CVS.
- com-agentfactory-src: Adds the Agent Factory library to NetBeans. This is a library consisting of all the JAR files officially released by the Agent Factory project.
- com-agentfactory-netbeans-src: Adds support for Agent Factory files in NetBeans (afapl2, aps, cfg, etc.).
- com-agentfactory-netbeans-project-src: Adds support for Agent Factory projects.
How do I add a new JAR file to the distribution?
After downloading the source code for the AF-NetBeans package, two steps must be taken to include a JAR file with the distribution.
Firstly, copies of all the JAR files must be placed in the `package_lib' directory. If you are frequently making releases, it may be useful to create symlinks in this directory that point to the latest built versions of each JAR file.
Secondly, there should be an entry in the `com-agentfactory-src/src/com/agentfactory/Agent_Factory.xml' file for each JAR file that you wish to include. The format is as follows (replacing `FILENAME.JAR' with the name of the JAR file you wish to include):
<resource>jar:nbinst://com.agentfactory/modules/ext/FILENAME.JAR!/</resource>
This tells NetBeans to include the given JAR file in the library, while also instructing it where the file should be placed when the module is installed.
