This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Shared properties between different projects with different projects

 
fres nillo
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic