aspose file tools*
The moose likes Spring and the fly likes Shared properties between different projects with different projects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Shared properties between different projects with different projects" Watch "Shared properties between different projects with different projects" New topic
Author

Shared properties between different projects with different projects

fres nillo
Greenhorn

Joined: Feb 01, 2011
Posts: 7
I have some doubts about one development related to different frameworks and .properties files.

I'm developing three projects, there are one with desktop java J2SE that uses a native .properties (not connected with nothing, it's used to manage and adapt local files to be ingested), other that have Struts2 framework and uses the default .properties file for i18n (used to manage the content of the frontend) and other more, based on SpringMVC and Liferay which uses the standard way to get a property (the target front-end).

The problem is that now, I want to unify these three projects, and the only way that I have into my head is use a common library that request for a property, and get the target code. The problem is that I have to adapt all the projects and all the called getText(KEY) functions should be replaced by these target library.

My question is if there is other way to load several .properties files with a library, and take advantage of the current framework of each project, because the only solution that I've thought is replace all the called getText() functions and call to a external library that check if there are one property of each .property file, but with this solution I have some problems with SpringMVC.

Thanks in advance for any idea.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Shared properties between different projects with different projects
 
Similar Threads
Few questions on Stripes
use a specific jvm with ant
shine J2EE service oriented framework
proper structure of ANT build scripts
about struts