Ant Script ${basedir} not found

after I have upgraded to 7.0.4 i have had problems with my Ant scripts.
If I have a simple ant script like this

]]>
<property name="src.dir" location="$/src"/>
</project>

The content of the "location" attribute is highlighted red and I am told that the folder does not exist.
I don't get this. As i is the "Project root" and I know for a fact that it exists.

The only content of basedir that seems to exist is "/". If I put in the relative path from "Project root" to "/"
it can also be located.. but everything else does not exist.

If I run the any targets in the script everything works just fine.. it seams to me that it is just the highlighting
that messes it up?

any insight anyone?

1 comment
Comment actions Permalink

Hello Michael,

after I have upgraded to 7.0.4 i have had problems with my Ant
scripts. If I have a simple ant script like this

<project name="foo" basedir=".">
<property name="src.dir" location="$/src"/>
</project>
The content of the "location" attribute is highlighted red and I am
told that the folder does not exist.

I don't get this. As i is the "Project root" and I know for a fact
that it exists.

The only content of basedir that seems to exist is "/". If I put in
the relative path from "Project root" to "/" it can also be located..
but everything else does not exist.

If I run the any targets in the script everything works just fine.. it
seams to me that it is just the highlighting that messes it up?

any insight anyone?


Thank you. This is really a problem of 7.0.4 (it does not occur in 8.0 builds).
Created http://www.jetbrains.net/jira/browse/IDEADEV-29650.

Alexander.


0

Please sign in to leave a comment.