-
Notifications
You must be signed in to change notification settings - Fork 26
/
README.txt
127 lines (83 loc) · 4.48 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
Note:
a) always do step (1) at least once after a check out to get all the needed
artifacts from Maven repos.
b) Terracotta maven artifacts are created as part of "mvn install"
There is no separate step like "tcbuild dist_maven"
******************************************************************************
1. To compile the project
******************************************************************************
Under root or "community" folder (if it's EE checkout), run
%> mvn install (tests are skipped by default)
******************************************************************************
2. To run tests:
******************************************************************************
You need to 'cd' into the sub module where the test resides:
%> cd dso-system-tests
%> mvn verify -Dtest=SomeTest -P system-tests
You can skip the 'cd' step if you specify the pom of the sub module via '-f'
%> mvn verify -Dtest=SomeTest -P system-tests -f dso-system-tests/pom.xml
TO DEBUG A TEST:
%> mvn verify -Dtest=SomeTest -P system-tests -Dmaven.surefire.debug
The option -Dmaven.surefire.debug will run the test in debug mode where you
connect Eclipse or other IDE to the test JVM via remote debug option.
******************************************************************************
3. To pound a test:
******************************************************************************
%> cd dso-system-tests
%> mvn verify -Dtest=SomeTest -P system-tests -DpoundTimes=5
Pound that test 5 times.
******************************************************************************
4. To run check-short:
******************************************************************************
Under root or 'community' folder:
%> mvn verify -P check-short
******************************************************************************
5. To build kits:
******************************************************************************
Under "terracotta-kit" there's a README showing you
how to build different types of Terracotta kits
You can also just initiate a kit build from the community folder. This will
also take the projects in the devwork folder into account. Simply run this
from the community folder:
%> mvn install -DskipTests -Pkit,enterprise,os,dist -am -pl terracotta-kit
******************************************************************************
6. To start/stop TC server and Dev Console from the build (not using kit)
******************************************************************************
IMPORTANT:
- For Opensource TC server and Dev Console, go into "deploy" module
- For Enterprise TC server and Dev Console, go into "ent-deploy" module
to start:
%> mvn exec:exec -P start-server &
to stop:
%> mvn exec:exec -P stop-server
run dev-console:
%> mvn exec:exec -P dev-console
******************************************************************************
7. To include other Forge projects in the build
******************************************************************************
For convenience, you can include other Forge projects into the main build to
have them all compile in one go. To be able to do that, svn checkout those
projects under "community/devwork". List of projects currently recognize are:
- terracotta-toolkit-api
- ehcache(-ee)
- quartz(-ee)
Let say you have ehcache-ee under devwork. This step will compile
core, ehcache and ehcache-ee all in one command:
%> mvn clean install -P os -DskipTests
The profile 'os' is recognized by ehcache-ee to include ehcache
******************************************************************************
8. Smart build: making the build a bit faster by specify what module was changed.
******************************************************************************
If you only change dso-l1, this is how you would make Maven only compile that module
and its dependents:
%> mvn install -amd -pl dso-l1
Notice the absence of "clean" step. Usually, you don't need to clean every time.
You can also build projects along with it's dependencies (reverse of the above):
%> mvn install -am -pl toolkit-runtime
This will build toolkit-runtime and all it's direct and indirect dependencies.
Note that you need to specify the actual file path to toolkit-runtime in order
for maven to find it.
******************************************************************************
9. To add test to check-short profile:
******************************************************************************
Annotate @Category(CheckShorts.class) to class level of the test or the test method