This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Setting up CatalogManager.properties on Mac OS X for use with DocBook


Scott Anguish:
> it's whatever the default one is in the first case, which includes this 
> path as one of the 'extensions' directories.
> 
> and in the other, it's explicitly including java -cp 
> "/Library/Java/Extensions"
Maybe just for getting the file to work, I have written
a small Program using java.Util.RessourceBundle to load the
Properties.

So you do not have to run xalan to test this.
-----------------------------------------
import java.util.*;

public class  Proptest {
   public static void main(String argv[])
      throws java.io.IOException 
   {

      // get file
      ResourceBundle test = ResourceBundle.getBundle("CatalogManager");

      Enumeration keys = test.getKeys();
      while (keys.hasMoreElements()) {
         String key   = (String) keys.nextElement();
         String value = test.getString(key);
         System.out.println(key + "=" + value);
      }

   }
}
-----------------------------------------

Ciao

Jens Skripczynski
-- 
E-Mail: skripi-lists(at)myrealbox(dot)com

There are three ways to get something done:
(1) Do it yourself.
(2) Hire someone to do it for you.
(3) Forbid your kids to do it.


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]