Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027700Openbravo ERPA. Platformpublic2014-09-29 10:122022-02-01 08:05
shuehner 
Triage Platform Base 
normalminorhave not tried
acknowledgedopen 
5
 
 
Core
No
0027700: build.apply subfolder is not deleted in install.source
The build.apply folder (used for compiling subset of code needed for ApplyModulesTask) is not deleted on install.source.

That leads to following problem:
If one .class file is generated wrongly ever for some reason (i.e. exists with uptodate timestamp but 0 bytes).

Then every following install.source will also fail instead of cleanly reinstalling.

Note: build.apply is normally cleanup up after ApplyModules. So error truncating that file must have happened during execution of that task.

Note: to be decided if to delete build.apply only in install.source (i.e. cleanSubfolder of main build.xml) or in all compile.complete (i.e. src/build.xml clean task).

Note: as build.apply is always deleted after use normally no bad effect of doing every compile.complete and will give 'easier' fixing of the compilation problem described here.
Observed in ci.

Probably following steps could reproduce it.
edit src/build.xml and comment out following line inside 'apply.module' task..
   <delete includeEmptyDirs="true" dir="${build.apply.module}" />
Needed to keep build.apply around after compile.
ant install.source
truncate -s0 ./build.apply/classes/org/openbravo/erpCommon/modules/ApplyModuleTask.class
That is to simulate that file being broken.

ant install.source again
Should work but will fail always as it will not recompile the ApplyModuleTask.java file (as .class exists and is recent enough (file timestamp newer then java).
add line to delete build.apply (with content), ignoring if non-existent
to i.e. cleanSubFolders task.

No tags attached.
blocks design defect 0038296 acknowledged Triage Platform Base Review & cleanup build.xml 
Issue History
2014-09-29 10:12shuehnerNew Issue
2014-09-29 10:12shuehnerAssigned To => AugustoMauch
2014-09-29 10:12shuehnerModules => Core
2014-09-29 10:12shuehnerTriggers an Emergency Pack => No
2014-12-10 16:36alostaleAssigned ToAugustoMauch => NaroaIriarte
2015-03-11 11:20alostaleStatusnew => acknowledged
2015-03-17 14:38alostaleAssigned ToNaroaIriarte => platform
2018-04-08 16:56shuehnerRelationship addedblocks 0038296
2022-02-01 08:05alostaleAssigned Toplatform => Triage Platform Base

There are no notes attached to this issue.