June 22, 2011

Touring CBF part 2

Long delayed, but here is part II:

Running the CBF is easy if you have defined all your build.properties correctly. Assuming you have ant installed, go to the root cbf directory and run this:

ant -Dproject=ProjectName build-all

Note that the name of the project is the part after "project." So if your directory is "project-test" your project name is "test". To see a list of all the ant targets to use you can do this:

ant -Dproject=ProjectName -p

The targets you are interested are probably:

ant -Dproject=ProjectName clean Which cleans the build (but not the deployed directory).

ant -Dproject=ProjectName all Which builds Pentaho.

and ant -Dproject=ProjectName deploy-all Which eploys the biserver and solution to the target.

If you want added flexibility, you can create custom properties files for development and production. The structure is the same as regular build.properties. So copy build.properties to a file named "dev.properties" and make any necessarily changes. Then you can do this:

ant -Dproject=client -Denv=dev dist-clean all run

That was a long wait for a little post....but that should be enough to get started using the CBF.

No comments: