After you build the sample extensions into a plug-in, install the resulting plug-in files into the Content Acquisition System.
To install the sample plug-in into CAS:
If you built the extensions using Ant, copy the
cas-sample-extensions
directory fromCAS\
toversion
\sample\cas-extensions\build\CAS\
.version
\lib\cas-server-pluginsIf you built the extensions using Eclipse, do the following:
Create a new folder named
cas-sample-extensions
underCAS\
.version
\lib\cas-server-plugins\Locate the JAR you built and copy it to
CAS\
version
\lib\cas-server-plugins\cas-sample-extensions\.Copy the JARs from
\CAS\
intoversion
\sample\cas-extensions\lib\mainCAS\
. (These JARs are dependencies that the sample extensions require.)version
\lib\cas-server-plugins\cas-sample-extensions\
You can confirm that the extensions are installed by running the
listModules
task of the CAS Server Command-line
Utility. The task returns the installed modules.
C:\Endeca\CAS\<version>\bin>cas-cmd listModules Blob Database *Id: com.endeca.cas.extension.sample.datasource.blob.BlobDataSource *Type: SOURCE *Description: Reads a database table containing documents *Capabilities: *Has Binary Content CSV File *Id: com.endeca.cas.extension.sample.datasource.csv.CsvDataSource *Type: SOURCE *Description: Reads comma separated files *Capabilities: None Document Directory *Id: com.endeca.cas.extension.sample.datasource.directory.DirectoryDataSource *Type: SOURCE *Description: Reads a directory of documents *Capabilities: *Binary Content Accessible via FileSystem *Has Binary Content Change Tracking Data Source *Id: com.endeca.cas.extension.sample.datasource.incremental.ChangeTrackingDataS ource *Type: SOURCE *Description: A data source that can incrementally crawl a change tracking data base *Capabilities: None File System *Id: File System *Type: SOURCE *Description: No description available for File System *Capabilities: *Binary Content Accessible via FileSystem *Data Source Filter *Has Binary Content *Expand Archives Substring Manipulator *Id: com.endeca.cas.extension.sample.manipulator.substring.SubstringManipulator *Type: MANIPULATOR *Description: Generates a new property that is a substring of another property value *Capabilities: *Supports Incrementals