Re: ant task equivalent to -D<property>=<value>?
mvad <[email protected]> Tue, 11 Sep 2012 10:04:42 -0700 (PDT)
| Newsgroups | gmane.comp.java.audit.checkstyle.user |
|---|---|
| Message-ID | <[email protected]> |
Ok, this example is similar to my #2 attempt, though it may be different from
what I am looking for.
In my java code, I am calling System.getProperty(<property-name>) to
retrieve the value passed in, which works correctly when running checkstyle
from the java command line using "-Dmyvariable=mystring".
In the case of your example, should I be expecting the java statement:
System.getProperty("checkstyle.cache.file")
to return a File object or some kind of non-null value? My testing
indicates not.
--
View this message in context: http://checkstyle.2069334.n4.nabble.com/ant-task-equivalent-to-D-property-value-tp4654115p4654126.html
Sent from the CheckStyle - User mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/