@Test public void calculateHelpPrefixRootWithHelpPrefix() { markupToEclipseHelp.helpPrefix = "help"; assertEquals("help", markupToEclipseHelp.calculateHelpPrefix("")); }
protected String calculateHelpPrefix(String relativePath) { String prefix = helpPrefix == null ? "" : helpPrefix; if (relativePath.length() > 0) { if (prefix.length() > 0) { prefix += "/"; } prefix += relativePath; } return prefix.length() == 0 ? null : prefix.replaceAll("\\\\", "/"); }
MarkupToEclipseHelpMojo extends AbstractMojo { protected String calculateHelpPrefix(String relativePath) { String prefix = helpPrefix == null ? "" : helpPrefix; if (relativePath.length() > 0) { if (prefix.length() > 0) { prefix += "/"; } prefix += relativePath; } return prefix.length() == 0 ? null : prefix.replaceAll("\\\\", "/"); } }
MarkupToEclipseHelpMojo extends AbstractMojo { protected String calculateHelpPrefix(String relativePath) { String prefix = helpPrefix == null ? "" : helpPrefix; if (relativePath.length() > 0) { if (prefix.length() > 0) { prefix += "/"; } prefix += relativePath; } return prefix.length() == 0 ? null : prefix.replaceAll("\\\\", "/"); }  }
MarkupToEclipseHelpMojo extends AbstractMojo { protected String calculateHelpPrefix(String relativePath) { String prefix = helpPrefix == null ? "" : helpPrefix; if (relativePath.length() > 0) { if (prefix.length() > 0) { prefix += "/"; } prefix += relativePath; } return prefix.length() == 0 ? null : prefix.replaceAll("\\\\", "/"); }  void execute(); }
MarkupToEclipseHelpMojo extends AbstractMojo { protected String calculateHelpPrefix(String relativePath) { String prefix = helpPrefix == null ? "" : helpPrefix; if (relativePath.length() > 0) { if (prefix.length() > 0) { prefix += "/"; } prefix += relativePath; } return prefix.length() == 0 ? null : prefix.replaceAll("\\\\", "/"); }  void execute();  }