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 34725] New: - sysproperty gives unhelpful message when value omitted
Date Tue, 03 May 2005 16:27:40 GMT
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=34725>.
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=34725

           Summary: sysproperty gives unhelpful message when value omitted
           Product: Ant
           Version: 1.5.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Keywords: ErrorMessage
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: smiley@photiczone.com


There is nothing wrong with providing system properties such as the following:
  java -DFLAG ExampleClass
rather than
  java -DFLAG=true ExampleClass

I know I can achieve this in a <java> task using
  <jvmarg value="-DFLAG"/>
but since this is actually a system property, I would also expect to be able to
do:
  <sysproperty key="FLAG"/>
but apparently not.  If I miss out the 'value', rather than getting a message 
explaining that ant makes the value mandatory (even though it arguably 
shouldn't be), it just throws a java.lang.NullPointerException.

-- 
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


Mime
View raw message