Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 72909 invoked from network); 19 Mar 2003 19:23:19 -0000 Received: from junior.lgc.com (134.132.72.99) by daedalus.apache.org with SMTP; 19 Mar 2003 19:23:19 -0000 Received: from lgchvw01.lgc.com (lgchvw01.lgc.com [134.132.93.107]) by junior.lgc.com (8.11.6/8.11.3) with SMTP id h2JJMHW07824 for ; Wed, 19 Mar 2003 13:22:17 -0600 (CST) Received: from 134.132.93.152 by lgchvw01.lgc.com (InterScan E-Mail VirusWall NT); Wed, 19 Mar 2003 13:23:04 -0600 Received: by lgchexchbh.ad.lgc.com with Internet Mail Service (5.5.2653.19) id <1C7P4GS8>; Wed, 19 Mar 2003 13:23:03 -0600 Message-ID: From: Dominique Devienne To: "'Ant Users List'" Subject: RE: Selector Date: Wed, 19 Mar 2003 13:23:03 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Maybe you should use the regular one... You batch file should only concern itself with adding the -verbose -logfile out.log to the command line fed to the regular ant.bat. Try the regular ant.bat to see if it works. Also, Ant doesn't normally call its JAR ant-1.5.1.jar... It's much better to use Ant as distributed rather than trying to pick and choose pieces of it, IMHO. --DD -----Original Message----- From: Narayanan, Gopalakrishnan [mailto:gnaray@exchange.ml.com] Sent: Wednesday, March 19, 2003 1:17 PM To: 'Ant Users List' Subject: RE: Selector Thanks for the quick response.I donot use the ant.bat file that comes with ANT.Instead I use a custom batch file which invokes org.apache.tools.ant.Main. This is the source of the batch file @echo on set BUILDFILE=build.xml set LOGFILE=out.log REM REM REM REM cache original system classpath set _CLASSPATH=%CLASSPATH% if "%JAVA_HOME%" == "" goto javahomeerror if exist %JAVA_HOME%\lib\tools.jar set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar set CLASSPATH=%CLASSPATH%;.\lib\ant-1.5.1.jar;.\lib\bcel.jar;.\lib\bsf.jar;.\lib \js.jar set CLASSPATH=%CLASSPATH%;.\lib\optional.jar;.\lib\xercesImpl.jar;.\lib\xml-apis .jar set CLASSPATH=%CLASSPATH%;.\lib\NetComponents-1.3.8.jar echo %CLASSPATH% %JAVA_HOME%\bin\java.exe org.apache.tools.ant.Main -buildfile %BUILDFILE% -logfile %LOGFILE% -verbose %1 %2 %3 %4 %5 %6 %7 %8 %9 goto end REM -----------ERROR------------- :javahomeerror echo "ERROR: JAVA_HOME not found in your environment." echo "Please, set the JAVA_HOME variable in your environment to match the" echo "location of the Java Virtual Machine you want to use." :end set CLASSPATH=%_CLASSPATH% set _CLASSPATH= And I have the neccessary jar files under lib direcory relative to the folder where the build.xml resides. -----Original Message----- From: Dominique Devienne [mailto:DDevienne@lgc.com] Sent: Wednesday, March 19, 2003 2:12 PM To: 'Ant Users List' Subject: RE: Selector You probably have either a PATH problem or a ANT_HOME one, pointing to an older version of Ant (pre-selector, like 1.4.1). --DD -----Original Message----- From: Narayanan, Gopalakrishnan [mailto:gnaray@exchange.ml.com] Sent: Wednesday, March 19, 2003 1:09 PM To: 'ant-user@jakarta.apache.org' Subject: 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 .... Any help would be appreciated. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org