https://issues.apache.org/bugzilla/show_bug.cgi?id=56873

            Bug ID: 56873
           Summary: NullPointException when copy a FTP URL with
                    gzipresource.
           Product: Ant
           Version: 1.9.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 31932
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=31932&action=edit
Minimal example for NPE, <gzipresource>

This NPE was reliably reproducable in my Linux (Debian stable), with Ant 1.9.4. 

When trying to copy contents from a tar.gz file via a URL, it generates a
NullPointException. --- It seems that this is caused by <gzipresource>, when I
give this URL (ftp). 

Here's the minimal build script that gives me reliable reproduce in my Linux.
Interestingly, on OSX, this "hangs" the Ant; but no NPE. 

( Note that the following build works all okay with 1.9.3 and below. ) 

=== 
<project basedir="." default="test2">
<target name="test2">
<sequential>
  <copy todir="temp/">
    <tarfileset>
      <gzipresource>
        <url
url="ftp://ftp.ims.uni-stuttgart.de/pub/corpora/tree-tagger-MacOSX-3.2-intel.tar.gz"/>
      </gzipresource>
    </tarfileset> 

  </copy> 
</sequential> 
</target>
</project> 
===

I have added the minimal example as attachment.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to