On Wed July 18 2007 3:59:05 pm you wrote: > I am wondering if anyone has any pointers on how I could change the > location of where my properties files are. I am looking to move them > to a separate directory to clean up my application. > > Thanks,
One way is to use Maven... If I understand what you're asking correctly, then you can set up any source directory structure you like with Maven. I have switched to a setup like this myself: The java files: src/main/java/ src/main/java/base/ src/main/java/components/ src/main/java/pages/ src/main/java/services/ The .properties files: src/main/resources/ src/main/resources/base/ src/main/resources/components/ src/main/resources/pages/ src/main/resources/services/ The html templates: src/main/tapestry/ src/main/tapestry/components/ src/main/tapestry/pages/ The WebApp files: src/main/webapp/ src/main/webapp/META-INF/context.xml src/main/webapp/WEB-INF/ src/main/webapp/WEB-INF/application.properties src/main/webapp/WEB-INF/web.xml (Maven has a standard layout, which this augments. You can read the Maven documentation for more: http://maven.apache.org/guides/ ) I am very new, and so far have only touched the surface of Tapestry, but this is working for me. You may have troubles if you're using Jetty and expecting things to auto-reload after changes. Jetty likely is configured to scan certain directories and notice changes, so it may not find everything if it is not programmed to look in other source and resource folders -- though in theory it can parse the POM and find out which directories to scan. To make the Maven POM, you need only add this resource declaration to your POM: <project ... <build> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> <resource> <directory>src/main/tapestry</directory> </resource> </resources> ... The filtering on your properties files is optional. This seems to be working for me. I use Maven 2.0.6, Tomcat in deployment, and Tap 5.0.5 (the released version). Good luck. Ciao! -Steev Coco. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]