Bandit Build Tutorial
From Bandit-project.org
Contents |
Getting the Code
- Create an account on forge.novell.com
- Follow the directions for windows or linux to generate and inform the forge site of your ssh public keys.
- Use your favorite SubVersion client to download | https://forgesvn1.novell.com/svn/bandit/trunk/ to a location on your machine.
Build
Command Line
The Identity Abstraction and Role Engine pieces are currently using ant for building, you must download and install ant then invoke it from either the IdentityAbstraction or RoleEngine directory. Currently the most common targets are clean, jar, tar, and test
ant clean ant jar ant test
Eclipse
Please see using Eclipse as your IDE for important information on setting up your environment to work correctly.
Maven
This is the first stab at documentation on using maven for building. You must download and install maven 2. Please see building with Maven for a thorough set of instructions and assumptions for maven in this build.
Test
Prior to running the unit tests junit.jar must exist in the classpath, many people store junit.jar in the bin directory under ant. To invoke the unit tests call ant with the test target.
ant test
Uploading
Submitters may follw these guidelines to upload code for public consumption, non sumbitters should follow the patch guidelines for submitting patches. The Identity Abstraction and Role Engine pieces of Bandit binararies are located at forgeftp.novell.com/bandit. To upload a build for public consumption do the following:
- Make sure you setup an account on forge.novell.com as described above.
- Obtain the correct version of the source code
- Follow the bandit best practices
- Using your prefered SFTP client (WINSCP, sftp, etc.) upload to the forge site as follows:
| Local | to ftpforge |
| bandit/IdentityAbstraction/doc/* | /bandit/IdentityAbstraction/doc |
| bandit/IdentityAbstraction/build/identity-abstraction-bin*.tar | /bandit/IdentityAbstraction/binaries/all-java |
| bandit/IdentityAbstraction/build/identity-abstraction-devl*.tar | /bandit/IdentityAbstraction/source |
| bandit/RoleEngine/doc/* | /bandit/RoleEngine/doc |
| bandit/RoleEngine/build/role-engine-bin*.tar | /bandit/RoleEngine/binaries/all-java |
| bandit/RoleEngine/build/role-engine-devl*.tar | /bandit/RoleEngine/source |
