Starting Up GenesisII from Eclipse
From VCGR Wiki
Running GenesisII from Scratch
After downloading the source code for GenesisII from the CVS repository and setting up the configurations as outlined in the GenesisII Development Tutorial and the development wiki, the following steps will start up a net on your computer.
- Under External Tools, run the configuration for clean-ing the codebase via Ant.
- Under External Tools, run the configuration for code-generate-ing the codebase via Ant.
- Click on the project and refresh (F5) for changes in the project to be recognized
- Clean the project via Project > Clean.
- Under Run, start the container configuration.
- Under Run, start the client configuration once the container has started up successfully.
- Bootstrap the system to setup the directory structure, security, etc. with the following command: script bootstrap.xml. This should only be done once for each clean system state.
If you are developing within Eclipse, you do not have to run a full build (steps 1 through 4 and 7) prior to every update. As long as you do not modify any WSDL (which would require re-generation), the Eclipse IDE will automatically incrementally compile any updates you make to source (and even reflect those changes in any live debugging sessions).
Restarting GenesisII in a Clean State
If you have had a local net running previously and you would like to run in a clean state, run the ant wipestate in the build.xml file and then proceed with re-bootstrapping the system.
Restarting GenesisII in an Old State
Steps 1 and 2 wipe the local state of your machine. However, they are not necessary to run every time (unless you plan on committing the code).
If you have had a local net running previously and you have changed the code base but you would like to run in the same state as before, just follow steps 3 through 6. You may not need to do steps 1 and 2 if the code you have changed does not effect the web services ie if wsdl has not changed.
Sarnowska 17:13, 25 April 2007 (EDT)
