Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020878Openbravo ERPA. Platformpublic2012-06-27 11:242012-09-24 12:33
mtaal 
marvintm 
highmajorhave not tried
scheduledopen 
5
 
 
Core
No
0020878: Having txt file in lib/runtime in a module shows error in install.source
When doing install.source and having a txt file in the lib/runtime of a module results in an exception (see below). Probably a filter has to be used to only consider jar/zip files and ignore other (license) files.


    at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Unable to obtain resource from /home/mtaal/mydata/dev/openbravo/projects/performance/customers/ice/pi/modules/com.tds.openbravo.shipmentintegration/lib/runtime/XmlSchema-LICENSE.txt: java.util.zip.ZipException: error in opening zip file
  [taskdef] Unable to obtain resource from /home/mtaal/mydata/dev/openbravo/projects/performance/customers/ice/pi/modules/com.tds.openbravo.shipmentintegration/lib/runtime/XmlSchema-LICENSE.txt:
  [taskdef] java.util.zip.ZipException: error in opening zip file
  [taskdef] at java.util.zip.ZipFile.open(Native Method)
  [taskdef] at java.util.zip.ZipFile.<init>(ZipFile.java:127)
  [taskdef] at java.util.jar.JarFile.<init>(JarFile.java:135)
  [taskdef] at java.util.jar.JarFile.<init>(JarFile.java:99)
  [taskdef] at org.apache.tools.ant.AntClassLoader.getResourceURL(AntClassLoader.java:1002)
  [taskdef] at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.findNextResource(AntClassLoader.java:145)
  [taskdef] at org.apache.tools.ant.AntClassLoader$ResourceEnumeration.nextElement(AntClassLoader.java:130)
  [taskdef] at org.apache.tools.ant.util.CollectionUtils$CompoundEnumeration.nextElement(CollectionUtils.java:241)
  [taskdef] at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:271)
  [taskdef] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
  [taskdef] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  [taskdef] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [taskdef] at java.lang.reflect.Method.invoke(Method.java:597)
  [taskdef] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  [taskdef] at org.apache.tools.ant.Task.perform(Task.java:348)
  [taskdef] at org.apache.tools.ant.Target.execute(Target.java:390)
  [taskdef] at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:180)
  [taskdef] at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:82)
  [taskdef] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:393)
  [taskdef] at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
  [taskdef] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
  [taskdef] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  [taskdef] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  [taskdef] at java.lang.reflect.Method.invoke(Method.java:597)
  [taskdef] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  [taskdef] at org.apache.tools.ant.Task.perform(Task.java:348)
  [taskdef] at org.apache.tools.ant.Target.execute(Target.java:390)
  [taskdef] at org.apache.tools.ant.Target.performTasks(Target.java:411)
  [taskdef] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
  [taskdef] at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
  [taskdef] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
  [taskdef] at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
  [taskdef] at org.apache.tools.ant.Main.runBuild(Main.java:809)
  [taskdef] at org.apache.tools.ant.Main.startAnt(Main.java:217)
  [taskdef] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
  [taskdef] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
add a txt file (see attached) to lib/runtime in a module and do install.source
No tags attached.
txt XmlSchema-LICENSE.txt (11,358) 2012-06-27 11:24
https://issues.openbravo.com/file_download.php?file_id=5333&type=bug
Issue History
2012-06-27 11:24mtaalNew Issue
2012-06-27 11:24mtaalAssigned To => marvintm
2012-06-27 11:24mtaalFile Added: XmlSchema-LICENSE.txt
2012-06-27 11:24mtaalModules => Core
2012-06-27 18:17marvintmTarget Version3.0MP13 =>
2012-07-12 12:23alostaleTypedefect => design defect
2012-09-24 12:33AugustoMauchNote Added: 0052320
2012-09-24 12:33AugustoMauchPrioritynormal => high
2012-09-24 12:33AugustoMauchStatusnew => scheduled

Notes
(0052320)
AugustoMauch   
2012-09-24 12:33   
Effort: 1
Impact: low
Plan: short