~ubuntu-branches/ubuntu/oneiric/ehcache/oneiric

« back to all changes in this revision

Viewing changes to core/src/site/apt/documentation/building.apt

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2010-06-23 10:35:31 UTC
  • mfrom: (1.1.5 upstream) (2.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100623103531-ra0qdpmotoz6ygct
Tags: 2.1.0-1
Merge changes from Thierry's PPA and upload to Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{Building from Source}
2
 
 
3
 
*   {Building an ehcache distribution from source}
4
 
 
5
 
    To build Ehcache from source:
6
 
 
7
 
    [[1]] Check the source out from the subversion repository.
8
 
 
9
 
    [[1]] Ensure you have a valid JAVA_HOME and ANT_HOME configured with binaries for both in your PATH
10
 
 
11
 
    [[1]] From within the ehcache/core directory, type <<<ant>>>
12
 
 
13
 
 
14
 
*   {Running Tests for Ehcache}
15
 
 
16
 
    To run the test suite for Ehcache:
17
 
 
18
 
    [[1]] Check the source out from the subversion repository.
19
 
 
20
 
    [[1]] Ensure you have a valid JAVA_HOME and ANT_HOME configured with binaries for both in your PATH
21
 
 
22
 
    [[1]] The integration tests rely on a standard Tomcat to be installed. Define TOMCAT_HOME to point to a Tomcat 5 or 6 installation.
23
 
 
24
 
    [[1]] From within the ehcache/core directory, type <<<mvn test>>>
25
 
 
26
 
    [[1]] If some {performance tests fail}, add a <<<-D net.sf.ehcache.speedAdjustmentFactor=x>>> System property to
27
 
            your command line, where x is how many times your machine is slower than the reference machine. Try setting
28
 
            it to 5 for a start.
29
 
 
30
 
*   Deploying Maven Artifacts
31
 
 
32
 
    Ehcache has a repository and snapshot repository at oss.sonatype.org.
33
 
 
34
 
    The repository is synced with the Maven Central Repository.
35
 
 
36
 
 
37
 
    To deploy:
38
 
 
39
 
---
40
 
   mvn deploy
41
 
---
42
 
 
43
 
    This will fail because SourceForge has disabled ssh exec. You need to create missing directories manually using
44
 
    sftp access <<<sftp gregluck,ehcache@web.sourceforge.net>>>
45
 
 
46
 
*   {Building the Site}
47
 
 
48
 
    (These instructions are for project maintainers)
49
 
 
50
 
    You need the following unix utilities installed:
51
 
 
52
 
    * {Maven} 2.0.7
53
 
 
54
 
    * latex or tetex
55
 
 
56
 
    * ghostscript
57
 
 
58
 
    * pdftk
59
 
 
60
 
    * aptconvert
61
 
 
62
 
    * netpbm
63
 
 
64
 
    You also need a yDoc license.
65
 
 
66
 
    With all that, build the site as below:
67
 
 
68
 
---
69
 
    mvn clean site
70
 
---
71
 
 
72
 
    Unfortunately, sourceforge scp is broken, since they removed the ability for ssh to execute shell commands.
73
 
 
74
 
    The site needs to be deployed from the target/site directory using:
75
 
 
76
 
    rsync -v -r * gregluck,ehcache@web.sourceforge.net:/home/groups/e/eh/ehcache/htdocs    
77
 
 
78
 
*   Deploying a release
79
 
 
80
 
**  {Maven Release}
81
 
 
82
 
---
83
 
    mvn deploy
84
 
---
85
 
 
86
 
**  {Sourceforge Release}
87
 
 
88
 
---
89
 
    mvn assembly:assembly
90
 
---
91
 
 
92
 
    then manually upload to SourceForge
93
 
 
94
 
    <<<sftp gregluck@frs.sourceforge.net>>>
95
 
 
96
 
    and complete the file release process
97
 
 
98