Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022429Openbravo ERPA. Platformpublic2012-11-29 14:282013-01-18 20:26
alostale 
alostale 
urgentminorN/A
closedfixed 
5
 
3.0MP203.0MP20 
AugustoMauch
Core
No
0022429: Simplify code promotion from testing to production environment
Implement a mechanism to promote modules from testing to production environment through obx files.

This mechanism will allow to export all modules in an environment as a single obx file that can be easily deployed in a different instance.
N/A
It will be required to create an umbrella module to consolidate all installed modules in it, this will be the module the obx will be generated for.

When exporting in this mode, not only inclusions but also dependencies will be included.
No tags attached.
? issue-22429.export (15,639) 2012-11-29 14:37
https://issues.openbravo.com/file_download.php?file_id=5774&type=bug
Issue History
2012-11-29 14:28alostaleNew Issue
2012-11-29 14:28alostaleAssigned To => alostale
2012-11-29 14:28alostaleModules => Core
2012-11-29 14:37alostaleFile Added: issue-22429.export
2012-11-29 14:40alostaleNote Added: 0054656
2013-01-11 10:31alostaleTriggers an Emergency Pack => No
2013-01-11 10:31alostaleTarget Version3.0MP19 => 3.0MP20
2013-01-16 12:27alostaleReview Assigned To => AugustoMauch
2013-01-16 12:27alostaleIssue Monitored: AugustoMauch
2013-01-16 12:38alostaleNote Added: 0055543
2013-01-16 12:38hgbotCheckin
2013-01-16 12:38hgbotNote Added: 0055544
2013-01-16 12:38hgbotStatusnew => resolved
2013-01-16 12:38hgbotResolutionopen => fixed
2013-01-16 12:38hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/cdc18afeeefd9350af9d6d582b3c1a8171341692 [^]
2013-01-18 11:16AugustoMauchNote Added: 0055601
2013-01-18 11:16AugustoMauchStatusresolved => closed
2013-01-18 11:16AugustoMauchFixed in Version => 3.0MP20
2013-01-18 11:21AugustoMauchNote Added: 0055602
2013-01-18 20:26hudsonbotCheckin
2013-01-18 20:26hudsonbotNote Added: 0055633

Notes
(0054656)
alostale   
2012-11-29 14:40   
Attached proposed solution.

ant package.module accepts now obx.export.allDeps property, which is defaulted to false. When it is true, all dependencies are recursively exported, not just inclusions. In this manner, having a module that depends directly or indirectly in the rest of all installed modules, exporting it all modules in the instance are in the obx.
(0055543)
alostale   
2013-01-16 12:38   
Documented in http://wiki.openbravo.com/wiki/Development_Build_Tasks#Modules [^]
(0055544)
hgbot   
2013-01-16 12:38   
Repository: erp/devel/pi
Changeset: cdc18afeeefd9350af9d6d582b3c1a8171341692
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Nov 29 14:36:33 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/cdc18afeeefd9350af9d6d582b3c1a8171341692 [^]

fixed issue 22429: Simplify promotion from testing to production environments

---
M build.xml
M src/org/openbravo/erpCommon/modules/ExtractModule.java
M src/org/openbravo/erpCommon/modules/ExtractModuleTask.java
M src/org/openbravo/erpCommon/modules/ExtractModule_data.xsql
M src/org/openbravo/erpCommon/modules/ImportModule.java
M src/org/openbravo/erpCommon/modules/ModuleUtiltiy.java
---
(0055601)
AugustoMauch   
2013-01-18 11:16   
Code reviewed and verified in pi@f798272afb9c
(0055602)
AugustoMauch   
2013-01-18 11:21   
Test plan:
- Package the module Widgets Collection without including the dependencies: ant package.module -Dmodule=org.openbravo.client.widgets
- The resulting obx only includes the folder org.openbravo.client.widgets.

- Package the same module including its dependencies: ant package.module -Dmodule=org.openbravo.client.widgets -Dobx.export.allDeps=true
- The resulting obx contains the following:
-----org.openbravo.client.widgets (folder)
-----org.openbravo.client.myob-2.1.19217.obx (org.openbravo.client.widgets dependency)
-----------org.openbravo.client.myob (folder)
-----------org.openbravo.client.application-2.1.19217.obx (org.openbravo.client.myob dependency)
----------------- client application folder and its dependencies, etc
(0055633)
hudsonbot   
2013-01-18 20:26   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/4cd4a6cc38e0 [^]

Maturity status: Test