Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009286Openbravo ERPA. Platformpublic2009-06-02 12:062009-06-20 00:00
jpabloae 
marvintm 
urgentmajoralways
closedfixed 
5
pi 
pi 
Core
No
0009286: Cannot run install.source without sampledata
It's not possible to run "ant install.source" without any XML files in referencedata. You get this error:

import.sample.data:

init:

compile.src.gen:

clean.src.gen:

generate.entities:
 [workflow] Adding param: /home/jpabloae/src/openbravo/erp/pi/src/org/openbravo/base/gen/gen_entity.oaw
 [workflow] Adding param: -pob.properties.location=/home/jpabloae/src/openbravo/erp/pi/config/Openbravo.properties
 [workflow] Adding param: -pbase.src.gen=/home/jpabloae/src/openbravo/erp/pi/src-gen
 [workflow] Adding param: --ant
    [javac] Compiling 441 source files to /home/jpabloae/src/openbravo/erp/pi/build/classes

import.sample.data:
     [echo] Importing sample reference data

BUILD FAILED
/home/jpabloae/src/openbravo/erp/pi/build.xml:501: The following error occurred while executing this line:
/home/jpabloae/src/openbravo/erp/pi/build.xml:405: The following error occurred while executing this line:
/home/jpabloae/src/openbravo/erp/pi/src/build.xml:180: org.openbravo.base.exception.OBException: No import files present in the import directory: /home/jpabloae/src/openbravo/erp/pi/referencedata/sampledata

Total time: 16 minutes 27 seconds
1. Delete referencedata/sampledata/*
2. ant install.source
No tags attached.
Issue History
2009-06-02 12:06jpabloaeNew Issue
2009-06-02 12:06jpabloaeAssigned To => alostale
2009-06-02 12:06jpabloaeIssue Monitored: iciordia
2009-06-02 12:06jpabloaeNote Added: 0016855
2009-06-02 12:24jpabloaeNote Added: 0016860
2009-06-02 12:25jpabloaeNote Added: 0016861
2009-06-02 12:25jpabloaeAssigned Toalostale => marvintm
2009-06-02 12:25jpabloaePriorityimmediate => urgent
2009-06-05 13:13psarobeStatusnew => scheduled
2009-06-05 13:13psarobefix_in_branch => pi
2009-06-11 12:18hgbotCheckin
2009-06-11 12:18hgbotNote Added: 0017212
2009-06-11 12:18hgbotStatusscheduled => resolved
2009-06-11 12:18hgbotResolutionopen => fixed
2009-06-11 12:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b0d0674519720688182c688a75f66a704d69495b [^]
2009-06-19 13:00sureshbabuStatusresolved => closed
2009-06-19 13:00sureshbabuNote Added: 0017478
2009-06-19 13:00sureshbabuFixed in Version => pi
2009-06-20 00:00anonymoussf_bug_id0 => 2809269

Notes
(0016855)
jpabloae   
2009-06-02 12:06   
Reminder sent to: iciordia

(0016860)
jpabloae   
2009-06-02 12:24   
Workaround:

Create a noclient.xml file in referencedata/sampledata/ with these lines:

<?xml version="1.0" encoding="UTF-8"?>
<ob:Openbravo xmlns:ob="http://www.openbravo.com"> [^]
</ob:Openbravo>
(0016861)
jpabloae   
2009-06-02 12:25   
Lowering the priority because we have a workaround.

Reassigning to marvintm per request of iciordia.
(0017212)
hgbot   
2009-06-11 12:18   
Repository: erp/devel/pi
Changeset: b0d0674519720688182c688a75f66a704d69495b
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jun 11 12:17:59 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b0d0674519720688182c688a75f66a704d69495b [^]

Fixed 9286. Now install.source should work without sampledata

---
M src/org/openbravo/service/db/ImportReferenceDataTask.java
---
(0017478)
sureshbabu   
2009-06-19 13:00   
Tested working fine