ant task equivalent to -D<property>=<value>?

mvad <[email protected]> Thu, 30 Aug 2012 10:34:16 -0700 (PDT)
Newsgroups gmane.comp.java.audit.checkstyle.user
Message-ID <[email protected]>
I am attempting to pass a system property to one of my custom modules.  This
works as expected when running checkstyle from the command with the usage
provided on this page:
http://checkstyle.sourceforge.net/cmdline.html
specifically using the java argument "-Dmyvariable=mystring"


However, I have been unable to find an ant task equivalent to passing in
these system properties:


Things that I have tried (none of which worked):

1) adding "-Dmyvariable=mystring" as an argument to the ant call

2) http://checkstyle.sourceforge.net/anttask.html
Unless I am misunderstanding, the URL above suggests that adding
<property key="myvariable" value="mystring"/> under <cs:checkstyle>
should have the same effect?

3) <sysproperty>?  Though none of the checkstyle xml elements recognize it,
so I am unsure where it could be added.


Any help is appreciated,
Michael



--
View this message in context: http://checkstyle.2069334.n4.nabble.com/ant-task-equivalent-to-D-property-value-tp4654115.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/