• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to set classpath if i place properties file in default/data directory

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i created folder say data and placed x.properties in jboss/server/default/data/x.properties;

how to set classpath for this?
 
Ranch Hand
Posts: 293
Mac OS X Netbeans IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You wouldn't set the class path to this directory. If you want to read/write to this directory, the jboss.server.data.dir system property tells you where the directory is located. You can then append your filename on to the end of this directory name to get the full path.

You can get a complete list of the JBoss system properties here.
[ January 29, 2006: Message edited by: Dave Salter ]
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you build the web portion of your file .ear or .war in eclipse<--- with xdoclet it's EASY ! ...

Somethings screwed up in your ant path or something...
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've had to do this when I want a properties file loaded by the system classloader. I've just set JBOSS_CLASSPATH environment variable to the directory with the property files before starting JBoss.
On linux I've added it to run.conf but on windows it doesn't seem to use this.
 
reply
    Bookmark Topic Watch Topic
  • New Topic