ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53811] exception when using -Dfile.encoding=UTF-8
Date Sat, 01 Sep 2012 07:48:27 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53811

--- Comment #2 from Abu Abdullah <falcon.sheep@gmail.com> ---
(In reply to comment #1)
> piece of code:
> 
> final TarOutputStream tarFile = new TarOutputStream(new
> FileOutputStream(pathName));
> tarFile.setLongFileMode(TarOutputStream.LONGFILE_GNU);
> 
> ....
> 
> TarEntry tarEntry = new TarEntry(path);
> tarEntry.setSize(new File(pre_path+path).length());
> tarFile.putNextEntry(tarEntry);
> in = new FileInputStream(convertPath(choosedAudioPath)+path);
> while((len = in.read(buf)) > 0)
>  tarFile.write(buf, 0, len);
> 
> tarFile.closeEntry();
> in.close();

sorry, small mistake. it is:
in = new FileInputStream(pre_path+path);
instead of:
in = new FileInputStream(convertPath(choosedAudioPath)+path);

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

Mime
View raw message