You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. Open the attached zip (tarFileSetExample.zip)
2. run $ ant
What is the expected output? What do you see instead?
Expected a successful deb package with three files. file1.txt and file2.txt
from test.tar, and newfile.txt from the root directory. Instead, process fails
with a FileNotFound exception.
What version of the product are you using? On what operating system?
ant-deb-task v0.0.1
OSX 10.6
JDK 1.6.0_20
Please provide any additional information below.
TarFileSet reference:
http://ant.apache.org/manual/Types/tarfileset.html
Also did a plain ol' tar task (commented out in the attached archive), to
demonstrate that the tar task honors this behavior. Patch attached, tested with
example attached, as well as a really large tar. Sorry, no unit tests :(
Full trace:
BUILD FAILED
java.io.FileNotFoundException:
/Users/dalvizu/Documents/workspace/ant-sandbox/file1.txt (No such file or
directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at com.googlecode.ant_deb_task.Deb.getFileMd5(Deb.java:800)
at com.googlecode.ant_deb_task.Deb.scanData(Deb.java:733)
at com.googlecode.ant_deb_task.Deb.execute(Deb.java:606)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.Main.runBuild(Main.java:758)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Original issue reported on code.google.com by [email protected] on 20 Aug 2010 at 9:07
Original issue reported on code.google.com by
[email protected]
on 20 Aug 2010 at 9:07Attachments:
The text was updated successfully, but these errors were encountered: