| 1 | ajm | 1.1 | i-scream Conient Client README | 
 
 
 
 
 | 2 |  |  | ============================== | 
 
 
 
 
 | 3 |  |  |  | 
 
 
 
 
 
 
 
 | 4 | ajm | 1.2 | ANT build vs Make build | 
 
 
 
 
 | 5 |  |  | ----------------------- | 
 
 
 
 
 | 6 |  |  |  | 
 
 
 
 
 | 7 |  |  | There are now two methods of compiling the Conient distribution. The existing | 
 
 
 
 
 | 8 |  |  | Makefile method is still supported, but is of course limited in the OS's on | 
 
 
 
 
 | 9 |  |  | which it can be run. The preffered method will be an XML based build script | 
 
 
 
 
 | 10 |  |  | using ANT (http://jakarta.apache.org/ant) which will run on any platform. | 
 
 
 
 
 | 11 |  |  | However, at this stage the ANT scripts are not completely finished and may | 
 
 
 
 
 | 12 |  |  | have some odd behaviour. | 
 
 
 
 
 | 13 |  |  |  | 
 
 
 
 
 | 14 |  |  | We envisage both the Makefile and ANT setups being maintained for some time, | 
 
 
 
 
 | 15 |  |  | giving the developer a choice. This document still outlines the Makefile | 
 
 
 
 
 | 16 |  |  | method of compiling, and will do so until such a point as the ANT scripts | 
 
 
 
 
 | 17 |  |  | are deemed reliable. If, however, you wish to give the ant script a whirl, | 
 
 
 
 
 | 18 |  |  | try the following after setting up ANT (see the ANT website for details); | 
 
 
 
 
 | 19 |  |  |  | 
 
 
 
 
 | 20 |  |  | ant help | 
 
 
 
 
 | 21 |  |  |  | 
 
 
 
 
 
 
 
 | 22 | ajm | 1.1 | Compiling | 
 
 
 
 
 | 23 |  |  | --------- | 
 
 
 
 
 | 24 |  |  |  | 
 
 
 
 
 | 25 |  |  | Conient can now easily be compiled without worrying about setting up any | 
 
 
 
 
 | 26 |  |  | of the CLASSPATH's. It's all self contained. | 
 
 
 
 
 | 27 |  |  |  | 
 
 
 
 
 | 28 |  |  | Typical sequence to compile; | 
 
 
 
 
 | 29 |  |  |  | 
 
 
 
 
 | 30 |  |  | ./configure | 
 
 
 
 
 | 31 |  |  | make build | 
 
 
 
 
 | 32 |  |  | make install prefix=/some/path | 
 
 
 
 
 | 33 |  |  | make clean | 
 
 
 
 
 | 34 |  |  |  | 
 
 
 
 
 | 35 |  |  | In more detail, the first line ensures that the required libraries are | 
 
 
 
 
 | 36 |  |  | available, and sets the Makefiles up so they know where everything is. | 
 
 
 
 
 | 37 |  |  | The second line compiles all of the code and creates a JAR file in the | 
 
 
 
 
 | 38 |  |  | build directory. | 
 
 
 
 
 | 39 |  |  | The install line installs the server and libraries to a given location, | 
 
 
 
 
 | 40 |  |  | along with the configuration files. | 
 
 
 
 
 | 41 |  |  | Finally, the last line cleans up. | 
 
 
 
 
 | 42 |  |  |  | 
 
 
 
 
 | 43 |  |  | Running | 
 
 
 
 
 | 44 |  |  | ------- | 
 
 
 
 
 | 45 |  |  |  | 
 
 
 
 
 | 46 |  |  | Simply typing "make run" will start Conient. | 
 
 
 
 
 | 47 |  |  |  | 
 
 
 
 
 | 48 |  |  | Once configuration issues have been solved, you will be able to specify | 
 
 
 
 
 | 49 |  |  | a configuration file on startup. | 
 
 
 
 
 | 50 |  |  |  | 
 
 
 
 
 | 51 |  |  | Makefile | 
 
 
 
 
 | 52 |  |  | ======== | 
 
 
 
 
 | 53 |  |  | The following targets are available; | 
 
 
 
 
 | 54 |  |  |  | 
 
 
 
 
 | 55 |  |  | build | 
 
 
 
 
 | 56 |  |  |  | 
 
 
 
 
 | 57 |  |  | Compile the entire Conient package. Generates the | 
 
 
 
 
 | 58 |  |  | JAR file for the final package. | 
 
 
 
 
 | 59 |  |  |  | 
 
 
 
 
 | 60 |  |  | run | 
 
 
 
 
 | 61 |  |  |  | 
 
 
 
 
 | 62 |  |  | Run's Conient from the JAR file in /build. | 
 
 
 
 
 | 63 |  |  |  | 
 
 
 
 
 | 64 |  |  | clean | 
 
 
 
 
 | 65 |  |  |  | 
 
 
 
 
 | 66 |  |  | Cleans all compiled code, and javadoc pages. | 
 
 
 
 
 | 67 |  |  |  | 
 
 
 
 
 | 68 |  |  | distclean | 
 
 
 
 
 | 69 |  |  |  | 
 
 
 
 
 | 70 |  |  | Also cleans files left by configure, including the libraries. | 
 
 
 
 
 | 71 |  |  |  | 
 
 
 
 
 | 72 |  |  | install | 
 
 
 
 
 | 73 |  |  |  | 
 
 
 
 
 | 74 |  |  | Installs Conient to a given directory. Also takes a prefix; | 
 
 
 
 
 | 75 |  |  | make install prefix = /usr/i-scream | 
 
 
 
 
 | 76 |  |  |  | 
 
 
 
 
 | 77 |  |  | cvsbuild | 
 
 
 
 
 | 78 |  |  |  | 
 
 
 
 
 | 79 |  |  | Builds any tagged version of Conient from CVS. This saves the need to | 
 
 
 
 
 | 80 |  |  | checkout a version to build it, as it's all done automatically; | 
 
 
 
 
 | 81 |  |  | make install rev = RELEASE_1 | 
 
 
 
 
 | 82 |  |  | Default tag is HEAD. | 
 
 
 
 
 | 83 |  |  |  | 
 
 
 
 
 | 84 |  |  | javadoc | 
 
 
 
 
 | 85 |  |  |  | 
 
 
 
 
 | 86 |  |  | Builds all the javadoc pages in the `doc' directory. |