Debian Codegraph @

README

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 Cave Converter
2 --------------
3 Copyright (C) 2009-2017 Paul Fretwell - aka 'Footleg' ([email protected])
4
5 Cave Converter is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 Cave Converter is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with Cave Converter. If not, see <http://www.gnu.org/licenses/>.
17
18 -------------------------------------------------------------------------------
19 Building from Source
20 --------------------
21 Cave Converter can be built from the Java source code using the provided ant
22 build script. But first you will need to download some dependencies required
23 to build the source, run the unit tests and generate code coverage reports for
24 the tests. These dependencies need to be placed in folders with the following
25 names two levels higher in your directory hierarchy than the folder containing
26 the build.xml ant script:
27
28 cobertura-2.1.1
29
30 Cobertura can be downloaded from http://cobertura.sourceforge.net/
31 JUnit 4.11 libraries are included in the Cobertura download so no
32 longer need to be downloaded separately to compile Cave Converter.
33
34 The cobertura zip file downloaded can be unzipped to create the directory
35 structure required.
36
37 The folder structure should look like this:
38
39 <java_dev>
40 cobertura-2.1.1
41 (unpack the contents of cobertura tar file in here)
42 dev
43 CaveConverter_src
44 (contents of CaveConverter_src.zip file)
45
46 (Note: The folders 'java_dev', 'dev' and 'CaveConverter_src' can have any names
47 you want.)
48
49 Once the dependencies are in place (and you have Java JDK 7 or later and Apache
50 Ant 1.8 or later configured in your environment), you can run the following ant
51 commands from a command prompt in the CaveConverter_src folder where you
52 unzipped the source.
53 NOTE: To enable the ant script to work on Linux (Debian) with Open-JDK it was
54 necessary to define the env.JAVA_HOME property in the build.properties file.
55 This was not necessary when building on a Windows machine where the system
56 environment variable JAVA_HOME was already pointing to a JDK.
57 To build on Debian I added this line to build.properties:
58 env.JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64/
59
60 To build and run all tests, just type:
61 ant
62
63 To just build the release distribution:
64 ant zip
65
66 This should generate the jar file in a build folder, and a complete
67 distributable zip file in a dist folder.
68
69 To run full unit and regression tests, and generate code coverage reports:
70 ant coverage.regressions
71
72 To generate the Javadoc:
73 ant javadoc
74
75 To do a full clean build and generate everything (this is the default target):
76 ant all
77
78 Other primary ant targets can be listed by running:
79 ant -p
80
81 Note that some internal targets will not work with the source distribution
82 as they are related to code in development which is not yet functional :-)
83
84 This source package has been put together with the full code needed to build
85 the command line cave converter tool using OpenJDK7