Propose ant target run-install-dir

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Propose ant target run-install-dir

Stephen Rufle-2
I would like to create an ant tartget
run-install-dir
    <target name="run-install-dir" depends="build"
        description="This loads data using the command line argument
'dir' to load data from a given directory">
        <java jar="ofbiz.jar" fork="true">
            <jvmarg value="${memory.initial.param}"/>
            <jvmarg value="${memory.max.param}"/>
            <arg value="install"/>
            <arg value="delegator=default"/>
            <arg value="dir=${data-dir}"/>
        </java>
    </target>

Seems to work ok, but I noticed a difference from when I do it through
the EntityImportDir screen. I have seen that on the EntityImportDir
screen, if the import finds errors due to order of import , it tries
again. How would I invoke this functionality from a cmd line?

https://localhost:8443/webtools/control/EntityImportDir

Trimmed output of import

    Results:
    Got 22 entities from [OFBIZ_ROOT]\[IMPORT_DIR]\SomeData_01.xml
    Got 6 entities from [OFBIZ_ROOT]\[IMPORT_DIR]\SomeData_02.xml
    Failed [OFBIZ_ROOT]\[IMPORT_DIR]\SomeData_03.xml adding to retry
    list for next pass
    Pass 1 complete

    Failed [OFBIZ_ROOT]\[IMPORT_DIR]\SomeData_03.xml adding to retry
    list for next pass
    Pass 2 complete

    Got 4 entities from [OFBIZ_ROOT]\[IMPORT_DIR]\SomeData_03.xml
    ...
    Pass 3 complete
    ...
    Pass 4 complete
    ---------------------------------------
    Succeeded: 66 of 66
    Failed: 0 of 66
    ---------------------------------------
    Failed Files: