% ant -projecthelp Buildfile: build.xml PBS Accounting Darkslide Reporting Engine Main targets: build Generate the queryengine.jar file from the compiled source code buildrpm Build RPM for Linux. Only works on Linux platforms clean Deletes the build and dist directories compile Compile the source dist Generate the distribution directory javadoc Generate Javadoc for the source Default target: buildTo create a distribution, which will compile the code type
ant distfor example To recreate the API documentation, you would type
ant javadoc
You should see something like this
% ant buildrpm buildrpm: [copy] Copying 1 file to /home/rmach/pbs/pbsaccounting/darkslide/build/SOURCES [rpm] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.61861 [rpm] + umask 022 [rpm] + cd /home/rmach/pbs/pbsaccounting/darkslide/build/BUILD [rpm] + cd /home/rmach/pbs/pbsaccounting/darkslide/build/BUILD [rpm] + rm -rf darkslide-1.00 [rpm] + /bin/gzip -dc /home/rmach/pbs/pbsaccounting/darkslide/build/SOURCES/darkslide-1.00.tar.gz [rpm] + tar -xf - [rpm] + STATUS=0 [rpm] + '[' 0 -ne 0 ']' [rpm] + cd darkslide-1.00 [rpm] ++ /usr/bin/id -u [rpm] + '[' 501 = 0 ']' [rpm] ++ /usr/bin/id -u [rpm] + '[' 501 = 0 ']' [rpm] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.79485 [rpm] + /bin/chmod -Rf a+rX,g-w,o-w . [rpm] + exit 0 [rpm] + umask 022 [rpm] + cd /home/rmach/pbs/pbsaccounting/darkslide/build/BUILD [rpm] + cd darkslide-1.00 [rpm] + exit 0 [rpm] Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.79485 [rpm] + umask 022 [rpm] + cd /home/rmach/pbs/pbsaccounting/darkslide/build/BUILD [rpm] + cd darkslide-1.00 [rpm] + mkdir -p /tmp/darkslide-buildroot/usr/local/darkslide-1.00 [rpm] + mv etc /tmp/darkslide-buildroot/usr/local/darkslide-1.00 [rpm] + mv bin /tmp/darkslide-buildroot/usr/local/darkslide-1.00 [rpm] + /usr/lib/rpm/brp-compress [rpm] + /usr/lib/rpm/brp-strip [rpm] + /usr/lib/rpm/brp-strip-comment-note [rpm] Processing files: darkslide-1.00-1 [rpm] Finding Provides: (using /usr/lib/rpm/find-provides)... [rpm] Finding Requires: (using /usr/lib/rpm/find-requires)... [rpm] PreReq: rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 [rpm] Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1 [rpm] Wrote: /home/rmach/pbs/pbsaccounting/darkslide/build/RPMS/i386/darkslide-1.00-1.i386.rpm [rpm] + umask 022 [rpm] Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.92439 [rpm] + cd /home/rmach/pbs/pbsaccounting/darkslide/build/BUILD [rpm] + cd darkslide-1.00 [rpm] + rm -rf /tmp/darkslide-buildroot [rpm] + exit 0 [rpm] Building the RPM based on the darkslide.spec file BUILD SUCCESSFUL Total time: 14 seconds