Isvoran Andrei
Isvoran Andrei

Reputation: 478

How to get all classes from a package in a different project without dependency?

I have 2 projects:

ProjectA, ProjectB

From ProjectA I want to write a code to get all the classes inside ProjectB's package mypackage

Without adding ProjectB to ProjectA's classpath is it possible?

ProjectA is already in ProjectB classpath so I don't want to create circular dependency.

Upvotes: 0

Views: 82

Answers (1)

S. Catalin
S. Catalin

Reputation: 31

You can create a web service that implements your methods and classes etc.. (project A). Then import it in your project B , this will let you use methods from from project A without cross path those projects , just by link to web service application . Hope helps !

Upvotes: 2

Related Questions