Does anybody know a way to check if a file was already included?
<include buildfile="${script.dir}\util.include.nant" />
.
.
.
.
<include buildfile="${script.dir}\util.include.nant" />
This will throw an exception that a target was duplicated. Is there a way around?
Thanks in advance
Just saw this question which seems related and decided to change the case of one of the duplicate includes in a.build in my other answer to:
<include buildfile="c.build" />
<include buildfile="C.build" />
Boom - duplicate target error. Looks like nant is bright enough to ignore duplicate includes, but is case sensitive when comparing them.