Recommended source tree layout for building on InfoGrid
Naturally, many different source trees are possible and anything that works, works. This layout presumes that either:
- you want to have access to the InfoGrid source code when working on your project, e.g. to debug into the InfoGrid codebase itself. Or:
- you want to use the InfoGrid build scripts without changes for your own code.
If you don't want to do either, you can ignore this page and simply add the needed JARs from an InfoGrid binary distribution.
In our experience building applications on top of InfoGrid, the following source tree layout has proven to be effective.
- ~/svn/svn.infogrid.org/infogrid/tags/released-latest: contains the source tree of the released-latest branch from InfoGrid Subversion
- ~/svn/example.com/department1/trunk: contains Example.com's Subversion code base
- ~/svn/example.com/department1/trunk/myapp: contains all of Example.com's myapp code, including:
- ~/svn/example.com/department1/trunk/myapp/modules/com.example.myapp: the application StandardModule
- ~/svn/example.com/department1/trunk/myapp/modules/com.example.model.mymodel: the ModelModule
- ~/svn/example.com/department1/trunk/ig-tools: symbolic link to ~/svn/svn.infogrid.org/infogrid/tags/released-latest/ig-tools
- ~/svn/example.com/department1/trunk/ig-utils: symbolic link to ~/svn/svn.infogrid.org/infogrid/tags/released-latest/ig-utils
- Similar links to all other InfoGrid Projects needed by myapp.
Then, in NetBeans, define a "Project Group" that is a "Folder of Projects" starting with root folder ~/svn/example.com/department1/trunk. This will open up both Example.com's and the required subset of the InfoGrid code base in the desired branch. To use a different InfoGrid branch, simply point the symbolic links to a different directory, e.g. ~/svn/svn.infogrid.org/infogrid/tags/tests-pass-latest/ig-graphdb.