Openbravo Issue Tracking System - Tools
View Issue Details
0006014Toolsopenbravo2popublic2008-11-18 13:022014-04-02 15:51
gforcada 
pheenan 
normalmajoralways
closedfixed 
5
0006014: Can't runTemplateMerge with specific files as template and base
The actual arguments that runTemplateMerge doesn't allow to specify which file do you want to be the Template and which one will be the base file (it allows to specify the destination directory which is fine).
Change (or add) a couple of parameters to runTemplateMerge so it's able to get a specific xml file as Template and another one as base xml file.
commsup_sprint6
Issue History
2008-11-18 13:02gforcadaNew Issue
2009-01-19 09:52gforcadaNote Added: 0012290
2009-01-27 12:06pheenanStatusnew => scheduled
2009-01-27 12:06pheenanAssigned To => pheenan
2009-01-27 12:06pheenanfix_in_branch => trunk
2009-01-27 12:26pheenanTag Attached: comsup_sprint5
2009-02-11 16:45pheenanTag Detached: comsup_sprint5
2009-02-11 16:45pheenanTag Attached: commsup_sprint6
2009-02-11 19:01svnbotCheckin
2009-02-11 19:01svnbotNote Added: 0013369
2009-02-11 19:01svnbotStatusscheduled => resolved
2009-02-11 19:01svnbotResolutionopen => fixed
2009-02-11 19:01svnbotsvn_revision => 271
2014-04-02 15:51dmitry_mezentsevNote Added: 0066090
2014-04-02 15:51dmitry_mezentsevStatusresolved => closed

Notes
(0012290)
gforcada   
2009-01-19 09:52   
Phil, this is fixed in openbravo2po-valuetrl branch, right?
(0013369)
svnbot   
2009-02-11 19:01   
Repository: localization
Revision: 271
Author: pheenan
Date: 2009-02-11 19:01:28 +0100 (Wed, 11 Feb 2009)

Fixed 6014. Added two arguments to the template merge task. Task now takes a combination of templateFolder, baseFolder, templateFile, baseFile. If the templateFolder and baseFolder are empty then only the file args will be used. If both are used then they should combine to show the path to the files. If the file args are empty then the folders will be parsed and all files contained in those folders will be merged. Updated other test cases to use the new argument pattern. Added test files used in the test cases.

---
U tools/openbravo2po/branches/openbravo2po-valuetrl/build.xml
U tools/openbravo2po/branches/openbravo2po-valuetrl/src/org/openbravo/xmlpo/objects/TaskProcess.java
U tools/openbravo2po/branches/openbravo2po-valuetrl/src/org/openbravo/xmlpo/templateMerge/TemplateMerge.java
U tools/openbravo2po/branches/openbravo2po-valuetrl/src/org/openbravo/xmlpo/templateMerge/TemplateProcessor.java
U tools/openbravo2po/branches/openbravo2po-valuetrl/src/org/openbravo/xmlpo/utils/XMLFileBuilder.java
A tools/openbravo2po/branches/openbravo2po-valuetrl/tests/resources/templateMerge/folderTest/
A tools/openbravo2po/branches/openbravo2po-valuetrl/tests/resources/templateMerge/folderTest/baseFolder/
A tools/openbravo2po/branches/openbravo2po-valuetrl/tests/resources/templateMerge/folderTest/baseFolder/AD_MENU_TRL_it_IT.xml
A tools/openbravo2po/branches/openbravo2po-valuetrl/tests/resources/templateMerge/folderTest/baseFolder/AD_TASK_TRL_it_IT.xml
A tools/openbravo2po/branches/openbravo2po-valuetrl/tests/resources/templateMerge/folderTest/outputFolder/
A tools/openbravo2po/branches/openbravo2po-valuetrl/tests/resources/templateMerge/folderTest/outputSingleFileWithFolder/
A tools/openbravo2po/branches/openbravo2po-valuetrl/tests/resources/templateMerge/folderTest/templateFolder/
A tools/openbravo2po/branches/openbravo2po-valuetrl/tests/resources/templateMerge/folderTest/templateFolder/AD_MENU_TRL_en_US.xml
A tools/openbravo2po/branches/openbravo2po-valuetrl/tests/resources/templateMerge/folderTest/templateFolder/AD_TASK_TRL_en_US.xml
U tools/openbravo2po/branches/openbravo2po-valuetrl/tests/src/org/openbravo/xmlpo/templateMerge/TestTemplateMerge.java
U tools/openbravo2po/branches/openbravo2po-valuetrl/tests/src/org/openbravo/xmlpo/utils/TestMergeXMLFiles.java
---

https://dev.openbravo.com/websvn/localization/?rev=271&sc=1 [^]
(0066090)
dmitry_mezentsev   
2014-04-02 15:51   
Old issues