If you want to install SQLUnit from source, you can run the following commands.
$ ant
Buildfile: build.xml
init:
help:
[echo] SQLUnit version 4.9
[echo] Targets:
[echo] help - display this message
[echo] clean - removes all files from the build directory
[echo] distclean - removes all files from the dist directory
[echo] compile - compile all the java files
[echo] compile-test - compiles java files needed for testing
[echo] test - runs the mock database tests
[echo] junit-test -Dtest.class=classname - runs JUnit test
[echo] reformat - formats sources in contrib with Jalopy
[echo] checkstyle - check code style using CheckStyle
[echo] install - creates the jar files in the dist directory
[echo] sqlunit-flat -Dtestfile=file.xml - runs SQLUnit
[echo] sqlunit-nested -Dtestdir=dir - runs SQLUnit w/FileSet
[echo] javadoc - creates the project javadocs
[echo] doclet - generates Docbook XML for sqlunit tags
[echo] htdoc - creates tarball for website
[echo] package - creates tarball for download
[echo] gui - start up the SQLUnit GUI Tool
[echo] tui - runs the SQLUnit TUI Tool for testing
BUILD SUCCESSFUL
|
So to create a SQLUnit JAR file from scratch, run the following ant directive to create the sqlunit.jar file in your dist directory.
$ ant install
Buildfile: build.xml
setup:
clean:
[delete] Deleting directory /home/spal/sqlunit/build
[mkdir] Created dir: /home/spal/sqlunit/build
compile:
[javac] Compiling 18 source files to /home/spal/sqlunit/build
[copy] Copying 1 file to /home/spal/sqlunit/build/net/sourceforge/sqlunit
distclean:
[delete] Deleting directory /home/spal/sqlunit/dist
[mkdir] Created dir: /home/spal/sqlunit/dist
install:
[jar] Building jar: /home/spal/sqlunit/dist/sqlunit-1.0.jar
[echo] File sqlunit-1.0.jar in dist
BUILD SUCCESSFUL
Total time: 3 seconds
|