Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. By entity XML import reader : on your component indicate to load your files by with ext reader. When you want load your data, run ./ant load-ext from your OFBIz home directory.
    For instance in your component/ofbiz-component.xml:

    Code Block
    languagexml
        <entity-resource type="data" reader-name="ext" loader="main" location="data/MyImportData.xml"/>
    1.  See  How to preparing data for more information.
  2. Directly from webtools  in OFBiz, go to 

    1. https://localhost:8443/webtools/control/entityImport to load file by file or copy/paste text

    2. https://localhost:8443/webtools/control/EntityImportDir to load a directory content

  3. Call the OFBiz service importEntityFileDirectory if you have an automation process
  4. Directly from command line using Gradle command:

    Code Block
    gradlew "ofbiz --load-data file=data/myimportdata.xml"

    Note: The data file name should be lowercase only.

    For all the files in the given directory:

    Code Block
    gradlew "ofbiz --load-data dir=data"


...