AnsweredAssumed Answered

[Resolved] Module with properties files

Question asked by dranakan on May 29, 2009
Latest reply on Jun 24, 2009 by dranakan
Hello,

I would like to create my own properties files for my module. These properties are for example an adresse host. My module has the directory like this :


>config
   … myConfigModule.properties
>source/java
   … Java class which need myConfigModule.properties

To access my file, I will use : File file = new File(???). My problem is the access to this file. In my java class, I would to have access to this place : (c:\alfresco\tomcat\webapps\alfresco\).

Are they a variable containing the path to c:\alfresco\tomcat\webapps\alfresco\ ? (the goal is to have a module working on tomcat and Jboss (the path are differents).

Thanks :)

Outcomes