in src/main/java/org/apache/sling/maven/projectsupport/PreparePackageMojo.java [186:204]
private void patchSlingBootstrap(final File dest, final String additionalCmd)
throws MojoExecutionException {
getLog().info("Patching sling_bootstrap.txt");
final File origSlingCmd = new File(dest, "sling_bootstrap.txt");
FileWriter writer = null;
/// and write
try {
writer = new FileWriter(origSlingCmd);
writer.write(additionalCmd);
} catch (final IOException ioe) {
throw new MojoExecutionException("Unable to save " + origSlingCmd, ioe);
} finally {
if ( writer != null ) {
try { writer.close(); } catch (final IOException ignore) {}
}
}
}