651 |
11 Apr 08 |
nicklas |
== Requirements == |
651 |
11 Apr 08 |
nicklas |
2 |
|
1459 |
11 Nov 11 |
nicklas |
1. Access to a BASE 3.1 server with web services |
651 |
11 Apr 08 |
nicklas |
2. Java 1.6 or later. |
1436 |
02 Nov 11 |
nicklas |
3. Ant 1.8 or later. |
651 |
11 Apr 08 |
nicklas |
6 |
|
651 |
11 Apr 08 |
nicklas |
== Introduction == |
651 |
11 Apr 08 |
nicklas |
8 |
|
651 |
11 Apr 08 |
nicklas |
This package contains some simple web services examples. |
651 |
11 Apr 08 |
nicklas |
10 |
|
651 |
11 Apr 08 |
nicklas |
== Installation and use == |
651 |
11 Apr 08 |
nicklas |
12 |
|
651 |
11 Apr 08 |
nicklas |
1. Unpack the tar.gz file to a directory of your choice. |
1407 |
18 Oct 11 |
nicklas |
2. Create a 'build.properties' file and enter connection options |
1407 |
18 Oct 11 |
nicklas |
as key=value pairs: |
651 |
11 Apr 08 |
nicklas |
* services.url |
651 |
11 Apr 08 |
nicklas |
The URL to the BASE web server. It should be the same URL as you use to login |
651 |
11 Apr 08 |
nicklas |
with the web interface with '/services' appended to it. For example: |
1407 |
18 Oct 11 |
nicklas |
services.url=http://localhost:8080/base2/services |
1407 |
18 Oct 11 |
nicklas |
20 |
|
651 |
11 Apr 08 |
nicklas |
* services.login |
651 |
11 Apr 08 |
nicklas |
The username for your account on the BASE web server. |
1407 |
18 Oct 11 |
nicklas |
23 |
|
651 |
11 Apr 08 |
nicklas |
* services.password |
651 |
11 Apr 08 |
nicklas |
Your password for the BASE web server. |
1407 |
18 Oct 11 |
nicklas |
26 |
|
651 |
11 Apr 08 |
nicklas |
* download.dir |
651 |
11 Apr 08 |
nicklas |
Set this option to a valid directory path to enable download of raw data from |
651 |
11 Apr 08 |
nicklas |
all raw bioassays. NOTE! Be careful with this option if you have a lot of data. |
1407 |
18 Oct 11 |
nicklas |
All files from all raw bioassays will be downloaded! |
1407 |
18 Oct 11 |
nicklas |
31 |
|
651 |
11 Apr 08 |
nicklas |
3. Run `ant test` to run the example code |
651 |
11 Apr 08 |
nicklas |
33 |
|
651 |
11 Apr 08 |
nicklas |
You may also override the connection options on the command line. Use one or |
651 |
11 Apr 08 |
nicklas |
several `-D` options when starting Ant (on one line): |
651 |
11 Apr 08 |
nicklas |
36 |
|
651 |
11 Apr 08 |
nicklas |
`ant -Dservices.url=http://localhost/base/services |
651 |
11 Apr 08 |
nicklas |
-Dservices.login=mylogin -Dservices.password=mypassword |
1407 |
18 Oct 11 |
nicklas |
-Ddownload.dir=./download test` |
651 |
11 Apr 08 |
nicklas |
40 |
|
651 |
11 Apr 08 |
nicklas |
== Compiling == |
651 |
11 Apr 08 |
nicklas |
42 |
|
651 |
11 Apr 08 |
nicklas |
Type `ant` to compile the code. |
651 |
11 Apr 08 |
nicklas |
44 |
|
651 |
11 Apr 08 |
nicklas |
Type `ant package` to create a download downloadable tar.gz package in the project |
651 |
11 Apr 08 |
nicklas |
directory. |
651 |
11 Apr 08 |
nicklas |
47 |
|
651 |
11 Apr 08 |
nicklas |
48 |
|