Correct location for properies files

2007-04-23 Thread Holt, Jack C.
Where is the correct location in the project directory tree for
properties files?

 

For instance, I am using a file I call message_en.properties that is
used to contain the i18n messages that I want to access using resource
bundles. In other words, it contains the English version of
internationalized text.

 

Currently, I'm putting them in my src/main/java directory and Eclipse is
automatically copying them into the directory with my test app server
needs them.  However, maven doesn't seem to know where to put them on
its own. 



Re: Correct location for properies files

2007-04-23 Thread David C. Hicks

src/main/resources

Add this path to your source folders in Eclipse, then both Eclipse and 
Maven will be happy with you.


Holt, Jack C. wrote:

Where is the correct location in the project directory tree for
properties files?

 


For instance, I am using a file I call message_en.properties that is
used to contain the i18n messages that I want to access using resource
bundles. In other words, it contains the English version of
internationalized text.

 


Currently, I'm putting them in my src/main/java directory and Eclipse is
automatically copying them into the directory with my test app server
needs them.  However, maven doesn't seem to know where to put them on
its own. 



  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Correct location for properies files

2007-04-23 Thread Marcelo Colomer Cornejo
We put them into src/main/resources. 
The package goal copy them into Web-inf/classes.

build
sourceDirectorysrc/main/java/sourceDirectory

outputDirectorytarget/${artifactId}-${version}/WEB-INF/classes/output
Directory
resources
resource
directorysrc/main/resources/directory
/resource
/resources
directorytarget/directory
finalName${artifactId}-${version}/finalName
defaultGoalwar/defaultGoal



-Mensaje original-
De: Holt, Jack C. [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 23 de abril de 2007 23:34
Para: users@maven.apache.org
Asunto: Correct location for properies files

Where is the correct location in the project directory tree for
properties files?

 

For instance, I am using a file I call message_en.properties that is
used to contain the i18n messages that I want to access using resource
bundles. In other words, it contains the English version of
internationalized text.

 

Currently, I'm putting them in my src/main/java directory and Eclipse is
automatically copying them into the directory with my test app server
needs them.  However, maven doesn't seem to know where to put them on
its own. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Correct location for properies files

2007-04-23 Thread Holt, Jack C.
Yes.  Thank you. That worked.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Marcelo Colomer Cornejo
Sent: Monday, April 23, 2007 3:30 PM
To: Maven Users List
Subject: RE: Correct location for properies files

We put them into src/main/resources. 
The package goal copy them into Web-inf/classes.

build
sourceDirectorysrc/main/java/sourceDirectory

outputDirectorytarget/${artifactId}-${version}/WEB-INF/classes/output
Directory
resources
resource
directorysrc/main/resources/directory
/resource
/resources
directorytarget/directory
finalName${artifactId}-${version}/finalName
defaultGoalwar/defaultGoal



-Mensaje original-
De: Holt, Jack C. [mailto:[EMAIL PROTECTED] 
Enviado el: lunes, 23 de abril de 2007 23:34
Para: users@maven.apache.org
Asunto: Correct location for properies files

Where is the correct location in the project directory tree for
properties files?

 

For instance, I am using a file I call message_en.properties that is
used to contain the i18n messages that I want to access using resource
bundles. In other words, it contains the English version of
internationalized text.

 

Currently, I'm putting them in my src/main/java directory and Eclipse is
automatically copying them into the directory with my test app server
needs them.  However, maven doesn't seem to know where to put them on
its own. 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]