What is really weird, is the build.xml defines the basedir as . in <project name="Tomcat 5.0 Netbuild" default="build" basedir=".">
But changing <exec dir="${basedir}" executable="svn"> <arg line="checkout ${svnroot}/${current.loc} ${basedir}"/> </exec> to <exec dir="${basedir}" executable="svn"> <arg line="checkout ${svnroot}/${current.loc} ."/> </exec> fixed the problem on the svn grab. Now I've got more errors to deal with, but at least I've solved one problem. Of course, this is not a good solution since it destroys the ability to actually set the basedir in the project tag. The only thing I can think of is if another ant process is overriding the basedir value. Weird. Zach -----Original Message----- From: Zach Calvert [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 1:43 PM To: Tomcat Users List; users@tomcat.apache.org Subject: RE: Building Tomcat I discovered the problem. For some odd reason, which I haven't yet figured out, the svn call in the build.xml root <exec dir="${basedir}" executable="svn"> <arg line="checkout ${svnroot}/${current.loc} ${basedir}"/> </exec> is not just putting the checkout in the basedir, it is checking them out into a newly created directory current.loc. I do not understand why in the world it is doing this... So, when it goes to run ant deploy on the build.xml in the build folder, the build directory needs to be Tomcat\Tomcat-build\tc5.5.x\build Like I said, it shouldn't be doing this, and this is not the behavior I get when I run the command line svn checkout http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x . Making that call does NOT create the Tomcat\Tomcat-build\tc5.5.x\ directory Anyone got any suggestions? Zach -----Original Message----- From: Markus Schönhaber [mailto:[EMAIL PROTECTED] Sent: Friday, August 25, 2006 12:19 PM To: Tomcat Users List Subject: Re: Building Tomcat Zach Calvert wrote: > What are the exact steps of building the tomcat server from source? > By that I mean, where do you go to get the source, including the > dependent jars (commons, jasper, etc), and then use ant to build Tomcat > itself? Here's what I do on Windows: - Create a build directory, say "E:\tmp\Tomcat-build". - Download http://tomcat.apache.org/tomcat-5.5-doc/build.xml and put it in the build directory created above. - Optional: If you want to have the binary dependencies downloaded to, say "E:\tmp\Tomcat-build\binary-libs", instead of "C:\usr\share\java" create a file named build.properties in the build directory containing the line base.path=E:/tmp/Tomcat-build/binary-libs - In the console, change into the build directory and do ant - If you see a message asking you to accept the certificate for the asf repository (which you can't since svn is started by ant) do for example svn ls https://svn.apache.org/repos/asf/tomcat/build/tc5.5.x and accept the certifacte permanently. Run ant again. The Tomcat source and the binary libs should now be checked out and the main part of the build process should also have run. - Change into the build directory: cd build - If you changed the location where the binary libs are stored by creating a build.properties file (see above), you'll also have to create a build.properties file here, containing at least the same base.path line. - Build Tomcat: ant dist Now, a directory called "dist" (E:\tmp\Tomcat-build\build\dist) should have been created that contains a binary Tomcat release. Doing ant release will create a directory containing all the source and binary archives like the ones you can download from the Tomcat website. Regards mks --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]