The steps in Building JasperReports Server Source Code build the JasperReports Server source code and load core data required to start the application. However, the steps do not create any sample data, such as sample reports to run and sample databases from which to pull data.
The steps below show how to create and load sample data.
Load Sample Data
The buildomatic scripts can load sample resources and sample databases. Note: In the procedure below, your jasperserver database will be deleted and re-created unless you choose ‘n’ for No when prompted.
1. | Your default_master.properties should have already been created. |
2. | Start your database server. |
3. | Stop your application server. |
4. | Run the commands shown below: |
Commands | Description |
cd <js-src>/jasperserver/buildomatic |
|
js-ant create-load-all-dbs-ce | Creates and loads the jasperserver database Imports core bootstrap resources Creates and loads sample databases Imports sample resources (Choose ‘n’ when prompted if you do not want to recreate your jasperserver database.) |
Generate Your Own Sample Resources
The build procedure can generate sample resources “from scratch”. To do this, you can execute the sample creation code found in the following folder:
<js-src>/jasperserver/production-tests
The resources generated with this procedure are the same ones imported and used by the released version of JasperReports Server. Your jasperserver database will be deleted and re-created.
1. | Your default_master.properties should have already been created. |
2. | Start your database server. |
3. | Stop your application server. |
4. | Run the commands shown below: |
Commands | Description |
cd <js-src>/jasperserver/buildomatic |
|
js-ant re-init-js-db-ce | Drop, create, and initialize the jasperserver database |
js-ant run-production-data-ce | Generate sample resources using the processing logic from the production-test source code. |
Recommended Comments
There are no comments to display.