You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Remy Maucherat <re...@apache.org> on 2001/09/20 07:20:08 UTC

Updated build scripts for Tomcat 4 HEAD

Hi,

The overhaul of the build system should be almost complete. I restricted the
change to the HEAD branch. I don't see any particular need to roll this back
into the 4.0.x branch.

There are two main build options, toggled by the "full.dist" property.

- If the value of the property is "on", then Tomcat will be built as the
current 4.0 branch is. This target will generate a complete distribution
with all the modules, and useable on JDK 1.2.

- If the property is not defined or has a value which is not "on", then the
modules will be built conditionally, and JARs will be copied according to
which ones are available. This option is best when used in conjunction with
a recent JDK, because the requirements to build Tomcat will become very low.
The recommended platform is JDK 1.3, where only servlet.jar and regexp.jar
(version 1.2) are needed.
We could consider committing those two binaries in the CVS repository to
make it a breeze to build Tomcat (except for the problems with the Ant
<style> task of course), but I assume Craig is still against that practice.
The generated build will run on your computer, but is not guranteed to run
on JDK 1.2, among other things. Also, some optional modules may be left out
during the build, like SSL or JMX support.

Hopefully this new build script will be easy enough for the casual developer
to use.
(Since I think this meets the needs of both sides, I hope I won't get vetoed
;-))

Remy


Re: Updated build scripts for Tomcat 4 HEAD

Posted by Glenn Nielsen <gl...@voyager.apg.more.net>.
I haven't had a chance to look at your build changes yet,
but they sound very good.

Thanks Remy!

Glenn

Remy Maucherat wrote:
> 
> Hi,
> 
> The overhaul of the build system should be almost complete. I restricted the
> change to the HEAD branch. I don't see any particular need to roll this back
> into the 4.0.x branch.
> 
> There are two main build options, toggled by the "full.dist" property.
> 
> - If the value of the property is "on", then Tomcat will be built as the
> current 4.0 branch is. This target will generate a complete distribution
> with all the modules, and useable on JDK 1.2.
> 
> - If the property is not defined or has a value which is not "on", then the
> modules will be built conditionally, and JARs will be copied according to
> which ones are available. This option is best when used in conjunction with
> a recent JDK, because the requirements to build Tomcat will become very low.
> The recommended platform is JDK 1.3, where only servlet.jar and regexp.jar
> (version 1.2) are needed.
> We could consider committing those two binaries in the CVS repository to
> make it a breeze to build Tomcat (except for the problems with the Ant
> <style> task of course), but I assume Craig is still against that practice.
> The generated build will run on your computer, but is not guranteed to run
> on JDK 1.2, among other things. Also, some optional modules may be left out
> during the build, like SSL or JMX support.
> 
> Hopefully this new build script will be easy enough for the casual developer
> to use.
> (Since I think this meets the needs of both sides, I hope I won't get vetoed
> ;-))
> 
> Remy

-- 
----------------------------------------------------------------------
Glenn Nielsen             glenn@more.net | /* Spelin donut madder    |
MOREnet System Programming               |  * if iz ina coment.      |
Missouri Research and Education Network  |  */                       |
----------------------------------------------------------------------

Re: Updated build scripts for Tomcat 4 HEAD

Posted by Remy Maucherat <rm...@home.com>.
> On Wed, 19 Sep 2001, Remy Maucherat wrote:
>
> > Date: Wed, 19 Sep 2001 22:20:08 -0700
> > From: Remy Maucherat <re...@apache.org>
> > Reply-To: tomcat-dev@jakarta.apache.org
> > To: tomcat-dev@jakarta.apache.org
> > Subject: Updated build scripts for Tomcat 4 HEAD
> >
> > Hi,
> >
> > The overhaul of the build system should be almost complete. I restricted
the
> > change to the HEAD branch. I don't see any particular need to roll this
back
> > into the 4.0.x branch.
> >
>
> On the other hand, it's useful to have consistency.  I'd like to see this
> committed on the 4.0.x branch as well, since it meets my fundamental
> requirement for being able to build a full release.

Ok.

> Nice job, Remy!

Thanks :)

> (One little nit -- could you please document the "full.dist" property in
> the BUILDING.txt file?)

Sure.

Remy


Re: Updated build scripts for Tomcat 4 HEAD

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Wed, 19 Sep 2001, Remy Maucherat wrote:

> Date: Wed, 19 Sep 2001 22:20:08 -0700
> From: Remy Maucherat <re...@apache.org>
> Reply-To: tomcat-dev@jakarta.apache.org
> To: tomcat-dev@jakarta.apache.org
> Subject: Updated build scripts for Tomcat 4 HEAD
>
> Hi,
>
> The overhaul of the build system should be almost complete. I restricted the
> change to the HEAD branch. I don't see any particular need to roll this back
> into the 4.0.x branch.
>

On the other hand, it's useful to have consistency.  I'd like to see this
committed on the 4.0.x branch as well, since it meets my fundamental
requirement for being able to build a full release.

Nice job, Remy!

(One little nit -- could you please document the "full.dist" property in
the BUILDING.txt file?)

> There are two main build options, toggled by the "full.dist" property.
>
> - If the value of the property is "on", then Tomcat will be built as the
> current 4.0 branch is. This target will generate a complete distribution
> with all the modules, and useable on JDK 1.2.
>
> - If the property is not defined or has a value which is not "on", then the
> modules will be built conditionally, and JARs will be copied according to
> which ones are available. This option is best when used in conjunction with
> a recent JDK, because the requirements to build Tomcat will become very low.
> The recommended platform is JDK 1.3, where only servlet.jar and regexp.jar
> (version 1.2) are needed.
> We could consider committing those two binaries in the CVS repository to
> make it a breeze to build Tomcat (except for the problems with the Ant
> <style> task of course), but I assume Craig is still against that practice.
> The generated build will run on your computer, but is not guranteed to run
> on JDK 1.2, among other things. Also, some optional modules may be left out
> during the build, like SSL or JMX support.
>

I believe the ClassLoaderFactory changes I recently checked in should deal
with the issue of stuff that's already been integrated into the JDK.  It
checks for the existence of such packages (jndi, ldap, jsse, javax.sql,
...) being already present in the class loader, and refuses to add that
particular JAR file to the class loader repositories if they are not
needed.  The check is now independent of the filename you actually use for
the JARs (our previous hack was checking specifically for "jndi.jar" and
"ldap.jar").

> Hopefully this new build script will be easy enough for the casual developer
> to use.
> (Since I think this meets the needs of both sides, I hope I won't get vetoed
> ;-))
>

No veto from me ... +1 instead :-)

> Remy
>
>

Craig