Building the sample extensions with Ant
The Ant build file has the following targets:
clean
–
Cleans previous build output.
compile
–
Compiles source code for the sample extensions.
package
–
Builds the JAR file for the plug-in.
test-compile
–
Compiles source code for the unit tests.
test-run
– Runs unit tests. You can skip this target by passing the
-DskipTests=true
flag to Ant.
dist
–
Cleans previous build output, builds the plug-in, and runs unit tests.
To build the sample extensions with Ant:
Open a command prompt and
navigate to the
\CAS\version
\sample\cas-extensions
directory.
Issue the following
command:
ant dist
For example:
C:\Endeca\CAS\<version>\sample\cas-extensions>ant dist
The Ant build file runs all the targets listed above including the
unit tests for the extensions. The output messages of the CAS sample extension
indicate that the build file compiles the source and then runs unit tests for
the sample extensions. It also instructs you to
Copy the folder build/cas-sample-extensions to $CAS_
ROOT/lib/cas-server-plugins to deploy the plugin.