Headless Hint: Build And Generate Project With Ant
Paul_Hoffman 100000RU83 Comments (5) Visits (9920)
Apache Ant™ is a Java-based build tool that uses XML-based configuration files to describe build tasks. Rational Business Developer (RBD), is built on the Eclipse platform, which supports running Ant builds from the IDE Run as menus or from a command file.
Eclipse also supports the ability for plug-ins to contribute IDE build tasks to Ant using extension points. RBD includes tasks contributed by the Eclipse and Rational Application Developer (RAD) teams that can used to perform a complete Eclipse project build.
Example: Building and generating an EGL project
This example shows how to run an Ant build file to perform a build of an EGL project from a command file. The build file will:
To run the example:
1. Download head
2. Edit setR
3. Set workspace build preference "Build automatically" off so that only the project builds explicitly started by the Ant file will run.4. Set EGL generation preference "Generate after build" on for each generator you want to run automatically after the .ir files are built for the project.
5. In a command prompt window, set current location to the directory that contains the command files you unzipped and enter comm
Th1. The current version of RBD will hang if you attempt to generate programs from more than one project. Avoid this problem by:
2. If you are generating Java files, you will want to run the Java builder to compile the generated Java files. A best practice for command file builds is to use the genProject build option to generate the Java files into a Java project that is different than the EGL source project. You could add a step to the Ant file to build the Java project after building the EGL source project.