Getting Properties and Session Object
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   James_Gordon
Posted On:   Tuesday, May 28, 2002 08:24 PM

Hello, How do I run a cls (command line invocation for clear screen in Windows 2000 Professional) in ant? I placed this in my init target and I still can't clear the screen: Happy holidays and thanks again! -Unnsse Hi, Below are 2 sets on functions. Properties props = new Properties(); VS Properties props = System.Properties(); and Session session = Session.   More>>


Hello,



How do I run a cls (command line invocation for clear screen in Windows 2000 Professional) in ant?




I placed this in my init target and I still can't clear the screen:
















Happy holidays and thanks again!


-Unnsse

Hi,



Below are 2 sets on functions.



Properties props = new Properties(); VS

Properties props = System.Properties();



and



Session session = Session.getInstance(props, null); VS

Session session = Session.getDefaultInstance(props, null);



When should we use which methods to get the Properties and Session objects? Or it doesn't really matter at all?
(I'm aware that one is to create and the other is to get from the existing environment)




Thanks in advance.

   <<Less

Re: Getting Properties and Session Object

Posted By:   John_Zukowski  
Posted On:   Wednesday, May 29, 2002 08:56 PM

Assuming the System call was getProperties()... you would use that one when you know that the user might pass settings from the command line. You can set them with the -D option, as in -Dfoo=bar where foo is one of the properties you might set and bar is value.
About | Sitemap | Contact