bash-4.2# ant Buildfile: /root/mondrian/build.xml help: [echo] [echo] You must specify a specific project target when using the ANT build. [echo] Targets are one of the following: [echo] [echo] - help [echo] This is the help. [echo] [echo] - info [echo] Shows configuration info. [echo] [echo] - binzip [echo] Compiles Mondrian and wraps everything in a neat little package, [echo] including documentation. [echo] [echo] - workbench-dist [echo] Compiles PSW and wraps everything in a neat little package. [echo] [echo] - jar [echo] Creates a Mondrian jar. [echo] [echo] - workbench [echo] Creates Mondrian and workbench jars. [echo] [echo] - clean [echo] Deletes build output. [echo] [echo] - clean-deep [echo] Clean build output and generated sources. [echo] [echo] - javadoc [echo] Create the API documentation. [echo] [echo] - test [echo] Runs the tests. Requires FoodMart to be installed. (see below) [echo] [echo] - jacoco [echo] Runs the tests with jacoco to measure coverage. Requires FoodMart [echo] to be installed. (see below) [echo] [echo] -load-foodmart [echo] Will load the test DB FoodMart using the JDBC parameters specified. [echo] (see below) [echo] [echo] To run the tests, you must have FoodMart available in a database. [echo] You can pass the DB configuration through the command line arguments, [echo] like so: [echo] [echo] ant -Dmondrian.foodmart.jdbcURL="jdbc:mysql://localhost/foodmart" \ [echo] -Dmondrian.foodmart.jdbcUser=foodmart \ [echo] -Dmondrian.foodmart.jdbcPassword=foodmart \ [echo] -Dmondrian.jdbcDrivers=com.mysql.jdbc.Driver \ [echo] -Ddriver.classpath="/opt/mysql-connector-java-5.1.25-bin.jar" [echo] test [echo] [echo] Alternatively, these can be written to a file at the root of the project. [echo] Create a file 'mondrian.properties' containing this: [echo] [echo] mondrian.foodmart.jdbcURL=jdbc:mysql://localhost/foodmart [echo] mondrian.foodmart.jdbcUser=foodmart [echo] mondrian.foodmart.jdbcPassword=foodmart [echo] mondrian.jdbcDrivers=com.mysql.jdbc.Driver [echo] driver.classpath=/opt/mysql-connector-java-5.1.25-bin.jar [echo] [echo] To load foodmart into your DB, you can call the 'load-foodmart' target [echo] before 'test'. [echo] [echo] The parameters can be adjusted to point to a different DB than MySQL. [echo] BUILD SUCCESSFUL Total time: 0 seconds