M
Miguel Farah
I'm writing a utility to detect conflicts between jars in the classpath,
and I'm a bit confused with respect to empty directories - it is a bit
of a dumb question, but I want to make sure I'm getting this right.
Let's say I have two JARs in the classpath:
jarone.jar: contains
com/
com/example/
com/example/onehand/
com/example/otherhand/
com/example/onehand/hello.class
com/example/onehand/world.class
com/example/otherhand/bye.class
jartwo.jar: contains
com/
com/example/
com/example/otherhand/
com/example/grippinghand/
com/example/otherhand/coffee.class
com/example/grippinghand/percolator.class
As we all know, the presence of com/example/otherhand.class and
com/example/otherhand/coffee.class provokes a conflict. Let's say I
manipulate the .jar file using zip/unzip, to get rid of the
coffee.class, so it now is:
jartwo.jar:
com/
com/example/
com/example/otherhand/
com/example/grippinghand/
com/example/grippinghand/percolator.class
I removed the class file but forgot to erase the directory. Is there now
a conflict? I say no, an empty directory does not create a conflict, but
I'm not certain. Does it?
Thanks.
and I'm a bit confused with respect to empty directories - it is a bit
of a dumb question, but I want to make sure I'm getting this right.
Let's say I have two JARs in the classpath:
jarone.jar: contains
com/
com/example/
com/example/onehand/
com/example/otherhand/
com/example/onehand/hello.class
com/example/onehand/world.class
com/example/otherhand/bye.class
jartwo.jar: contains
com/
com/example/
com/example/otherhand/
com/example/grippinghand/
com/example/otherhand/coffee.class
com/example/grippinghand/percolator.class
As we all know, the presence of com/example/otherhand.class and
com/example/otherhand/coffee.class provokes a conflict. Let's say I
manipulate the .jar file using zip/unzip, to get rid of the
coffee.class, so it now is:
jartwo.jar:
com/
com/example/
com/example/otherhand/
com/example/grippinghand/
com/example/grippinghand/percolator.class
I removed the class file but forgot to erase the directory. Is there now
a conflict? I say no, an empty directory does not create a conflict, but
I'm not certain. Does it?
Thanks.