Nant build files being validated as if they were an ant file.

Hi,

Its me again the C# coder who wants to use IDEA :(.

I have a nant build file that I am editing in IDEA (7.0M2)- thinking that as the XSD is specified IDEA will validate against that.

But IDEA seems to think its an ant file and is validating as such.

Here is part of the file:

]]>

<property name="project.root" value="$" />

]]>

The nant xsd file is in the resource cache - it shows as green. But IDEA is saying things like the <include line is invalid - when it works fine.

Thanks,
Chris

2 comments
Comment actions Permalink

Hello Chris,

IDEA thinks that any XML file with "project" root element and "default" attribute
is an ant file. I think you could create a feature issue in JIRA about omitting
Nant files.

Hi,

Its me again the C# coder who wants to use IDEA :(.

I have a nant build file that I am editing in IDEA (7.0M2)- thinking
that as the XSD is specified IDEA will validate against that.

But IDEA seems to think its an ant file and is validating as such.

Here is part of the file:

<?xml version="1.0"?>
<project name="MithrasNet" default="solution-rebuild"
xmlns="http://nant.sf.net/release/0.85/nant.xsd">
<property name="project.root"
value="$" />

<include buildfile="include.build"/>

The nant xsd file is in the resource cache - it shows as green. But
IDEA is saying things like the <include line is invalid - when it
works fine.

Thanks,
Chris

Alexander.


0

Please sign in to leave a comment.