|
TODO Tidy this page
There are two parts to the Red-Piranha Project
Instructions for developers on how to start using Red-Piranha
Other useful pages
Setup the environment
Checking out the codeThe source code for Red Piranha is hosted by Google using Subversion. Background Information on Subversion (SVN) source control, hosted at Google code can be found at:
If you're logged in with google, This page will give you more detailed instructions on how to Checkout the code When checking out the two projects, they should end up in two parallel folders i.e.
This is because the rule-player build depends on some items from the 'core' red-piranha project (e.g. Drools Libraries, the Core Red Piranha code) and puts the result (e.g. the Jar with JNLP files) back into the Red-Piranha project. Once deployed to the App Engine, Power Users can download and run the completed Rule Player as part of the deployed project. Source folders for both projects are:
Take care, as the structure in subversion differs slightly from the way the should be on your local disk after check out (see previous paragraph). Building the codeTODO Complete these instructions There two ways to build the Red Piranha Code - Via the supplied ant build files, or via Eclipse. How to build in AntDevAntBuildFile gives details on how to build the Red Piranha Project via Ant. How to build in EclipsePersonally, I use Eclipse to edit and build the code (hence the reason why Eclipse build files are included when you check out the code). The Eclipse file should work once you check it out (as all the libs are provided), but right clicking on the Red Piranha will allow you to resolve them. Running the code locallyRule Player Console The Rule Player - can be run directly in Eclipse
Red Piranha Junit Tests (see DevProjectLayout), right click and run as JUnit test. Red Piranha Main
Developer signing Rule Player jars
red-piranha/war/ruleplayer/lib folder when you execute this. Deploying to App EngineIn general, most people will only want to deploy the packaged rules. These instructions are only if you are editing the Java Code in the Core Red Piranha build, or if you want to have your own instance of Red Piranha on the Google App Engine Deploying Red Piranha to GAE Via Eclipse
Deploying Red Piranha to GAE Via AntMore info at DevAntBuildFile Deploying Red Piranha to GAE Via Rule Player
Building your own rulesTODO - complete or remove this section This is for building your rules in the Eclipse Development environment. PowerPowerUserGettingStarted details how most users will build their rules and then share them via the web
More Options on running the Rule PlayerTODO Complete Section
Extending Red PiranhaTODO Complete Section for the moment you'll have to explore the code! Link to Builder The code that builds the pre-compiled rule packages. Start with the main method. Link to Servlet The code that calls the pre-compiled rule packages. Start with the service() method that runs in response to the form submitted by the jsp submission.
| |||