ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@apache.org>
Subject Fw: Bug in unzip (Expand.java)
Date Tue, 03 Sep 2002 15:07:03 GMT
Patch applied against the 1.5 branch and the trunk.

Thanks for reporting.

Cheers,
Magesh

***********************************************
*  Yawn: The only time some married men ever  *
*  get to open their mouth.                   *
***********************************************
----- Original Message -----
From: "Bayyapu, Pavan" <pavan.bayyapu@sap.com>
To: <stefan.bodewig@epost.de>; <umagesh@apache.org>
Sent: Friday, August 16, 2002 5:25 PM
Subject: Bug in unzip (Expand.java)


> Hi,
> I was using ant 1.5 unzip construct and encounterd a problem (see the
bottom for transcript).
> Following lines of extractFile method of
org.apache.tools.ant.taskdefs.Expand  class is throwing null pointer
exception.
>             File dirF = fileUtils.getParentFile(f);
>             dirF.mkdirs();// Throwing null pointer exception, if there is
no need for creating a directory.
> Checking dirF for null fixed my problem.
> Will it be possible for you to incorporate this fix into the next build.
>
> Thanks a lot for your efforts in developing great build tool.
>
> Best regards,
> pavan
>
>
> My zip file has the following structure:
>
> META-INF\metainf.mf
> xyz.war
>
> unzip construct is expecting no root level files (if i place xyz.war in a
directory, it works fine).
>
> Error transcript:
>     [unzip] expanding META-INF/MANIFEST.MF to
C:\work\updatetool\OLD_SAP_EAR\wor
> k\META-INF\MANIFEST.MF
>     [unzip] expanding / to \
>
> BUILD FAILED
> java.lang.NullPointerException
>         at
org.apache.tools.ant.taskdefs.Expand.extractFile(Expand.java:228)
>         at
org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:157)
>         at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:127)
>         at org.apache.tools.ant.Task.perform(Task.java:317)
>         at org.apache.tools.ant.Target.execute(Target.java:309)
>         at org.apache.tools.ant.Target.performTasks(Target.java:334)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>         at org.apache.tools.ant.Main.runBuild(Main.java:610)
>         at org.apache.tools.ant.Main.start(Main.java:196)
>         at org.apache.tools.ant.Main.main(Main.java:235)
>
> Total time: 2 seconds
> java.lang.NullPointerException
>         at
org.apache.tools.ant.taskdefs.Expand.extractFile(Expand.java:228)
>         at
org.apache.tools.ant.taskdefs.Expand.expandFile(Expand.java:157)
>         at org.apache.tools.ant.taskdefs.Expand.execute(Expand.java:127)
>         at org.apache.tools.ant.Task.perform(Task.java:317)
>         at org.apache.tools.ant.Target.execute(Target.java:309)
>         at org.apache.tools.ant.Target.performTasks(Target.java:334)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1250)
>         at org.apache.tools.ant.Main.runBuild(Main.java:610)
>         at org.apache.tools.ant.Main.start(Main.java:196)
>         at org.apache.tools.ant.Main.main(Main.java:235)


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message