contentimporter run

contentimporter run は、設定ファイルで指定されたジョブを実行するのに使用します。

概要

contentimporter run [ path ] [ -f|--force ] [ --help ]

説明

設定ファイルに指定されているジョブを実行します。

コマンド ラインで contentimporter run --help と入力して、オプションの説明を確認できます。

オプション

contentimporter run のオプションは次のとおりです。

-f または --force
前回のインポートが成功した場合でも、すべてのファイルを強制的に変換およびインポートします。これは、インポート アーティファクトを削除するのと同じです。
--help
コマンドの簡単な説明を出力します。
path
実行するジョブを指定する設定ファイルの場所。

スペースを含むパスは二重引用符で囲む必要があります。

設定ファイル

contentimporter run で実行できる設定ファイルの例を次に示します。


<importJob>
  <connectionId>UserName:YourUserName@foo.bar/ishws/infoshareauthor</connectionId>
  <actionType>ConvertAndImport</actionType>
  <fileFormatType>Generic</fileFormatType>
  <inputPath>C:\Import\In\</inputPath>
  <outputPath>C:\Import\Out\</outputPath>
  <repositoryPath>Import</repositoryPath>
  <waitAfterConversion>false</waitAfterConversion>
  <postXslFilePath>C:\Imports\ContentImporter.xsl</postXslFilePath>
  <reassignIds>false</reassignIds>
  <useFileNames>false</useFileNames>
  <defaultLanguage>
    <value>VLANGUAGEEN</value>
    <label>en</label>
    <description>English</description>
  </defaultLanguage>
  <defaultRendition>
    <value>VRESLOW</value>
    <label>Low</label>
    <description />
  </defaultRendition>
</importJob>

次のコマンドは、C:\Imports\Job1.config ファイルに指定されているジョブを実行します。

ContentImporter run C:\Imports\Job1.config