• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can I get arguments from command line?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can I get arguments from command line?


  • Subject: Re: Can I get arguments from command line?
  • From: Frédéric JECKER <email@hidden>
  • Date: Tue, 22 Mar 2011 13:02:18 +0100
  • Thread-topic: Can I get arguments from command line?

Hi,

You could achieve this by using System.getProperty("anArgument") and by
setting your argument using -DanArgument="qwerty"

Regards

Fred



-----Message d'origine-----
De : Xavi Garcia <email@hidden>
Date : Tue, 22 Mar 2011 12:28:19 +0100
À : <email@hidden>
Objet : Can I get arguments from command line?

>Hi all,
>
>Just a question... is it possible to get an argument from de command line?
>
>For exemple, another app starts the woa with a new customized parameter.
>./myApp.woa -anArgument qwerty
>
>After myApp starts I need to know the value of anArgument. Is there some
>way to get it?
>
>Many thanks for your help.
>Xavi _______________________________________________
>Do not post admin requests to the list. They will be ignored.
>Webobjects-dev mailing list      (email@hidden)
>Help/Unsubscribe/Update your Subscription:
>om
>
>This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Can I get arguments from command line? (From: Xavi Garcia <email@hidden>)

  • Prev by Date: Can I get arguments from command line?
  • Next by Date: Re: Cannot obtain globalId for an object failure
  • Previous by thread: Can I get arguments from command line?
  • Next by thread: EO inheritance + Oracle
  • Index(es):
    • Date
    • Thread