Description
If the revision is an empty string, the ModuleRevisionId encode/decode methods doesn't work:
for instance,
ModuleRevisionId revId = new ModuleRevisionId(new ModuleId("J2EE", "ejb"), "");
String encoded = revId.encodeToString();
ModuleRevisionId.decode(encoded);
this will throw the following exception:
java.lang.IllegalArgumentException: badly encoded module revision id: 'J2EE:#@#:
ejb:#@#:'
at fr.jayasoft.ivy.ModuleRevisionId.decode(ModuleRevisionId.java:105)