• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Policy File and Command line usage

 
SMK Reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
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 -Djava.security.policy=FBN.policy 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.
Regards
Reddy
 
Peter den Haan
author
Ranch Hand
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic