@Test public void testParseGAPV() { final MvnPluginReport m = new MvnPluginReport(); assertEquals( new LibraryId("commons-fileupload", "commons-fileupload", "1.2.1"), m.parseGAPV("commons-fileupload:commons-fileupload:jar:1.2.1")); assertTrue(m.parseGAPV("commons-fileupload:commons-fileupload:1.2.1") == null); }
protected final LibraryId parseGAPV(@NotNull String _string) { final String[] gapv = _string.split(":"); if (gapv.length != 4) { getLog().warn("Could not identify GAPV in [" + _string + "]"); return null; } else { return new LibraryId(gapv[0], gapv[1], gapv[3]); } }
AbstractVulasMojo extends AbstractMojo { protected final LibraryId parseGAPV(@NotNull String _string) { final String[] gapv = _string.split(":"); if (gapv.length != 4) { getLog().warn("Could not identify GAPV in [" + _string + "]"); return null; } else { return new LibraryId(gapv[0], gapv[1], gapv[3]); } } }
AbstractVulasMojo extends AbstractMojo { protected final LibraryId parseGAPV(@NotNull String _string) { final String[] gapv = _string.split(":"); if (gapv.length != 4) { getLog().warn("Could not identify GAPV in [" + _string + "]"); return null; } else { return new LibraryId(gapv[0], gapv[1], gapv[3]); } }  }
AbstractVulasMojo extends AbstractMojo { protected final LibraryId parseGAPV(@NotNull String _string) { final String[] gapv = _string.split(":"); if (gapv.length != 4) { getLog().warn("Could not identify GAPV in [" + _string + "]"); return null; } else { return new LibraryId(gapv[0], gapv[1], gapv[3]); } }  final void prepareConfiguration(); void execute(); }
AbstractVulasMojo extends AbstractMojo { protected final LibraryId parseGAPV(@NotNull String _string) { final String[] gapv = _string.split(":"); if (gapv.length != 4) { getLog().warn("Could not identify GAPV in [" + _string + "]"); return null; } else { return new LibraryId(gapv[0], gapv[1], gapv[3]); } }  final void prepareConfiguration(); void execute();  }