details: /erp/devel/pi-module-install/rev/26fdd6779347
changeset: 6473:26fdd6779347
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Mon Mar 01 11:33:37 2010 +0100
summary: Added module name when download fails
details: /erp/devel/pi-module-install/rev/1382b46ad980
changeset: 6474:1382b46ad980
user: Asier Lostalé <asier.lostale <at> openbravo.com>
date: Mon Mar 01 11:34:33 2010 +0100
summary: Removed old method
diffstat:
src/org/openbravo/erpCommon/modules/ImportModule.java | 1 +
src/org/openbravo/erpCommon/modules/ModuleUtiltiy.java | 19 +++--------------
2 files changed, 5 insertions(+), 15 deletions(-)
diffs (45 lines):
diff -r b67c47f18f79 -r 1382b46ad980
src/org/openbravo/erpCommon/modules/ImportModule.java
--- a/src/org/openbravo/erpCommon/modules/ImportModule.java Thu Feb 25
11:25:05 2010 +0100
+++ b/src/org/openbravo/erpCommon/modules/ImportModule.java Mon Mar 01
11:34:33 2010 +0100
@@ -398,6 +398,7 @@
RemoteModule remoteModule = ModuleUtiltiy.getRemoteModule(this,
module.getModuleVersionID());
if (remoteModule.isError()) {
+ addLog(module.getName(), MSG_ERROR);
log4j.error("Error downloading module");
return false;
}
diff -r b67c47f18f79 -r 1382b46ad980
src/org/openbravo/erpCommon/modules/ModuleUtiltiy.java
--- a/src/org/openbravo/erpCommon/modules/ModuleUtiltiy.java Thu Feb 25
11:25:05 2010 +0100
+++ b/src/org/openbravo/erpCommon/modules/ModuleUtiltiy.java Mon Mar 01
11:34:33 2010 +0100
@@ -208,6 +208,10 @@
return rt;
}
+ /**
+ * Obtains remotelly an obx for the desired moduleVersionID
+ *
+ */
static RemoteModule getRemoteModule(ImportModule im, String moduleVersionID)
{
RemoteModule remoteModule = new RemoteModule();
WebServiceImplServiceLocator loc;
@@ -292,19 +296,4 @@
remoteModule.setError(true);
return remoteModule;
}
-
- /**
- * Obtains remotelly an obx for the desired moduleVersionID
- *
- * @param im
- * {...@link ImportModule} instance used to add the log
- * @param moduleVersionID
- * ID for the module version to obtain
- * @return An {...@link InputStream} with containing the obx for the module
(null if error)
- */
- // public static InputStream getRemoteModule(ImportModule im, String
moduleVersionID) {
- // RemoteModule module = getRemoteModule(im, moduleVersionID);
- // return module.getObx();
- //
- // }
}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits