~ubuntu-branches/ubuntu/raring/libhamcrest1.2-java/raring

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
                    **********************
********************* 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-core/src/main/java
      hamcrest-library/src/main/java
      hamcrest-generator/src/main/java
      hamcrest-integration/src/main/java
      build/temp/hamcrest-core/generated-code
      build/temp/hamcrest-library/generated-code
  - Add hamcrest-unit-test/src/main/java as a test directory.
    If this is unsupported by the IDE, add it as another source
    directory.
  - 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.