ConcourseSuite Support

Support
Corporate
PUBLIC PROFILE

org.aspcfs.apps.transfer.Transfer

The Transfer application begins the process of migrating data from a DataReader to a DataWriter.

Transfer is responsible for loading configuration data, instantiating objects, and executing and monitoring the data import process.

The following is included in the Centric CRM build.xml file, which can be altered and used for importing Account Contacts and related data...

  <!-- Account Contact Importer based on CSV spec -->
  <target name="import.accountcontacts" depends="init">
    <fail unless="arg1">Missing arg1: CSV file to import not specified</fail>
    <fail unless="arg2">Missing arg2: Virtual Host to import to not specified</fail>
    <fail unless="arg3">Missing arg3: Import code not specified</fail>
    <mkdir dir="${build.pref.dir}"/>
    <copy file="${pref.dir}/cfs/transfer/import-accountcontacts.xml" 
      todir="${build.pref.dir}" overwrite="true"/>
    <replace file="${build.pref.dir}/import-accountcontacts.xml"
      token="@PROPERTY.FILE@" value="${pref.dir}/cfs/transfer/import-mappings.xml"/>
    <replace file="${build.pref.dir}/import-accountcontacts.xml"
      token="@CSV.FILE@" value="${arg1}"/>
    <replace file="${build.pref.dir}/import-accountcontacts.xml"
      token="@URL@" value="${arg2}"/>
    <replace file="${build.pref.dir}/import-accountcontacts.xml"
      token="@ID@" value="${arg3}"/>
    <replace file="${build.pref.dir}/import-accountcontacts.xml"
      token="@CODE@" value="${arg4}"/>
    <replace file="${build.pref.dir}/import-accountcontacts.xml"
      token="@SYSTEM.ID@" value="4"/>
    <java classname="org.aspcfs.apps.transfer.Transfer" fork="yes" failonerror="yes">
      <classpath>
        <path refid="cfs2.classpath"/>
        <fileset dir="${CENTRIC_HOME}/WEB-INF/lib">
          <include name="**/*.jar"/>
        </fileset>
      </classpath>
      <arg value="${build.pref.dir}${fs}import-accountcontacts.xml"/>
    </java>
  </target>

Sign in to add your comment.