akarasulu 2003/12/04 19:20:22
Modified: util/xdocs/env index.xml
Log:
example
Revision Changes Path
1.3 +15 -0 avalon/util/xdocs/env/index.xml
Index: index.xml
===================================================================
RCS file: /home/cvs/avalon/util/xdocs/env/index.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- index.xml 5 Dec 2003 02:25:49 -0000 1.2
+++ index.xml 5 Dec 2003 03:20:22 -0000 1.3
@@ -62,6 +62,21 @@
of the Env class takes a snapshot of these variables which can be
accessed as properties using superclass methods.
</p>
+
+ <source>
+Env env = null ;
+
+try
+{
+ env = new Env() ;
+}
+catch ( EnvAccessException e )
+{
+ ...
+}
+
+String home = env.getProperty( MERLIN_HOME ) ;
+ </source>
</subsection>
</section>
</body>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]