Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TarFileSet src attribute note honored (patch included) #48

Open
GoogleCodeExporter opened this issue Jun 12, 2015 · 2 comments
Open

TarFileSet src attribute note honored (patch included) #48

GoogleCodeExporter opened this issue Jun 12, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant