add ant target for loading a file using a specific delegator and extend load message

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1236044 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2012-01-26 06:01:03 +00:00
parent 19e0cc2cdc
commit f5970ffc66
2 changed files with 13 additions and 2 deletions
+12 -1
View File
@@ -454,7 +454,7 @@ under the License.
</java>
</target>
<target name="run-install-file" depends="build"
description="This loads data using the command line argument 'file' to load data from a given file">
description="This loads data using the command line argument 'data-file' to load data from a given file using the default delegator">
<java jar="ofbiz.jar" fork="true">
<jvmarg value="${memory.initial.param}"/>
<jvmarg value="${memory.max.param}"/>
@@ -464,6 +464,17 @@ under the License.
<arg value="file=${data-file}"/>
</java>
</target>
<target name="run-install-file-in-delegator" depends="build"
description="This loads data using the command line argument 'data-file' to load data from a given file to the command line argument 'delegator'">
<java jar="ofbiz.jar" fork="true">
<jvmarg value="${memory.initial.param}"/>
<jvmarg value="${memory.max.param}"/>
<jvmarg value="${memory.maxpermsize.param}"/>
<arg value="install"/>
<arg value="delegator=${delegator}"/>
<arg value="file=${data-file}"/>
</java>
</target>
<!-- =================================
target: run-install-tenant
================================= -->
@@ -472,7 +472,7 @@ public class EntityDataLoadContainer implements Container {
List<String> infoMessages = FastList.newInstance();
int totalRowsChanged = 0;
if (UtilValidate.isNotEmpty(urlList)) {
Debug.logImportant("=-=-=-=-=-=-= Doing a data load with the following files:", module);
Debug.logImportant("=-=-=-=-=-=-= Doing a data load using delegator '" + delegator.getDelegatorName() + "' with the following files:", module);
for (URL dataUrl: urlList) {
Debug.logImportant(dataUrl.toExternalForm(), module);
}