Re: Properties Files
Re: Properties Files
- Subject: Re: Properties Files
- From: Chuck Hill <email@hidden>
- Date: Tue, 15 Jan 2008 07:28:25 -0800
On Jan 15, 2008, at 5:59 AM, David Avendasora wrote:
On Jan 15, 2008, at 8:38 AM, Pascal Robert wrote:
Le 08-01-15 à 08:30, David Avendasora a écrit :
Okay,
I'm confused, and I know part of it is my own fault. I started
development with Xcode, have transitioned to WOLips and am
building the app as a SSDD/WAR.
I know there is more than one way to define properties for my
application, but I'm not sure I understand it all, or which way
is the "Best Practice". I've looked in the Wiki and found some
information, but I'm not sure I understand completely which goes
where and if they are (not) flagged as resources.
So, I'm going to go through the list and see if I understand
everything.
1) Properties - this file is the place to put config for the
startup of the application. Framework Properties files are
overridden by application Properties files. Must be in the
Resources directory, and must be flagged as a Resource. Where do
I find a list of all the possible properties? I'm sure they're
defined somewhere in the WO doco, but I can't see, to find it.
When you put a file in the Resources, it should be automatically
flagged as a Resource. Same thing for the WebServerResources
folder, where files and folders will be flagged as Web Server
resources.
The only way I can get things to automatically be flagged as a
Resource is if I flag my Resources directory itself,
This actually depends on which version of WOLips you used to create
the project and hence which layout it is using.
but then that flags my .eogen and .eotemplates as well, which I
certainly don't need deployed to production. Do these files not
belong in that directory?
I would not want them there. Think of Resources as "Runtime Resources".
Chuck
2) log4j.properties - old format, replaced by log4j.xml
3) log4j.xml - the current format for configuring log4j. Must be
in the Resources directory and marked as a Resource.
4) build.properties - used by Ant to define variables such as
"project.name" Put in project root. Flagged as a Resource??
No, it should not be flagged as a resource. AFAIK, this file is
only used by build.xml to load properties.
5) build.xml - defines the Ant build process. Put in project
root, not flagged as a Resource??
Correct. It's only used when you "install" your app/framework,
Eclipse/WOLips is not using this file for the incremental build
made inside Eclipse.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden