You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sessizlik <ce...@gmail.com> on 2010/01/12 17:04:15 UTC
Best Practice & META-INF
Hi all,
I want to add version information and a few other timestamps such as latest
build number and so on...
IMHO it should reside in META-INF folder of the my root web application like
this:
/META-INF
/META-INF/build.xml
But when I put that file in my resource folder, it is becoming so
/WEB-INF/
/WEB-INF/classes
/WEB-INF/classes/META-INF
/WEB-INF/classes/META-INF/build.xml
I prefer first one but I do not want to make something is not true.
1 ) I do not know where my build.xml file should reside?
2 ) If /META-INF/build.xml is correct, how can I configure my war plugin to
put this file in right location.
Thanks
--
View this message in context: http://old.nabble.com/Best-Practice---META-INF-tp27129874p27129874.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Best Practice & META-INF
Posted by Justin Edelson <ju...@gmail.com>.
On Tue, Jan 12, 2010 at 2:18 PM, Sessizlik <ce...@gmail.com> wrote:
>
> Ok sorry for mistake,
>
> Actually I wanted write build.properties. It is nothing than a normal
> property file.
>
> 1 ) I believe that such files should be in "/META-INF" path. But I want to
> be sure about this. Is it right path for it?
>
Still not sure how would anyone else know where a file that follows
semantics known only to you should reside. As Wayne said earlier,
/WEB-INF/classes is on the classpath of your app server, so if you want to
be able to load this file via the classloader, that's where it *could* go.
But it's really dependent upon what you are going to do with this file.
>
> 2 ) If it is right directory, how can I configure my war plugin to
> configure
> to put in there. Note that I dont mean /WEB-INF/classes/META-INF .
>
See
http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
>
> Thanks
>
> --
> View this message in context:
> http://old.nabble.com/Best-Practice---META-INF-tp27129874p27131964.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Best Practice & META-INF
Posted by Sessizlik <ce...@gmail.com>.
Ok sorry for mistake,
Actually I wanted write build.properties. It is nothing than a normal
property file.
1 ) I believe that such files should be in "/META-INF" path. But I want to
be sure about this. Is it right path for it?
2 ) If it is right directory, how can I configure my war plugin to configure
to put in there. Note that I dont mean /WEB-INF/classes/META-INF .
Thanks
--
View this message in context: http://old.nabble.com/Best-Practice---META-INF-tp27129874p27131964.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Best Practice & META-INF
Posted by Wayne Fay <wa...@gmail.com>.
> 1 ) I do not know where my build.xml file should reside?
How could we possibly know where it should reside? What do you need to
do with that file?
> 2 ) If /META-INF/build.xml is correct, how can I configure my war plugin to
> put this file in right location.
/WEB-INF/classes/ will be on the classpath in your JavaEE App Server,
so you should be able to read the build.xml file if it is under that
directory in your package.
Wayne
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org