ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21684] New: - sysproperty fails when using a properties file
Date Thu, 17 Jul 2003 13:02:13 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21684>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21684

sysproperty fails when using a properties file 

           Summary: sysproperty fails when using a properties file
           Product: Ant
           Version: 1.5.2
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: james.fawke@ecrossnet.com


When using the following sysproperties tag to send system properties to a JUNIT 
testcase I get a null pointer exception. I have confirmed the file can be found 
by the script by simply using the <property/> construct.

<sysproperty file="Test.properties"/> 

java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:380)
        at org.apache.tools.ant.types.CommandlineJava$SysProperties.setSystem
(CommandlineJava.java:130)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM
(JUnitTask.java:795)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute
(JUnitTask.java:556)
        at org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute
(JUnitTask.java:532)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message