tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filip Hanik - Dev lists <devli...@hanik.com>
Subject Re: SVN
Date Wed, 19 Oct 2005 17:20:41 GMT
here is a script posted on the list earlier




#!/bin/sh
############################################################################# 

# This is a quickie helper script to  easily build tomcat 5 from source.
# This will create a subdirectory called tc5build and build
# tomcat 5 into it.
#
# Here are the requirements to get this to run
# 1) Set JAVA_HOME to a 1.4 compliant JDK
#     ex: /opt/java1.4
# 2) Set ANT_HOME to your ant installation (You need ant 1.6 or better)
#     ex: /opt/jakarta/jakarta-ant-1.6
# 3) Make sure svn is in your path
# 4) Make sure NetComponents.jar is installed in $ANT_HOME/lib
#    which can be found at http://www.savarese.org/oro/index.html
#    [Not sure if this step is still required for Ant to download things.]
############################################################################# 


############################################################################# 

# Some help functions
############################################################################# 

TC_ECHO() {
  echo INFO: `date '+%H:%M:%S'` - $1
}

TC_DOH() {
  echo ERROR: `date '+%H:%M:%S'` - $1
}


############################################################################# 

# cygwin - The UI of unix and the stability of windows.
############################################################################# 

cygwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
esac


############################################################################# 

# Check for JAVA_HOME
############################################################################# 

if [ "Z" = "Z$JAVA_HOME" ] ;
then
   TC_DOH "Where is JAVA_HOME!"
   exit 1
fi



############################################################################# 

# Check for ANT_HOME
############################################################################# 

if [ "Z" = "Z$ANT_HOME" ] ;
then
  TC_DOH "Where is ANT_HOME! Please set it."
  exit 1
fi



############################################
# It seems like the environment is set
############################################
TC_ECHO  "Using ANT_HOME=$ANT_HOME"
TC_ECHO  "Using JAVA_HOME=$JAVA_HOME"
TC_ECHO  "Putting everything in `pwd`/tc5build"
TC_ECHO  "Downloaded dependencies go into `pwd`/tc5build/includes"


mkdir -p tc5build/includes
if [ 0 != $? ];
then
  TC_DOH "Making subdir tc5build/includes failed!"
  exit 1
fi

BASE_PATH=`pwd`/tc5build/includes
if $cygwin; then
  BASE_PATH=`cygpath --path --mixed "$BASE_PATH"`
fi


cd tc5build
TC_ECHO "Getting http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x/"


svn co http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x/
if [ 0 != $? ];
then
  TC_DOH "Checkout failed. Hopefully there is a reason above."
  exit 1
fi

cd tc5.5.x/build
echo "base.path=$BASE_PATH" > build.properties

############################################
# Now do the build
############################################
TC_ECHO "Now performing the build"
$ANT_HOME/bin/ant download deploy

TC_ECHO "All done!"


Allistair Crossley wrote:

>Hi,
>
>I did just that but got
>
>C:\svn-tc5.5.x\build\build.xml:137: Warning: Could not find file C:\usr\share\ja
>va\jsp-api-2.0\lib\jsp-api.jar to copy.
>
>I remember the previous build would download these usr/share dependencies beforehand?
>
>Cheers, Allistair.
>
>  
>
>>-----Original Message-----
>>From: Yoav Shapira [mailto:yoavs1@yahoo.com]
>>Sent: 19 October 2005 15:09
>>To: 'Tomcat Developers List'
>>Subject: RE: SVN
>>
>>
>>Hi,
>>svn co http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x tomcat
>>cd tomcat/build
>>ant
>>
>>That's it. 
>>
>>Yoav Shapira
>>System Design and Management Fellow
>>MIT Sloan School of Management
>>Cambridge, MA USA
>>yoavs@computer.org / www.yoavshapira.com
>>    
>>
>>>-----Original Message-----
>>>From: Allistair Crossley [mailto:Allistair.Crossley@QAS.com]
>>>Sent: Wednesday, October 19, 2005 9:57 AM
>>>To: dev@tomcat.apache.org
>>>Subject: SVN
>>>
>>>Hi,
>>>
>>>Can I just ask if the Tomcat subversion migration is now 
>>>      
>>>
>>complete? If i
>>    
>>
>>>were to want to obtain the latest 5.5.x branch, would I 
>>>      
>>>
>>just do so from
>>    
>>
>>>/tomcat/current/5.5.x. Also, I presume the build.xml script 
>>>      
>>>
>>will have
>>    
>>
>>>changed now? I wonder if someone might highlight a few 
>>>      
>>>
>>steps/ant targets
>>    
>>
>>>for the new setup, and I will give it a shot and write a 
>>>      
>>>
>>more formal help
>>    
>>
>>>page,
>>>
>>>Cheers, Allistair.
>>>
>>>
>>><FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE>
>>>-------------------------------------------------------
>>>QAS Ltd.
>>>Registered in England: No 2582055
>>>Registered in Australia: No 082 851 474
>>>-------------------------------------------------------
>>></FONT> <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLACK>
>>>Disclaimer:  The information contained within this e-mail 
>>>      
>>>
>>is confidential
>>    
>>
>>>and may be privileged. This email is intended solely for the named
>>>recipient only; if you are not authorised you must not 
>>>      
>>>
>>disclose, copy,
>>    
>>
>>>distribute, or retain this message or any part of it. If 
>>>      
>>>
>>you have received
>>    
>>
>>>this message in error please contact the sender at once so 
>>>      
>>>
>>that we may
>>    
>>
>>>take the appropriate action and avoid troubling you 
>>>      
>>>
>>further.  Any views
>>    
>>
>>>expressed in this message are those of the individual 
>>>      
>>>
>>sender.  QAS Limited
>>    
>>
>>>has the right lawfully to record, monitor and inspect 
>>>      
>>>
>>messages between its
>>    
>>
>>>employees and any third party.  Your messages shall be 
>>>      
>>>
>>subject to such
>>    
>>
>>>lawful supervision as QAS Limited deems to be necessary in order to
>>>protect its information, its interests and its reputation.
>>>
>>>Whilst all efforts are made to safeguard Inbound and 
>>>      
>>>
>>Outbound emails, QAS
>>    
>>
>>>Limited cannot guarantee that attachments are virus free or 
>>>      
>>>
>>compatible
>>    
>>
>>>with your systems and does not accept any liability in 
>>>      
>>>
>>respect of viruses
>>    
>>
>>>or computer problems experienced.
>>></FONT>
>>>      
>>>
>>
>>    
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
>For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message