You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Narayanan, Gopalakrishnan" <gn...@exchange.ml.com> on 2003/03/19 20:09:11 UTC

Selector

I was running ANT 1.5.1 under jdk 1.3.1.Everything was working fine until I had to install jdk 1.4 in my machine.Now the same build file fails with the message even after reverting to jdk 1.3.1.I am
not sure if this is related to JDK version because the error seems to say that "selector" element is not permissible under project.


BUILD FAILED

C:\build\build.xml:4: Unexpected element "selector"
	at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:135)
	at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
	at org.apache.tools.ant.Main.runBuild(Main.java:439)
	at org.apache.tools.ant.Main.start(Main.java:153)
	at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 2 seconds

The relevant part in the build.xml file is

<project name="test" default="createCCLabel">

	<!-- Docbank Servlets -->
	<selector id="docBANK.selector.servlet.classes" >
		<filename name="**/servlet/**" />		
	</selector>
	....


Any help would be appreciated.