ANT properties file outside of module directory

Hello.

I have a question about apache-ant-1.5+ support in the IDEA 4.5.3. IDEA 4.5.x introduces a lot of features for ANT builds development (some refactorings, code navigation and so on), but lost ability to resolve properties placed in the property files that located higher in the directory tree. AFAIR it worked with 4.0 and may be earlier releases of IDEA, but it sto?ped to work in 4.5.x.

In other words, I have the following structure:

project-dir
-module-dir-#1
--build.properties
--build.xml
-module-dir-#2
-module-dir-#3
-common.build.properties

In this case IDEA highlights references to properties defined in the common.build.properties as errors in case when path to the common.build.properties is defined through the property from build.properties file.

'build.properties' contains
root.dir=..

'common.build.properties' contains
common.dir=${root.dir}/${project.name}

'build.xml' contains
]]>

and ${common.dir}/build.properties is highlighted as error.

Is it a bug or I just missed some setting/option?

Thank you in advance.

--
Best regards,
Andrey.

2 comments
Comment actions Permalink

Does the ${common.dir}/build.properties file exist? IDEA highlights files that don't exist as errors, which can be annoying if you have allowed for the possibility to customise the build, but the customisation files don't exist. There should definitely be an option to turn this off.

0
Comment actions Permalink

Surely it exists, because the build.xml works :) Furthermore, IDEA 4.0 resolves all these issues correctly and doesn't highlights the property file. I guess it was touched during ant build code navigation features 'enhancement'.

0

Please sign in to leave a comment.