IDEA Marks Valid ANT Code as red
Why is the taskdef and svn task in this ANT snippet highlighted in red in IDEA?
It runs perfectly well in ANT.
<!--SVN Revision Number-->
<!--========================================================================-->
<taskdef resource="org/tigris/subversion/svnant/svnantlib.xml">
<classpath>
<fileset dir="${lib.dir}/svnant" includes="**/*.jar"/>
</classpath>
</taskdef>
<property name="svn.revision" value="" />
<svn>
<status path="${basedir}" revisionProperty="svn.revision"/>
</svn>
The errors are "failed to load type" (taskdef) and "cannot resolve symbol" (svn).
Also, why is dest.env marked as red in the echo below "Property dest.env is unknown")
<target name="-prompt-for-config" unless="dest.env">
<input message="Please enter the environment you want to build to:" addproperty="dest.env" validargs="GOLD,SILVER,BRONZE"/>
<echo message="${dest.env}"/>
</target>
Again, there is no problem when running in ANT.
Please sign in to leave a comment.
What is wrong with this too?
${env.HOSTNAME}, ${env.COMPUTERNAME} and ${hostname} all get marked red