Build slices in Java and Eclipse

F

Fran Cottone

I've been away from Java for a few years and have lost track of some
of the more recent developments. Is there now an easy way to do the
following:

I'm experimenting with Eclipse - which I like, and have developed a
test project which contains "client specific", "server specific" and
"general code." How do I go about building different slices from this
one project i.e. producing a server jar, a client jar and a general
jar, each containing only the branches of the package hierarchy
relevant.

If Eclipse cannot do this, is there a plug-in that can - preferably
GUI driven, and, one that can deal with building RMI stubs etc.

Many thanks in advance.
 
R

Rhino

Fran Cottone said:
I've been away from Java for a few years and have lost track of some
of the more recent developments. Is there now an easy way to do the
following:

I'm experimenting with Eclipse - which I like, and have developed a
test project which contains "client specific", "server specific" and
"general code." How do I go about building different slices from this
one project i.e. producing a server jar, a client jar and a general
jar, each containing only the branches of the package hierarchy
relevant.

If Eclipse cannot do this, is there a plug-in that can - preferably
GUI driven, and, one that can deal with building RMI stubs etc.

Many thanks in advance.

Most of that sounds like a job for Ant; I've never used RMI so I'm not sure
if Ant can generate an RMI stub although there is an 'rmic' task listed
among the core tasks. An Ant plugin comes standard with Eclipse. You can see
the manual here: http://ant.apache.org/manual/index.html.

You will probably find the article on 'Class Fileset' under 'Concepts and
Types' especially useful for what you want to do.

Rhino
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top