Win a copy of Spark in Action this week in the Open Source Projects forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Policy File and Command line usage

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the -D option to set my security policy file. Is this is allowed in the exam or i have to implement this in my program command line args
Here is the command line args for my program.
Java FlyByNight arg1 arg2
arg 1 is server name.
arg 2 is server port.
Is this allowed in the exam?or i need to implement like this
Java FlyByNight arg1 arg2 arg3
arg 1 is policyfile
arg 2 is server name
arg 3 is server port.
I really appreciate you suggestions.
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If there's a workable standard syntax to achieve something, it doesn't make sense to create a proprietary variation, I think. Myself, I simply used the -D flag (and documented this in the README). If they minded me doing so, at least they didn't mind it a lot (151/154).
- Peter
This is my favorite tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic