Summary: | adapt build/BUILDING.txt and build.xml for svn on windows | ||
---|---|---|---|
Product: | Tomcat 5 | Reporter: | Ralf Hauser <hauser> |
Component: | Unknown | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | chrisahn |
Priority: | P2 | ||
Version: | 5.5.9 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other | ||
URL: | http://tomcat.apache.org/tomcat-5.5-doc/build.xml | ||
Attachments: |
BUILDING.txt with new section on installing subversion
build.xml with improved exec svn task build.xml with improved exec svn task |
Description
Ralf Hauser
2005-12-20 14:56:15 UTC
If anything - I need to post this script on the site: (providing it still works) http://marc.theaimsgroup.com/?l=tomcat-dev&m=112868500005136&w=2 Updated BUILDING.txt as suggested in (1) above. Waiting for Tim or Ralf (who's now a committer) to take further action, if any. I ran into similar problems... -> BUILDING.txt should contain a section on installing subversion -> in the initial build.xml, I changed <exec dir="${basedir}" executable="svn"> <arg line="checkout ${svnroot}/${current.loc} ${basedir}" /> </exec> to <exec dir="${basedir}" executable="svn" inputstring="t${line.separator}" failonerror="true"> <arg value="checkout" /> <arg value="${svnroot}/${current.loc}" /> <arg value="${basedir}" /> </exec> This fixes two problems: (1) whitespace in the filenames is handled correctly (2) svn temporarily accepts the self-signed certificate of svn.apache.org With these changes, the build went just smoothly for me! Created attachment 18381 [details]
BUILDING.txt with new section on installing subversion
based on yoavs version from 2006-04-13, added section on subversion (basically
a copy of the section on Ant)
Created attachment 18382 [details]
build.xml with improved exec svn task
split arg line to let ant handle whitespace in file names & use a little hack
to let svn temporarily accept the certificate of svn.apache.org.
Created attachment 18383 [details]
build.xml with improved exec svn task
dammit... picked the wrong file...
two more things come to mind... - BUILDING.txt still needs info about svn and proxies... haven't tried it, but http://subversion.tigris.org/faq.html#proxy should work. - The 'Building with Eclipse' section on http://tomcat.apache.org/tomcat-5.5- doc/building.html is very helpful. It should be clarified though that one *should* use the elipse workspace as ${tomcat.source}. I found the sentence 'Unless you thought ahead to make the ${tomcat.source} directory be under your Workspace folder...' rather confusing. -> Move that sentence to the top of the section, and make clear that ${tomcat.source} should be == Workspace folder. Christian, these are great suggestions. I've applied them all more or less. They're in SVN and will be included in the next Tomcat 5.5 release. Thanks! |