On 01/11/2012 03:22 PM, Rainer Pruy wrote:
But beware that reading "pom.properties" might expose similar problem
as soon as there is a second jar (or some classes directory) with such
file (name).
This is intrinsic to anything that uses getResource*() family of methods
(at least under the hood)
A dirty hack for avoiding that trouble would be to use a file name that
likely is unique to your application.
Rainer
Actually, this is not a problem.
The pom.properties is accessed by an URL such as
"META-INF/maven/com.whatever/MyApp/pom.properties", which should be
unique. This is not the case with META-INF/MANIFEST.MF.
Steve
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]