forked from hamcrest/JavaHamcrest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILDING.txt
64 lines (50 loc) · 2.12 KB
/
BUILDING.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
**********************
********************* Building Hamcrest *********************
**********************
--[ Build requirements ]-------------------------------------
* JDK 1.5
Note: that this is a buildtime dependency for 1.5 specific
features. However the final built jars should run on 1.4
and 1.3 JVMs with some features unavailable.
* Ant 1.6 or greater
To enable testing support, ensure junit.jar exists in
ANT_HOME/lib.
--[ Building from the command line ]-------------------------
Execute the default ant target:
ant
This will do a full clean build, run all tests and (if
successful) package up a distribution. The resulting builds
reside in the 'build' directory.
For a list of finer grained build operations:
ant -projecthelp
The default version number used in the build is 'SNAPSHOT'.
To override this, you can pass a property to ant:
ant -Dversion=MY.OTHER.VERSION
--[ Building from the IDE ]----------------------------------
It is possible to compile and test the source directly from
popular IDEs, without resorting to the command line.
Steps:
- Run 'ant library'. This generates additional Java coded
necessary to compile.
- Create a new project.
- Add the following directories as source directories:
hamcrest-api/src/main/java
hamcrest-generator/src/main/java
hamcrest-core/src/main/java
hamcrest-library/src/main/java
hamcrest-integration/src/main/java
build/temp/hamcrest-core/generated-code
build/temp/hamcrest-library/generated-code
hamcrest-examples/src/main/java
- Add the following directories as test directories:
hamcrest-api/src/test/java
hamcrest-generator/src/test/java
hamcrest-core/src/test/java
hamcrest-library/src/test/java
hamcrest-integration/src/test/java
If this is unsupported by the IDE, add them as source
directories.
- Include all jars in the lib directory in the classpath.
- Compile as usual in the IDE.
- If supported, run all tests under org.hamcrest from the
IDEs JUnit runner.