Problems building the Photon client

2 messages Options
Embed this post
Permalink
Andrei Lissovski

Problems building the Photon client

Reply Threaded More More options
Print post
Permalink
Greetings,

I have run into a couple of snags while building the
Photon client, following the instructions published on
this page:
http://trac.marketcetera.org/trac.fcgi/wiki/Marketcetera/BuildingPhoton

1. The build instructions allow for manual setup of
the RCP target. This is how I initially chose to
proceed and used a directory with the extracted
contents of the standard RCP SDK distributable
(eclipse-RCP-SDK-3.2-win32.zip on Windows) as the
target directory. However, doing so results in some of
the dependencies not making it into the target
directory. In fact, nothing gets copied into the
target directory. Doing a little digging in the build
scripts revealed that things get copied _only_ if the
target directory doesn't exist. This is due to the
following code in the build-user.xml:
...
                <available file="${ECLIPSE_HOME}"
property="ECLIPSE_HOME.present"/>
...
        <target description="Internal task to copy rcp target
files" name="copy-rcp-target"
unless="ECLIPSE_HOME.present">
...
(note the unless attribute in the Ant target
definition)

On a related note, when things do get copied into the
target directory (i.e., when it does not initially
exist), the entire contents of the clean Eclipse
instance is copied. In the long term (and at the risk
of stating the obvious), it is a good idea to be
explicit and only copy the plugins that are actual
dependencies.

2. Once the project is imported into the Eclipse IDE,
it cannot be fully compiled by it due to a missing
JUnit dependency. JUnit is not a Plug-in Dependency
and as such has to be added directly to the project
Build Path. This can be done by going into Project ->
Properties -> Java Build Path -> Libraries -> Add
Library... -> JUnit. Once this is done, the client
builds fine in the IDE and can be successfully
launched from it.

Hope this is useful.

-Andrei
_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev
gm-mrktc

Re: Problems building the Photon client

Reply Threaded More More options
Print post
Permalink
On 8/15/06, Andrei Lissovski <[hidden email]> wrote:

1. ... it is a good idea to be
explicit and only copy the plugins that are actual
dependencies.

I agree, I have filed a bug to this effect:
http://trac.marketcetera.org/trac.fcgi/ticket/18

2. Once the project is imported into the Eclipse IDE,
it cannot be fully compiled by it due to a missing
JUnit dependency. JUnit is not a Plug-in Dependency
and as such has to be added directly to the project
Build Path. This can be done by going into Project ->
Properties -> Java Build Path -> Libraries -> Add
Library... -> JUnit. Once this is done, the client
builds fine in the IDE and can be successfully
launched from it.

Thanks for pointing that out.  I have updated the tutorial to include this step.

Hope this is useful.

It definitely is.  Thanks again.

graham

_______________________________________________
m-etc-dev mailing list
[hidden email]
http://lists.marketcetera.org/cgi-bin/mailman/listinfo/m-etc-dev