50
|
1 |
Building
|
|
2 |
--------
|
|
3 |
|
|
4 |
Requirements:
|
|
5 |
* Apache Ant.
|
|
6 |
* Apache Tomcat. (Tested with 6.0.26)
|
|
7 |
|
|
8 |
Change "catalina.home" property in build.xml file to match your Tomcat
|
|
9 |
installation directory. Default is as follows:
|
|
10 |
|
|
11 |
<property name="catalina.home" value="C:/apps/apache-tomcat-6.0.26"/>
|
|
12 |
|
|
13 |
To compile the project and to create .war archive just use either of following
|
|
14 |
commands:
|
|
15 |
|
|
16 |
ant
|
|
17 |
ant dist
|
|
18 |
|
|
19 |
To compile only use:
|
|
20 |
|
|
21 |
ant compile
|
|
22 |
|
|
23 |
And to clean all build artifacts use:
|
|
24 |
|
|
25 |
ant clean
|
|
26 |
|
|
27 |
Deployment
|
|
28 |
----------
|
|
29 |
|
|
30 |
After build is complete, "installertest.war" file is created into the "build"
|
|
31 |
directory. Deploy it to Tomcat instance as any other .war file. For HTTP
|
|
32 |
authentication tests it is assumed that user named "guest" with password
|
|
33 |
"guest" and with role "guest" exits.
|
|
34 |
|
|
35 |
Running the tests
|
|
36 |
-----------------
|
|
37 |
|
|
38 |
Before running tests add option "-server=server_ip_address:port" to
|
|
39 |
NotificationPosterTest, DownloaderTest and InstallerEngineTest
|
|
40 |
test suites in jiut.bat (for S60) or in build.xml (for Linux)
|
|
41 |
in "javainstaller\installer\tsrc\build" directory.
|