# Editing fetchCasCrawlDataConfig.xml for your crawling environment

The [appdir]/config/script/fetchCasCrawlDataConfig.xml file is the global CAS crawl configuration for the application.

Note: The configuration examples below show the CAS 3.0.x deployment template component name (i.e. the `class` attribute) rather than the CAS 2.2.x deployment template component.

To edit fetchCasCrawlDataConfig.xml for your crawling environment:

Check the settings of the following sections:

- CAS Server port: The custom-component section defines the configuration properties of a specific CAS Server. In particular, check the port number specified in the `casPort` property, and check the `class` attribute. It specifies the class that implements the CAS deployment template component. If you are using CAS 2.2.x, specify `class="com.Endeca.soleng.eac.toolkit.component.ContentAcquisitionServerComponent"`. If you are using CAS 3.0.x, specify `class="com.Endeca.eac.toolkit.component.cas.ContentAcquisitionServerComponent"` :

      <custom-component id="CAS" host-id="CASHost" class="com.Oracle Endeca.eac.toolkit.component.cas.ContentAcquisitionServerComponent">
        <properties>
          <property name="casHost" value="WEB009.mycompany.com" />
          <property name="casPort" value="8500" />
          <property name="casCrawlFullOutputDestDir"
             value="./data/complete_cas_crawl_output/full" />
          <property name="casCrawlIncrementalOutputDestDir"
             value="./data/complete_cas_crawl_output/incremental" />
          <property name="casCrawlOutputDestHost" value="CASHost" />
        </properties>
      < /custom-component>

  If the port on which the CAS Service was started is not the default `8500` number, change the value of the property.
- Incremental output definition: If you run incremental crawls, the default settings assume that the output format are compressed binary files. If your crawls are configured to use other output formats (uncompressed binary, compressed XML, or uncompressed XML), you must make the following changes.

  For an XML output format (either compressed or uncompressed), locate the `<script id="fetchIncrementalCasCrawlData">` section of the script and change the filename extension of the placeholder file from "placeholder.bin" to "placeholder.xml", so that the code looks like this:

      if (! fileUtil.dirContainsFiles(incrDestDir, Forge.getHostId())) {
        placeholder = incrDestDir + "/placeholder.xml";

  For uncompressed formats (either binary or XML), remove or comment out these statements that run a shell script to compress the placeholder file:

      shell.init("zip_incremental_cas_crawl_placeholder",
        Forge.getHostId(), zipCmd, Forge.getWorkingDir());
      shell.run();