[PATCH] net build ant script documentation
One must set the 'base.path' property to an *absolute* directory name for the net build script to function properly. Using a relative path will cause the script to fail. This patch seeks to add a simple warning to the user on this page. The file location may be wrong. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/building.html -- Josh Rehman citysearch.com 213.739.3559 Index: BUILDING.txt === RCS file: /home/cvspublic/jakarta-tomcat-5/BUILDING.txt,v retrieving revision 1.32 diff -u -r1.32 BUILDING.txt --- BUILDING.txt8 Sep 2003 10:12:00 - 1.32 +++ BUILDING.txt6 Feb 2004 05:49:43 - @@ -85,7 +85,7 @@ # - Default Base Path for Dependent Packages - # Replace this path with the directory path where dependencies binaries -# should be downloaded +# should be downloaded. THIS MUST BE AN ABSOLUTE PATHNAME! base.path=/usr/share/java @@ -107,4 +107,4 @@ In addition, ant build-depends will build packages that tomcat depends on ( commons-logging for now ), to ease fixes -and debuging in those packages. \ No newline at end of file +and debuging in those packages. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Net build problem solved.
One must set the 'base.path' property to an absolute directory name for the net build script to function properly. Using a relative path will cause the script to fail. I'm still not sure where the site code sits in CVS. This file should be changed: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/building.html However, I took a stab at a patch, attached. (Another option is to allow relative paths probably through the tricky use of a dirset and pathconvert (that's the only way I can think of to unconditionaly make a string an absolute path in ant).) -- Josh Rehman citysearch.com 213.739.3559 Index: BUILDING.txt === RCS file: /home/cvspublic/jakarta-tomcat-5/BUILDING.txt,v retrieving revision 1.32 diff -u -r1.32 BUILDING.txt --- BUILDING.txt8 Sep 2003 10:12:00 - 1.32 +++ BUILDING.txt6 Feb 2004 05:49:43 - @@ -85,7 +85,7 @@ # - Default Base Path for Dependent Packages - # Replace this path with the directory path where dependencies binaries -# should be downloaded +# should be downloaded. THIS MUST BE AN ABSOLUTE PATHNAME! base.path=/usr/share/java @@ -107,4 +107,4 @@ In addition, ant build-depends will build packages that tomcat depends on ( commons-logging for now ), to ease fixes -and debuging in those packages. \ No newline at end of file +and debuging in those packages. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with build
Everything seems to go well until: build-jspapi: [echo] == Building: dependant-lib/jsp-api-2.0/lib/jsp-api.jar prepare: [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/build [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/build/classes [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/build/docs [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/build/docs/api [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/build/examples [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/build/ant [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/dependant-lib/jsp-api-2.0 [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/dependant-lib/jsp-api-2.0/docs [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/dependant-lib/jsp-api-2.0/docs/api [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/dependant-lib/jsp-api-2.0/lib [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/dependant-lib/jsp-api-2.0/src [mkdir] Created dir: /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/dependant-lib/jsp-api-2.0/examples static: [copy] Copying 3 files to /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/dependant-lib/jsp-api-2.0 compile: [javac] Compiling 42 source files to /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/build/classes [javac] /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/src/share/javax/servlet/jsp/HttpJspPage.java:59: package javax.servlet.http does not exist [javac] import javax.servlet.http.*; [javac] ^ [javac] /home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/src/share/javax/servlet/jsp/JspPage.java:102: cannot resolve symbol [javac] symbol : class Servlet [javac] location: interface javax.servlet.jsp.JspPage [javac] public interface JspPage extends Servlet { [javac] ^ BUILD FAILED file:/home/josh/.eclipse/tomcat-src/jakarta-servletapi-5/jsr152/build.xml:73: Compile failed; see the compiler error output for details. The only wierd thing I have going on is base.path=dependant-lib is defined in build.properties; I don't want stuff being written into usr/java! The full ant output is quite long, but I'd be happy to provide it if that would help. BTW I'm trying to build so I can figure out why server.xml is being exploded into a directory structure and how to stop it, or at least have it clean up after itself. That net build script is cool! (http://jakarta.apache.org/tomcat/tomcat-5.0-doc/build.xml) BTW do y'all use any bug tracking software? I noticed there are lots of NEW bugs for Tomcat 4 - most of the 637 in fact. There are only 15 bugs for TC5, all NEW. FYI I wrote a new bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26676 -- Thanks, Josh Rehman citysearch.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]