Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0042832Openbravo ERPA. Platformpublic2020-01-09 13:592020-01-14 10:16
shuehner 
alostale 
urgentminorhave not tried
closedfixed 
5
 
3.0PR19Q3.43.0PR19Q3.4 
caristu
Core
No
0042832: ant package.module is missing to exclude .git
The standard ant package.module task used to package modules by developers is missing to exclude .git folder.

It currently has excludes for both .hg & .svn but is missing to add same for .git

Consequence is it including all git repo history (if present) inside the obx file making them unnecessarily large.

On some occasions it can cause later secondary problem with module management as it tries to overwrite some read-only files inside .git in case of updating a module via mmc (having .git inside obx) when older module version also have .git files present.

Relevant code to which the new (.git) case should be added:
https://code.openbravo.com/erp/devel/pi/file/tip/src/org/openbravo/erpCommon/modules/ExtractModule.java#l232 [^]
Clone any module which is hosted as a git repository and run ant package.module to create obx file.

Check obx file (unzip -v) and notice it does contain .git.

No tags attached.
blocks feature request 0042769 closed alostale ant package.module is missing to exclude .git 
Issue History
2020-01-14 09:12alostaleTypefeature request => backport
2020-01-14 09:12alostaleTarget Version => 3.0PR19Q3.4
2020-01-14 09:58hgbotCheckin
2020-01-14 09:58hgbotNote Added: 0116827
2020-01-14 09:58hgbotStatusscheduled => resolved
2020-01-14 09:58hgbotResolutionopen => fixed
2020-01-14 09:58hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q3.4/rev/29f40e544212d2b3209382c216e5fa338022b0c5 [^]
2020-01-14 10:16caristuNote Added: 0116831
2020-01-14 10:16caristuStatusresolved => closed
2020-01-14 10:16caristuFixed in Version => 3.0PR19Q3.4

Notes
(0116827)
hgbot   
2020-01-14 09:58   
Repository: erp/backports/3.0PR19Q3.4
Changeset: 29f40e544212d2b3209382c216e5fa338022b0c5
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Jan 14 09:06:25 2020 +0100
URL: http://code.openbravo.com/erp/backports/3.0PR19Q3.4/rev/29f40e544212d2b3209382c216e5fa338022b0c5 [^]

fixed ISSUE-42832: exclude .git directory when packaging modules

---
M src/org/openbravo/erpCommon/modules/ExtractModule.java
---
(0116831)
caristu   
2020-01-14 10:16   
Reviewed