Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030244Openbravo ERPA. Platformpublic2015-06-09 13:112015-06-25 18:47
malsasua 
caristu 
normalminoralways
closedfixed 
10Community Appliance
 
3.0PR15Q2.33.0PR15Q2.3 
AugustoMauch
Google Chrome
Core
No
0030244: On windows the 'ant setup' tool writes incorrect source.path to Openbravo.properties (not using \\ for a \)
Using 'ant setup' the tool writes source.path automatically but does not follow proper encoding of java properties files which required \\ to be used when a \ character is wanted as is

Effect of this is that any code using source.path (i.e. MMC, obx module installation and/or updates does not work)

Workaround is to manually edit source.path to have \\ for each \ which is wanted.

Note: Same applies to any path in properties (i.e. also attach.path)
In Windows OS:
.as system administrator, go to module management window
. select a obx file to install module
. error is returned:

Error: Error
org.openbravo.service.web.ResourceNotFoundException: Source file [C:openbravoerpopenbravo\src-db\database\model\tables\AD_MODULE.xml] can not be found. Verify 'source.path' property is properly set in Openbravo.properties file.
Approved
blocks defect 00301353.0PR15Q3 closed caristu On windows the 'ant setup' tool writes incorrect source.path to Openbravo.properties (not using \\ for a \) 
Issue History
2015-06-25 11:21caristuTypedefect => backport
2015-06-25 11:21caristuTarget Version => 3.0PR15Q2.3
2015-06-25 15:53dmitry_mezentsevTag Attached: Approved
2015-06-25 16:17caristuIssue Monitored: AugustoMauch
2015-06-25 16:17caristuReview Assigned To => AugustoMauch
2015-06-25 16:17caristuWeb browserGoogle Chrome => Google Chrome
2015-06-25 16:18hgbotCheckin
2015-06-25 16:18hgbotNote Added: 0078514
2015-06-25 16:18hgbotStatusscheduled => resolved
2015-06-25 16:18hgbotResolutionopen => fixed
2015-06-25 16:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q2.3/rev/5932cc502f4d2b871ffa4baf55f0fd6aa6b250fe [^]
2015-06-25 18:47AugustoMauchNote Added: 0078521
2015-06-25 18:47AugustoMauchStatusresolved => closed
2015-06-25 18:47AugustoMauchFixed in Version => 3.0PR15Q2.3

Notes
(0078514)
hgbot   
2015-06-25 16:18   
Repository: erp/backports/3.0PR15Q2.3
Changeset: 5932cc502f4d2b871ffa4baf55f0fd6aa6b250fe
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Thu Jun 25 16:13:13 2015 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR15Q2.3/rev/5932cc502f4d2b871ffa4baf55f0fd6aa6b250fe [^]

Fixes issue 30244: On windows the ant setup tool writes incorrect source.path

The ant setup tool was writing an incorrect source.path because the user.dir property obtained under Windows contains backslashes as file separator in the path.
Now this case is controlled, and in case we are under a Windows operative system, the backslashes are replaced with a slash. The slash can be safely used in all platforms because Java internally can handle it and do the translation into platform-specific paths.

---
M src/org/openbravo/configuration/ConfigurationApp.java
---
(0078521)
AugustoMauch   
2015-06-25 18:47   
Code reviewed and verified in [1]@5932cc502f4d

[1] https://code.openbravo.com/erp/backports/3.0PR15Q2.3 [^]