tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Installe <pinst...@yahoo.com>
Subject Re: BUILD CONFIG ERROR
Date Wed, 07 Jun 2000 10:46:13 GMT

--- Yun Sang Jung <navidad@channeli.net> a écrit : > Use below build.xml, this
file is a lastes
version of build.xml from jakarata-tomcat
> Follow this link:
>
http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat/src/doc/appdev/sample/build.xml?rev=1.5&content-type=text/vnd.viewcvs-markup
> 
> I got below file above url. 
>
....
Thank you for your help. This point was critical for me.

I have make 2 modifications in my build.xml file that improve in my environment the facility.
As I suppose it could improve a little the startup of new user I post it here. As a newbies
I
do not know the history and the state of the art in this projet it could have good reason
why
these modifications are not present or the property name may/must/will be modified.

build.xml-------------------------
<project name="Hello, World" default="compile" basedir=".">

<!-- Simple "Hello, World" project to provide a concrete example of
     the recommendations in the Application Developer's Guide.

     NOTE:  Before using this file as is, you should review the
     values for the properties that are defined below.
     In particular, it is assumed that you wish to install this
     application under context path "/myapp" in the Tomcat installation
     defined by your TOMCAT_HOME environment variable.
-->

<!-- SUGGESTION : add one line "servet.lib" for a common class path -->
  <property name="app.name"       value="myapp"/>
  <property name="servlet.lib"    value="${tomcat.home}/lib"/>
  <property name="deploy.home"    value="${tomcat.home}/webapps/${app.name}"/>
  <property name="dist.home"      value="${deploy.home}"/>
  <property name="dist.src"       value="${app.name}.jar"/>
  <property name="dist.war"       value="${app.name}.war"/>
  <property name="javadoc.home"   value="${deploy.home}/javadoc"/>


  <target name="prepare">
    <mkdir dir="${deploy.home}"/>
    <copydir src="web" dest="${deploy.home}"/>
    <mkdir dir="${deploy.home}/WEB-INF"/>
    <copyfile src="etc/web.xml" dest="${deploy.home}/WEB-INF/web.xml"/>
    <mkdir dir="${deploy.home}/WEB-INF/classes"/>
    <mkdir dir="${deploy.home}/WEB-INF/lib"/>
    <copydir src="lib" dest="${deploy.home}/WEB-INF/lib"/>
    <mkdir dir="${javadoc.home}"/>
  </target>


  <target name="clean">
    <deltree dir="${deploy.home}"/>
  </target>


<!-- SUGGESTION : add item "servlet.lib" for a common class path -->   
  <target name="compile" depends="prepare">
    <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
           classpath="${servlet.lib};${deploy.home}/WEB-INF/classes" 
           debug="on" optimize="off" deprecation="off"/>
  </target>


  <target name="javadoc" depends="prepare">
    <!-- TODO -->
  </target>


  <target name="all" depends="clean,prepare,compile,javadoc"/>


  <target name="dist" depends="prepare,compile">
    <jar jarfile="${dist.home}/${dist.src}"
         basedir="." includes="*"/>
    <jar jarfile="${dist.home}/${dist.war}"
         basedir="${deploy.home}" includes="*"/>
  </target>


</project>
------------------------------------- 
> build.xml---------------------------
> 
> <project name="Hello, World" default="compile" basedir=".">
> 
> <!-- Simple "Hello, World" project to provide a concrete example of
>      the recommendations in the Application Developer's Guide.
> 
>      NOTE:  Before using this file as is, you should review the
>      values for the properties that are defined below.
>      In particular, it is assumed that you wish to install this
>      application under context path "/myapp" in the Tomcat installation
>      defined by your TOMCAT_HOME environment variable.
> -->
> 
>   <property name="app.name"       value="myapp"/>
>   <property name="deploy.home"    value="${tomcat.home}/webapps/${app.name}"/>
>   <property name="dist.home"      value="${deploy.home}"/>
>   <property name="dist.src"       value="${app.name}.jar"/>
>   <property name="dist.war"       value="${app.name}.war"/>
>   <property name="javadoc.home"   value="${deploy.home}/javadoc"/>
> 
> 
>   <target name="prepare">
>     <mkdir dir="${deploy.home}"/>
>     <copydir src="web" dest="${deploy.home}"/>
>     <mkdir dir="${deploy.home}/WEB-INF"/>
>     <copyfile src="etc/web.xml" dest="${deploy.home}/WEB-INF/web.xml"/>
>     <mkdir dir="${deploy.home}/WEB-INF/classes"/>
>     <mkdir dir="${deploy.home}/WEB-INF/lib"/>
>     <copydir src="lib" dest="${deploy.home}/WEB-INF/lib"/>
>     <mkdir dir="${javadoc.home}"/>
>   </target>
> 
> 
>   <target name="clean">
>     <deltree dir="${deploy.home}"/>
>   </target>
> 
> 
>   <target name="compile" depends="prepare">
>     <javac srcdir="src" destdir="${deploy.home}/WEB-INF/classes"
>            classpath="${deploy.home}/WEB-INF/classes"
>            debug="on" optimize="off" deprecation="off"/>
>   </target>
> 
> 
>   <target name="javadoc" depends="prepare">
>     <!-- TODO -->
>   </target>
> 
> 
>   <target name="all" depends="clean,prepare,compile,javadoc"/>
> 
> 
>   <target name="dist" depends="prepare,compile">
>     <jar jarfile="${dist.home}/${dist.src}"
>          basedir="." includes="*"/>
>     <jar jarfile="${dist.home}/${dist.war}"
>          basedir="${deploy.home}" includes="*"/>
>   </target>
> 
> 
> </project>
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

Mime
View raw message