I have an ant script which has a taskdef
and the task creates an https internet connection and somethin with that SSL stuff is wrong. Thus I want to set the system property javax.net.debug=all
to get some more information.
In java I would do this using the -D
option, but in ant this is used for ant properties which is not the same as a system property.
If this wouldn't be a taskdef
but instead a java
task, I could use the sysproperty
property, but it is no java
-task.
Googling for this is frustratingly complicated because ant properties and system properties in ant are so similar that most search results are about the other (or about the java
-task).
Obviously I am not the only one with the problem, but other people's questions that I have found (like here) are unanswered or went for hack (like here).
user.name = prod
. When defined in Java Options (uses ANT_OPS) as-Duser.name=prod
everything works expected. System property user.name got's overwritten. – Piquet