in src/main/java/org/apache/commons/release/plugin/mojos/CommonsDistributionStagingMojo.java [381:391]
private File copySignatureValidatorScriptToScmDirectory() throws MojoExecutionException {
final Path scmTargetPath = Paths.get(distRcVersionDirectory.toString(), SIGNATURE_VALIDATOR_NAME);
final String name = "/resources/" + SIGNATURE_VALIDATOR_NAME;
// The source can be in a local file or inside a jar file.
try {
PathUtils.copyFile(getClass().getResource(name), scmTargetPath);
} catch (final Exception e) {
throw new MojoExecutionException(String.format("Failed to copy '%s' to '%s'", name, scmTargetPath), e);
}
return scmTargetPath.toFile();
}