| 1 |
|
| 2 |
Project Maintenance Howto |
| 3 |
------------------------- |
| 4 |
|
| 5 |
This document introduces newcomers to the management and maintenance of |
| 6 |
the Batik project hosted under xmlgraphics.apache.org |
| 7 |
(http://xmlgraphics.apache.org/batik/). |
| 8 |
|
| 9 |
Each project is required to use Ant as build tool and to be coherent with the |
| 10 |
rest of the build systems of the other projects, so that nightly builds and |
| 11 |
distribution creation can be done automatically without per-project scripts. |
| 12 |
|
| 13 |
This implies it is *very* important that property names are not changed |
| 14 |
but kept consistent with the other projects. |
| 15 |
|
| 16 |
Distribution Creation |
| 17 |
--------------------- |
| 18 |
|
| 19 |
For creating a distribution the following steps must be done: |
| 20 |
|
| 21 |
1) Modify build.xml with the distribution version. Only modify the version |
| 22 |
for main releases (e.g. version value="1.1") but not for release |
| 23 |
candidates or beta versions where only the revision type and |
| 24 |
number should be updated (e.g. revisionType value="beta" and |
| 25 |
revisionNumber value="3") |
| 26 |
|
| 27 |
2) Add your public key to the KEYS file in the root directory of |
| 28 |
Batik if it isn't already there. The following link has the |
| 29 |
details on what this means and how to do it. |
| 30 |
|
| 31 |
http://wiki.apache.org/old/SigningReleases |
| 32 |
|
| 33 |
3) Commit these changes to SVN, in general only the following files |
| 34 |
should be modified: |
| 35 |
|
| 36 |
build.xml |
| 37 |
KEYS |
| 38 |
|
| 39 |
4) Tag the release on SVN: |
| 40 |
|
| 41 |
svn copy https://svn.apache.org/repos/asf/xmlgraphics/batik/trunk \ |
| 42 |
https://svn.apache.org/repos/asf/xmlgraphics/batik/tags/<tag> |
| 43 |
|
| 44 |
where <tag> is the version name, e.g. "batik-1_1rc3". |
| 45 |
|
| 46 |
Note: sometimes, it is necessary to remove a tag because the |
| 47 |
tests failed and a fix was required. To remove a tag, use |
| 48 |
the delete command: |
| 49 |
|
| 50 |
svn delete https://svn.apache.org/repos/asf/xmlgraphics/batik/tags/<tag> |
| 51 |
|
| 52 |
5) Check out the tagged release to a new directory: |
| 53 |
|
| 54 |
svn co https://svn.apache.org/repos/asf/xmlgraphics/batik/tags/<tag> |
| 55 |
|
| 56 |
6) Run the build script with target "dist-zip": |
| 57 |
|
| 58 |
build dist-zip |
| 59 |
|
| 60 |
This will create the binary release zip, the source release zip and the |
| 61 |
javadoc zip. |
| 62 |
|
| 63 |
7) Test the distributions |
| 64 |
|
| 65 |
build regard |
| 66 |
build regard.manual |
| 67 |
|
| 68 |
The build results are in the test-reports directory. Check that there |
| 69 |
are no show-stoppers for the release. If there are fixes required, |
| 70 |
you need to remove the tag (as explained in step 2) and then fix |
| 71 |
any problem that requires attention. Then, you need to start at |
| 72 |
step 1) again. |
| 73 |
|
| 74 |
Note that you will need to have a copy of the W3C SVG |
| 75 |
working group test suite in the 'beSuite' directory and |
| 76 |
have that directory under the same root as xml-batik. See |
| 77 |
http://www.w3.org/Graphics/SVG for instructions on how to get |
| 78 |
the SVG test suite. |
| 79 |
|
| 80 |
8) Update the README and CHANGES files describing the content of the |
| 81 |
release and the modifications which have taken place, |
| 82 |
http://www.apache.org/dist/xmlgraphics/batik/README. This file has a |
| 83 |
small header followed by the contents of the CHANGES file from the |
| 84 |
distribution. |
| 85 |
|
| 86 |
9) If you are creating a release candidate, rename the distribution files |
| 87 |
to an rc name. For example: |
| 88 |
|
| 89 |
mv batik-src-1.1.zip batik-src-1.1rc1.zip |
| 90 |
|
| 91 |
10) Sign and create md5 hashes for the releases. The following link |
| 92 |
has full details on how to sign things (if you don't want to know |
| 93 |
anything the last section 'Using GPG' tells you what commands work). |
| 94 |
|
| 95 |
http://wiki.apache.org/old/SigningReleases |
| 96 |
|
| 97 |
For example: |
| 98 |
|
| 99 |
gpg --detach-sig --armor --output batik-1.5.zip.asc batik-1.5.zip |
| 100 |
md5 batik-1.5.zip > batik-1.5.zip.md5 |
| 101 |
|
| 102 |
11) Use 'scp' to copy the distributions (with md5 hashes, and signature |
| 103 |
files), the README, and the KEYS file under |
| 104 |
|
| 105 |
/www/www.apache.org/dist/xmlgraphics/batik/ |
| 106 |
|
| 107 |
For example: |
| 108 |
|
| 109 |
scp batik-1.1rc1.zip* [email protected]:/www/www.apache.org/dist/xml/batik/ |
| 110 |
|
| 111 |
12) Finish setting up the distribution directory in accordance with: |
| 112 |
|
| 113 |
http://www.apache.org/dev/mirrors.html |
| 114 |
http://people.apache.org/~bodewig/mirror.html |
| 115 |
|
| 116 |
This makes sure that the distribution is mirrored nicely around |
| 117 |
the world. |
| 118 |
|
| 119 |
Start by logging into svn.apache.org (e.g. 'ssh [email protected]'). |
| 120 |
|
| 121 |
First make sure file permissions are correct. The |
| 122 |
new files should be owned by group 'xmlgraphics' and be group writable. |
| 123 |
The following commands can do this (don't worry about links): |
| 124 |
|
| 125 |
chgrp xmlgraphics batik-1.5.zip |
| 126 |
chmod 664 batik-1.5.zip |
| 127 |
|
| 128 |
If you are making a 'final' release you should delete the existing |
| 129 |
'current' links and re-point them at the new release (do this |
| 130 |
for every file with a version number in it - including md5, and |
| 131 |
asc files): |
| 132 |
|
| 133 |
cd /www/www.apache.org/dist/xmlgraphics/batik |
| 134 |
rm batik-current.zip |
| 135 |
ln -s batik-1.5.zip batik-current.zip |
| 136 |
rm batik-current.zip.md5 |
| 137 |
ln -s batik-1.5.zip.md5 batik-current.zip.md5 |
| 138 |
rm batik-current.zip.asc |
| 139 |
ln -s batik-1.5.zip.asc batik-current.zip.asc |
| 140 |
<- lots more files -> |
| 141 |
|
| 142 |
Finally remove the old releases (every release is automatically copied |
| 143 |
to 'archive.apache.org/dist/xmlgraphics/batik' from |
| 144 |
'www.apache.org/dist/xmlgraphics/batik' so you can just remove an old |
| 145 |
release from www.apache.org): |
| 146 |
|
| 147 |
rm batik-1.5b4.zip |
| 148 |
|
| 149 |
13) Wait approximately 24hrs for the files to get to all the mirrors, |
| 150 |
then send an email to the batik-dev and batik-users mailing lists |
| 151 |
announcing the release. |
| 152 |
|
| 153 |
Site Creation |
| 154 |
------------- |
| 155 |
|
| 156 |
For creating the web site, the following steps must be done: |
| 157 |
|
| 158 |
[Note: due to JVM font-rendering problems, this is best done on a |
| 159 |
Windows machine] |
| 160 |
|
| 161 |
1) run the build script with target "publish", which will generate the |
| 162 |
site and use ForrestBot to commit it to the repository |
| 163 |
2) connect to people.apache.org with your account |
| 164 |
3) execute "cd /www/xmlgraphics.apache.org/batik" |
| 165 |
4) execute "svn update" |
| 166 |
|
| 167 |
If the javadocs don't need to be regenerated, the "publishdoc" build |
| 168 |
target can be used instead of "publish". This will be much quicker. |
| 169 |
|
| 170 |
Note that because of the way ForrestBot works, any files that are no |
| 171 |
longer part of the site will still remain in Subversion, and thus will |
| 172 |
still be deployed. To delete files permanently, check out |
| 173 |
https://svn.apache.org/repos/asf/xmlgraphics/site/deploy/batik/ and make |
| 174 |
changes there directly. |
| 175 |
|
| 176 |
Nightly Builds |
| 177 |
-------------- |
| 178 |
|
| 179 |
The nightly builds are currently performed by a crontab entry in |
| 180 |
Thomas DeWeese's people.apache.org account: /home/deweese/bin/nightly.csh |