https://issues.apache.org/bugzilla/show_bug.cgi?id=48781
Summary: RuntimeException: data starting at 0 is in unknown
format
Product: Ant
Version: 1.8.0
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core
AssignedTo: [email protected]
ReportedBy: [email protected]
at org.apache.tools.zip.ZipEntry.setCentralDirectoryExtra(ZipEntry.java:314)
at org.apache.tools.zip.ZipFile.populateFromCentralDirectory(ZipFile.java:394)
at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:185)
at org.apache.tools.zip.ZipFile.<init>(ZipFile.java:148)
at org.apache.tools.ant.helper.ProjectHelper2.parse(ProjectHelper2.java:252)
Inserting these two prints prior to line 252:
System.out.println( uri );
System.out.println( org.apache.tools.ant.launch.Locator.fromJarURI(uri) );
produces this (this is being executing from within an InstallAnywhere
installer, which embeds all its non-IA classes, including Ant, in Execute.zip):
jar:file:/D:/User%20Profiles/mbm.PTCNET/Local%20Settings/Temp/I1266639466/InstallerData/Execute.zip!/org/apache/tools/ant/antlib.xml
D:\User Profiles\mbm.PTCNET\Local
Settings\Temp\I1266639466\InstallerData\Execute.zip
I worked around this error by replacing lines 252-253 with the previous logic.
inputStream = url.openStream();
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/helper/ProjectHelper2.java?r1=880590&r2=890827&diff_format=h
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.