Work around for archetype:generate forcing OS line endings.
authorSvetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Thu, 9 Oct 2014 18:52:37 +0000 (21:52 +0300)
committerSvetoslav Neykov <svetoslav.neykov@cloudsoftcorp.com>
Thu, 9 Oct 2014 18:52:37 +0000 (21:52 +0300)
commit8bb021ef3b07c1f5cb56beb75c416d4e12b004e5
treecdf28212df438ba9431cb520c51439049fe8dffd
parent96b49582584d4fec42c3187438127b3912034ea9
Work around for archetype:generate forcing OS line endings.

When processing template resources (filtered="true") the archetype plugin forces all content to use the current OS specific line endings. Treat shell scripts as binary files in the archetype plugin and instead move the shell script variable replacement to the build phase of the resulting project.

Shell scripts don't work when they contain Windows style line breaks, so it is important to preserve the original line breaks even when building on Windows.
usage/archetypes/quickstart/pom.xml
usage/archetypes/quickstart/src/brooklyn-sample/pom.xml
usage/archetypes/quickstart/src/brooklyn-sample/src/main/assembly/assembly.xml
usage/archetypes/quickstart/src/brooklyn-sample/src/main/assembly/scripts/start.sh
usage/archetypes/quickstart/src/main/resources/META-INF/maven/archetype-metadata.xml