Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default sensible customRepositoryMap #97

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/main/java/com/lazerycode/selenium/SeleniumServerMojo.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public class SeleniumServerMojo extends AbstractMojo {
* <h3>Path to the XML RepositoryMap</h3>
* <p>&lt;xmlRepositoryMap&gt;${project.basedir}/src/test/resources/RepositoryMap.xml&lt;/xmlRepositoryMap&gt;</p>
*/
@Parameter
@Parameter(defaultValue = "${project.basedir}/src/test/resources/RepositoryMap.xml")
protected String customRepositoryMap;

/**
Expand Down Expand Up @@ -315,11 +315,12 @@ private void setRepositoryMapFile() throws MojoExecutionException {
throw new MojoExecutionException(ioe.getLocalizedMessage());
}
} else {
throw new MojoExecutionException("Repository map '" + repositoryMap.getAbsolutePath() + "' does not exist");
LOG.warn("Repository map '" + repositoryMap.getAbsolutePath() + "' does not exist!");
}
}

if (this.xmlRepositoryMap == null) {
LOG.info("Using internal RepositoryMap.xml.");
this.xmlRepositoryMap = this.getClass().getResourceAsStream("/RepositoryMap.xml");
}
}
Expand All @@ -345,4 +346,4 @@ protected void checkRepositoryMapIsValid(File repositoryMap) throws MojoExecutio
throw new MojoExecutionException(repositoryMap.getName() + " is not valid: " + ex.getLocalizedMessage());
}
}
}
}