Siamak Haschemi>
> Hi Lindsay,
>
> see my comment below.
>
> Am 15.03.2011 um 01:40 schrieb Lindsay Smith:
>>
>> Is there a any way to work out imports of java source files?  Any other
>> comments about the system are very much appreciated.
>>
> Maybe I am stupid, but does each Java-file not contain package import
> statements?
>
> import foo.bar.*;
> import com.bar.myClass;
> ...

Unfortunately these do not cover everything; not only do the classes you
import (explicitly) import other classes, the members of a class you
import may implicitly refer to other classes as field, parameter, or
return types.  It's much easier to calculate these dependencies from
.class files than from .java files.  Conversely, if you reject the use of
.class files because they are bound to a particular build-time environment
then you shouldn't be surprised it becomes harder to get hold of that
information afterwards ...

Chris




_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to