I keep server and client code in the same project of Eclipse. Libraries for both of them are included. Images for the client are also added to the build path.
Now I want to generate jars for server and client, that they include only required libraries, and server jar does not have images included.
Is there a way to do this without maven, etc?
You can divide your sources into three source (and output) folders within the same project:
Then create a
build.xml(Ant buildfile) which creates a jar frombin-shared+bin-serverand a jar frombin-shared+bin-client.Note: One danger of keeping it in the same project is that you can accidentally use client classes from server classes, or vice versa, which will fail at runtime. To fix this, make three projects instead of three source folders.