`

tomcat 编译

阅读更多
1.
下载源码
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_32/

2
导入工程
tomcat6032

3
重命名
eclipse.project
eclipse.classpath

4
复制
build.properties.default -> build.properties

5
配置 build.properties
新建目录 tomcat6032/deps
base.path=E:/bisoft/code/workspace/201404/tomcat6032/deps

6
PS:工程的 JDK为必须1.5版本.否则DBCP包编译会报错.
builder.xml
运行 ant download build-tomcat-dbcp deploy

Buildfile: E:\bisoft\code\workspace\201404\tomcat6032\build.xml
build-manifests:
    [mkdir] Created dir: E:\bisoft\code\workspace\201404\tomcat6032\output\manifests
     [copy] Copying 8 files to E:\bisoft\code\workspace\201404\tomcat6032\output\manifests
download:
proxyflags:
setproxy:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/tomcat-native-1.1.20/tomcat-native.tar.gz
downloadfile:
    [mkdir] Created dir: E:\bisoft\code\workspace\201404\tomcat6032\deps\tomcat-native-1.1.20
      [get] Getting: http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.20/source/tomcat-native-1.1.20-src.tar.gz
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\tomcat-native-1.1.20\tomcat-native.tar.gz
proxyflags:
setproxy:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/tomcat-native-1.1.20/tcnative-1.dll.x86
downloadfile:
      [get] Getting: http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.20/binaries/win32/tcnative-1.dll
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\tomcat-native-1.1.20\tcnative-1.dll.x86
proxyflags:
setproxy:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/tomcat-native-1.1.20/tcnative-1.dll.x64
downloadfile:
      [get] Getting: http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.20/binaries/win64/x64/tcnative-1.dll
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\tomcat-native-1.1.20\tcnative-1.dll.x64
proxyflags:
setproxy:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/tomcat-native-1.1.20/tcnative-1.dll.i64
downloadfile:
      [get] Getting: http://archive.apache.org/dist/tomcat/tomcat-connectors/native/1.1.20/binaries/win64/ia64/tcnative-1.dll
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\tomcat-native-1.1.20\tcnative-1.dll.i64
proxyflags:
setproxy:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/commons-daemon-1.0.5/commons-daemon-1.0.5.jar
downloadgz:
      [get] Getting: http://archive.apache.org/dist/commons/daemon/binaries/1.0.5/commons-daemon-1.0.5-bin.tar.gz
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar.gz
   [gunzip] Expanding E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar.gz to E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar
    [untar] Expanding: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar into E:\bisoft\code\workspace\201404\tomcat6032\deps
   [delete] Deleting: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar
   [delete] Deleting: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar.gz
proxyflags:
setproxy:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/commons-daemon-1.0.5/commons-daemon-1.0.5-native-src.tar.gz
downloadfile:
      [get] Getting: http://archive.apache.org/dist/commons/daemon/source/commons-daemon-1.0.5-native-src.tar.gz
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\commons-daemon-1.0.5\commons-daemon-1.0.5-native-src.tar.gz
proxyflags:
setproxy:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/commons-daemon-1.0.5/windows/prunmgr.exe
downloadzip:
      [get] Getting: http://archive.apache.org/dist/commons/daemon/binaries/1.0.5/windows/commons-daemon-1.0.5-bin-windows.zip
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.zip
    [mkdir] Created dir: E:\bisoft\code\workspace\201404\tomcat6032\deps\commons-daemon-1.0.5\windows
    [unzip] Expanding: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.zip into E:\bisoft\code\workspace\201404\tomcat6032\deps\commons-daemon-1.0.5\windows
   [delete] Deleting: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.zip
proxyflags:
setproxy:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/commons-pool-1.5.5-src/build.xml
downloadgz:
      [get] Getting: http://archive.apache.org/dist/commons/pool/source/commons-pool-1.5.5-src.tar.gz
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar.gz
   [gunzip] Expanding E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar.gz to E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar
    [untar] Expanding: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar into E:\bisoft\code\workspace\201404\tomcat6032\deps
   [delete] Deleting: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar
   [delete] Deleting: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar.gz
proxyflags:
setproxy:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/commons-dbcp-1.3-src/build.xml
downloadgz:
      [get] Getting: http://archive.apache.org/dist/commons/dbcp/source/commons-dbcp-1.3-src.tar.gz
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar.gz
   [gunzip] Expanding E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar.gz to E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar
    [untar] Expanding: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar into E:\bisoft\code\workspace\201404\tomcat6032\deps
   [delete] Deleting: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar
   [delete] Deleting: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.tar.gz
    [mkdir] Created dir: E:\bisoft\code\workspace\201404\tomcat6032\deps\tomcat6-deps\dbcp
build-manifests:
     [copy] Copying 8 files to E:\bisoft\code\workspace\201404\tomcat6032\output\manifests
build-tomcat-dbcp:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/ecj-3.3.1/ecj-3.3.1.jar
downloadfile-2:
    [mkdir] Created dir: E:\bisoft\code\workspace\201404\tomcat6032\deps\ecj-3.3.1
proxyflags:
setproxy:
trydownload.check:
trydownload:
      [get] Getting: http://archive.eclipse.org/eclipse/downloads/drops/R-3.3.1-200709211145/ecj.jar
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\ecj-3.3.1\ecj-3.3.1.jar
proxyflags:
setproxy:
trydownload.check:
trydownload:
proxyflags:
setproxy:
testexist:
     [echo] Testing  for E:/bisoft/code/workspace/201404/tomcat6032/deps/nsis-2.46/makensis.exe
downloadzip:
      [get] Getting: http://downloads.sourceforge.net/nsis/nsis-2.46.zip
      [get] To: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.zip
      [get] http://downloads.sourceforge.net/nsis/nsis-2.46.zip permanently moved to http://downloads.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46.zip
      [get] http://downloads.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46.zip moved to http://nchc.dl.sourceforge.net/project/nsis/NSIS%202/2.46/nsis-2.46.zip
    [unzip] Expanding: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.zip into E:\bisoft\code\workspace\201404\tomcat6032\deps
   [delete] Deleting: E:\bisoft\code\workspace\201404\tomcat6032\deps\file.zip

build-tomcat-dbcp:

...

BUILD SUCCESSFUL
Total time: 2 minutes 23 seconds





分享到:
评论

相关推荐

    Tomcat编译和调试

    【Tomcat编译和调试】涉及的知识点包括: 1. **Tomcat源代码获取**:首先,你需要通过Subversion (SVN) 工具来export Apache Tomcat 6.0的源代码。官方源码包可能不包含`build.xml`文件,因此需要从Apache的SVN仓库...

    tomcat编译依赖Jar

    "tomcat编译依赖Jar"指的是在编译Tomcat源码时需要的一系列外部Java档案(.jar文件),这些文件包含了编译过程所需的类库和工具。了解这些依赖关系对于开发者来说至关重要,因为它们确保了Tomcat能够正确构建并运行...

    编译后的Tomcat源文件

    编译后的Tomcat源文件

    编译tomcat源码所需jar包

    本文将深入探讨“编译Tomcat源码所需jar包”这一主题,帮助开发者了解如何从源码构建Tomcat,以及在这个过程中需要用到的关键jar包。 首先,我们来了解一下为什么要从源码编译Tomcat。直接下载预编译的二进制版本...

    tomcat6编译后源码1 共4个

    tomcat6编译后源码 解压后直接导入工程可运行

    编译安装Tomcat

    Tomcat 编译安装详解 Tomcat 是 Apache 软件基金会(Apache Software Foundation)的 Jakarta 项目中的一个核心项目,由 Apache、Sun 和其他一些公司及个人共同开发而成。Tomcat 是一个免费的开放源代码的 Web 应用...

    tomcat打补丁方法

    - **编译Java文件并更新到jar包**:对于某些特定情况,可能需要手动修改源代码并编译成class文件后更新到jar包中。但在大多数情况下,直接应用官方提供的补丁文件即可完成安全更新,无需进行此类操作。 #### 五、...

    编译tomcat6所需的jar包

    在描述中提到的几个jar包,都是Tomcat编译过程中不可或缺的部分: 1. **geronimo-spec-jaxrpc-1.1-rc4.jar**:这是一个实现Java API for XML-Based Remote Procedure Call (JAX-RPC)规范的jar包。JAX-RPC是用于构建...

    Linux6.0下Apache与tomcat 整合支持php html java(编译安装)

    "Linux 6.0 下 Apache 与 Tomcat 整合支持 PHP、HTML、Java(编译安装)" Linux 6.0 下 Apache 与 Tomcat 的整合是指在 Linux 6.0 操作系统中将 Apache 和 Tomcat 服务器整合起来,以支持 PHP、HTML 和 Java 等多种...

    tomcat6编译

    【标题】:“Tomcat6编译”涉及到的知识点主要涵盖了Apache Tomcat的版本历史、源码获取、编译环境配置、编译步骤以及部署与运行等核心内容。 【描述】:“Tomcat6源码编译,需要的朋友可以下载”表明这是一项针对...

    tomcat源码编译所需jar包

    《深入解析Tomcat源码编译所需jar包》 Tomcat作为一款广泛应用的开源Web服务器和Servlet容器,其源码的编译与理解对于开发者来说是提升技术水平的重要途径。源码编译过程中,jar包的正确配置至关重要。本文将详细...

    tomcat源码编译依赖的源码包

    tomcat源码编译依赖的源码包,有些源码包比如DBCP本身有问题,需要修复后才能编译,这个是正常编译版本。下载后解压目录,需要在build.properties里修改base.path为这个目录,方可编译!

    tomcat6编译后源码3 共4个

    tomcat6编译后源码3 共4个tomcat6编译后源码3 共4个

    可以直接用的tomcat7,无需安装,解压可用,包括windows与linux批处理

    7. **work** 目录:存放Tomcat编译JSP文件产生的类文件和编译过程中的其他临时文件。 使用这种预配置的Tomcat压缩包,用户可以快速搭建Java Web开发环境,进行测试、学习或部署简单的应用。不过,对于生产环境,...

    Tomcat 安装版

    - JSP:JavaServer Pages是一种动态网页技术,开发者可以在HTML页面中嵌入Java代码,由Tomcat编译成Servlet运行。 - Servlet:Servlet是Java编写的服务器端程序,用于处理HTTP请求,Tomcat会加载并执行Servlet类。...

    tomcat7.0编译好的源码

    tomcat源码工程,build步骤: 1,解压到eclipse工程目录...6,运行ant任务,tomcat插件依赖项目会下载到base.path路径内,同时编译 ps,包内包含编译后的build 导入eclipse: 新建工程,以ant方式导入,选择build.xml

    apache-tomcat-8.5.53.zip

    7. **work目录**:Tomcat编译JSP页面并生成的Java类文件会存放在这个目录下。 Apache Tomcat 8.5.53版可能包含以下改进和修复: - **安全性增强**:修复了多个安全漏洞,以防止恶意攻击,保护服务器免受跨站脚本...

    apache-tomcat-9.0.65.zip

    7. **work目录**:Tomcat编译JSP页面生成的Java类文件和应用在运行时生成的临时文件会存放在该目录下。 8. **LICENSE**和**NOTICE**文件:包含了Apache Tomcat的许可协议和版权信息。 在部署和运行Tomcat之前,...

Global site tag (gtag.js) - Google Analytics