ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chris.ch...@cendec.com
Subject unjar -> Exception setting the modification time of Z:\temp\ant\t emp\META-INF\MANIFEST.MF
Date Tue, 27 Mar 2001 01:02:30 GMT
Folks,

I got a problem when I tried to do a unjar as follows. Any thoughts?

Thanks in advance!

Chris

========
test.xml
========
<?xml version="1.0"?>
<project name="test" default="all" basedir=".">

  <target name="init">
     <property name="project.temp"         value="./temp" />
     <property name="struts.dir"           value="." />
     <property name="struts-resources.dir" value="./struts-resources" />
     <property name="orion-struts.dir"     value="./orion-struts" />
  </target>

  <target name="struts-pre" depends="init">
    <mkdir   dir="${project.temp}" />
    <unjar src="${struts.dir}/lib/struts.jar" dest="${project.temp}" /> 
    <!-- Move a set of files to a new directory -->
    <move todir="${struts-resources.dir}" >
      <fileset dir="${project.temp}/org/apache/struts/resources" >
        <include name="**/*.dtd"/>
      </fileset>
    </move>
    <delete  dir="${project.temp}" />
  </target>

  <!-- dummy default sub-task to include all sub-tasks
  -->
  <target name="all" depends="struts-pre">
  </target>

</project>

==============
Console Output
==============
Z:\temp\ant>ant -verbose -buildfile test.xml
Ant version 1.3 compiled on March 2 2001

Buildfile: test.xml
Detected Java Version: 1.3
Detected OS: Windows 2000
parsing buildfile Z:\temp\ant\test.xml with URI = file:Z:/temp/ant/test.xml
Project base dir set to: Z:\temp\ant
Build sequence for target `all' is [init, struts-pre, all]
Complete build sequence is [init, struts-pre, all]

init:

struts-pre:
    [unjar] Expanding: Z:\temp\ant\lib\struts.jar into Z:\temp\ant\temp
    [unjar] expand-file META-INF/
    [unjar] Setting modification time for Z:\temp\ant\temp\META-INF
    [unjar] expand-file META-INF/MANIFEST.MF

BUILD FAILED

Z:\temp\ant\test.xml:13: Exception setting the modification time of
Z:\temp\ant\
temp\META-INF\MANIFEST.MF
--- Nested Exception ---
java.lang.NullPointerException
        void org.apache.tools.ant.Main.runBuild()
        void org.apache.tools.ant.Main.main(java.lang.String[])

Total time: 1 second

Mime
View raw message