You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2005/05/12 00:25:25 UTC
DO NOT REPLY [Bug 34878] New: -
Null Pointer Exception when include specifies a non-existent file and casesensitive is false
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34878>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34878
Summary: Null Pointer Exception when include specifies a non-
existent file and casesensitive is false
Product: Ant
Version: 1.6.3
Platform: PC
OS/Version: Windows 2000
Status: NEW
Severity: normal
Priority: P3
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: hartsold@appliedbiosystems.com
Ran into this problem after upgrading from Ant 1.6.1 to 1.6.3. The following
task fails with a NullPointerException at line 875 in DirectoryScanner.java
(DirectoryScanner.checkIncludePatterns()) if bar.txt does not exist and the
casesensitive attribute is false.. The task works fine (i.e., copies nothing)
when casesensitive is false if I use a wildcard somewhere in the filename.
<copy todir="some-other-dir">
<fileset dir="some-dir" casesensitive="no">
<include name="bar.txt"/>
</fileset>
</copy>
Here's the last part of the stacktrace:
java.lang.NullPointerException
at org.apache.tools.ant.DirectoryScanner.checkIncludePatterns(DirectoryS
canner.java:875)
at org.apache.tools.ant.DirectoryScanner.scan(DirectoryScanner.java:808)
at org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(Abstra
ctFileSet.java:358)
at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:404)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org