|
Links Home Mighty Automated Build (MAB) MAB Overview Setting Up Configure and Build Mighty Automated Deployment (MAD) MAD Overview For Developers For Administrators External links ArchStudio 3 xADL 2.0 Site Official xArch Site UCI Institute for Software Research |
Mighty Automated Build - Setup Setting up MAB requires two software packages to be installed on your machine independent of MAB. You will need:
The Build Environment MAB assumes that your project is in a particular directory
structure before building. This directory structure is fairly
standard across Java projects. In this structure, a top-level
directory for the project, which we will call prod_dir/ | +-package1/ | | | +-subpackage2/ | | | | | +-SomeClass.java | | | +-SomeOtherClass.java | +-package2/ | +-SomeThirdClass.java Depending on your development environment, the corresponding .class files for the .java files may be in those directories as well; this is fine. Likewise, resource files (images and other static binaries accessed by the program) will also likely be in those directories. This is also fine. If your software is not in this format but is in some other format (a CVS repository, perhaps, or scattered across two or three directories) then you should refactor it into this format for building with MAB. You can do this with a small shellscript or batch file, usually. Assuming your software is in this format, you are ready to download MAB. Do a "Save As..." on the link below and save the build.xml file to the directory prod_dir. This is the MAB stub script. It is important to understand at this point what MAB will do to
your code. In the next section, you will choose an output directory,
which we will call
build_dir/
|
+-myproduct.zip
| (contains contents of myproduct directory,
| below)
|
+-myproduct/
|
+-doc/
| |
| +-(contains javadoc documentation)
|
+-lib/
| |
| +-myproduct.jar
| (contains .class files and resources)
|
+-src/
|
+-package1/
| |
| +-subpackage2/
| | |
| | +-SomeClass.java
| |
| +-SomeOtherClass.java
|
+-package2/
|
+-SomeThirdClass.java
As you will see in the next section, additional files can be "mixed in" to this structure to create a complete build. Now, please proceed to the next section. |