Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 1136 invoked from network); 20 Mar 2003 09:27:40 -0000 Received: from k101-11.bas1.dbn.dublin.eircom.net (HELO corvil.com.) (159.134.101.11) by daedalus.apache.org with SMTP; 20 Mar 2003 09:27:40 -0000 Received: from preilly.local.corvil.com (preilly.local.corvil.com [172.18.1.173]) by corvil.com. (8.12.5/8.12.5) with ESMTP id h2K9Ropg099430 for ; Thu, 20 Mar 2003 09:27:51 GMT (envelope-from peter.reilly@corvil.com) Content-Type: text/plain; charset="iso-8859-1" From: peter reilly Organization: corvil To: Ant Users List Subject: Re: Selector Date: Thu, 20 Mar 2003 09:29:14 +0000 User-Agent: KMail/1.4.3 References: In-Reply-To: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200303200929.14539.peter.reilly@corvil.com> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I place all of ant's distribution under cvs. Each developed checks out a copy and set's env variables to point the right place on their env. The ant.bat in the distribution has been tested quite heavily in the many bizarre implemations of windows, I would not try to change it. Peter On Wednesday 19 March 2003 19:39, Narayanan, Gopalakrishnan wrote: > The reason for me to do that is to avoid other developers who may need = to > do a build from having to install ANT.They could just copy the build di= r > which contains the build.xml, build.bat and a lib folder which contains= all > the jar file and run build.bat.Is this something that one is not expect= ed > to do ? > > What is weird is that I had the same file running fine until last week. > > > -----Original Message----- > From: Dominique Devienne [mailto:DDevienne@lgc.com] > Sent: Wednesday, March 19, 2003 2:23 PM > To: 'Ant Users List' > Subject: RE: Selector > > > Maybe you should use the regular one... You batch file should only conc= ern > itself with adding the -verbose -logfile out.log to the command line fe= d 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 bett= er > 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 w= ith > 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=3Dbuild.xml > set LOGFILE=3Dout.log > > REM > REM > REM > REM cache original system classpath > > set _CLASSPATH=3D%CLASSPATH% > > if "%JAVA_HOME%" =3D=3D "" goto javahomeerror > if exist %JAVA_HOME%\lib\tools.jar set > CLASSPATH=3D%CLASSPATH%;%JAVA_HOME%\lib\tools.jar > > > > set > CLASSPATH=3D%CLASSPATH%;.\lib\ant-1.5.1.jar;.\lib\bcel.jar;.\lib\bsf.ja= r;.\li >b \js.jar > set > CLASSPATH=3D%CLASSPATH%;.\lib\optional.jar;.\lib\xercesImpl.jar;.\lib\x= ml-api >s .jar > set CLASSPATH=3D%CLASSPATH%;.\lib\NetComponents-1.3.8.jar > > echo %CLASSPATH% > > %JAVA_HOME%\bin\java.exe org.apache.tools.ant.Main -buildfile %BUILDFIL= E% > -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 t= he" > echo "location of the Java Virtual Machine you want to use." > > :end > > set CLASSPATH=3D%_CLASSPATH% > set _CLASSPATH=3D > > 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 unt= il 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 s= ay > that "selector" element is not permissible under project. > > > BUILD FAILED > > C:\build\build.xml:4: Unexpected element "selector" > =09at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:135) > =09at > org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:= 85) > =09at org.apache.tools.ant.Main.runBuild(Main.java:439) > =09at org.apache.tools.ant.Main.start(Main.java:153) > =09at org.apache.tools.ant.Main.main(Main.java:176) > > Total time: 2 seconds > > The relevant part in the build.xml file is > > > > =09 > =09 > =09=09 > =09 > =09.... > > > 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 > > --------------------------------------------------------------------- > 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