This works. I tested it. For passing as java arguments in the ant build.xml you have to specify as jvarg. There is an example with the s-ramp-user and password