/
Contributing.txt
75 lines (54 loc) · 2.4 KB
/
Contributing.txt
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
Contributing to OMERO.insight
=============================
.. note:: See the :devs_doc:`Contributing Developer <>` documentation for more
information about contributing to OME projects in general.
Getting started with OMERO.insight
----------------------------------
Getting started with OMERO.insight entails that you have an
:doc:`OMERO.server </sysadmins/server-overview>` already deployed.
Installing from source
----------------------
Since January 2011, the OMERO.insight code base is part of the OMERO code
base. See :doc:`/developers/installation`, to check out code using
http://git.openmicroscopy.org.
Requirements
^^^^^^^^^^^^
- Install a Java 6 or Java 7 Development Kit (JDK), available from
`Java SE Downloads
<http://www.oracle.com/technetwork/java/javase/downloads/index.html>`_ and
required for both the OMERO server and client code. Set the ``JAVA_HOME``
environment variable to your JDK installation.
Running code
^^^^^^^^^^^^
It is helpful to set up the project in `Eclipse <http://www.eclipse.org>`_.
Because the OMERO Java and Python source files are encoded in UTF-8, ensure
that the encoding in Eclipse
(:menuselection:`Preferences --> General --> Workspace --> Text file encoding`)
is also set to UTF-8.
Build system
^^^^^^^^^^^^
Ant
"""
The compilation, testing, launch, and delivery of the application are
automated by means of an `Ant <http://ant.apache.org/>`_ build file,
located under the ``build`` directory (See :doc:`/developers/Insight/DirectoryContents`).
Move to the build directory and, from the command line, enter:
::
java build
This will display the available targets to compile, run, test, and
create a distribution bundle. Use the target you wish, for example:
::
java build all
Because all the tools needed to build the software are already included
in the build directory, you do not need to have Ant on your machine. If
you wish to use Ant instead, you can still do it by using the
``build.xml`` file under the ``build`` directory. However, there are
some dependencies to satisfy before; these are clearly documented in the
``build.xml`` file itself.
Jenkins
"""""""
The OME project currently uses Jenkins_ (formerly known as hudson) as a
continuous integration server available :jenkins:`here <>`. OMERO.insight is
built as part of the "OMERO" jobs. See the
:devs_doc:`contributing developer continuous integration </ci-omero.html>`
documentation for full details.