Hi Yaakov,
Not sure if this is your problem, but
${project.build.directory} refers to the target directory.
${project.directory} refers to the directory that contains the src
directory. Also I am wondering why you have the context.xml file where you
do in src/resources, and not in
I got mixed up when typing up the email. I do have the context.xml in
src/test/resources.
Either way, I am not sure why the FileNotFoundException cites the
literal string: ${project.build.directory} and not the absolute path.
Yaakov.
On 10/28/07, Nicole Lacoste [EMAIL PROTECTED] wrote:
Hi
Hi Yaakov,
Do I understand right that the ${project.build.directory} in in a file that
is not a pom? I don't think that if gets resolved outside of pom files.
Try just the name of the file aim-validator.properties instead of ${
project.build.directory}/aim-validator.properties. If it is in
Wait a second... If I am pretty new to maven, so...
I did tell maven in my pom.xml that I want the directory
src/test/resources filtered. So, why wouldn't it filter it? OR are you
saying that I have to create a 'filters' directory and place a
property file there and use THAT to filter things?
I don't know about filters. But maven sees src/test/resources, so you can
refer to stuff directly. Did you try it? Are you still getting the same
error?
Nicole
On 28/10/2007, Yaakov Chaikin [EMAIL PROTECTED] wrote:
Wait a second... If I am pretty new to maven, so...
I did tell maven in
A nice test to do would be:
constructor-arg index=0 value=${pom.artifactId}/aim-validator.properties
/
That way, if you get FileNotFoundException citing the file location
your-artifact-id/aim-validator.properties, then the problem is (somehow)
with the ${project.build.directory}. If you get a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Yaakov Chaikin wrote:
Wait a second... If I am pretty new to maven, so...
I did tell maven in my pom.xml that I want the directory
src/test/resources filtered. So, why wouldn't it filter it? OR are you
saying that I have to create a 'filters'
Hi,
I have a spring context XML file in src/resourses/context.xml. I need
to refer to a property file inside the context.xml file, so I have the
following line there:
constructor-arg index=0
value=${project.build.directory}/aim-validator.properties/
I also have this in my pom.xml:
build