• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Exception on setting Djavax.net.ssl.trustStore via relative path in ant junit task

 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
For a background, I am executing my unit test using the junit task in ant. The unit test require a SSL communication with a server. For this purpose, I have to specify a jvmarg of Djavax.net.ssl.trustStoreDjavax.net.ssl.trustStore.

The problem is that, if I specify the truststore path using a relative path I get:



Strange thing is that it works absolutely fine if I give the absolute path of the truststore:

This works


This does not work



 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic