From f5970ffc66aa2196eb4df51f41265bfa70fc85fe Mon Sep 17 00:00:00 2001 From: Hans Bakker Date: Thu, 26 Jan 2012 06:01:03 +0000 Subject: [PATCH] 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 --- build.xml | 13 ++++++++++++- .../entityext/data/EntityDataLoadContainer.java | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/build.xml b/build.xml index 8ad8ca080d..3583b55331 100644 --- a/build.xml +++ b/build.xml @@ -454,7 +454,7 @@ under the License. + description="This loads data using the command line argument 'data-file' to load data from a given file using the default delegator"> @@ -464,6 +464,17 @@ under the License. + + + + + + + + + + diff --git a/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java b/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java index 63d4d9f850..442036c3f2 100644 --- a/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java +++ b/framework/entityext/src/org/ofbiz/entityext/data/EntityDataLoadContainer.java @@ -472,7 +472,7 @@ public class EntityDataLoadContainer implements Container { List 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); }