I'm not an expert but I recently migrated to the 6.1.x build and here are a
few of the customizations I made:
First the "assembly" folder was renamed to "assemblies" and you can find the
resources and filtered-resources under the apache-servicemix directory. You
can copy any files that you want to filter, over to the
filtered-resources/etc folder.
You can also add a reference to your own filters file to provide further
customizations.
<build>
* <filters>
<filter>${project.basedir}/src/main/filters/${env}/filter.properties</filter>
</filters>
* <resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>${project.basedir}/../..</directory>
<filtering>false</filtering>
<includes>
<include>README</include>
<include>RELEASE*</include>
</includes>
</resource>
<resource>
<directory>${project.build.directory}/dependencies</directory>
<filtering>false</filtering>
<excludes>
<exclude>**/*.i??</exclude>
<exclude>**/.target</exclude>
<exclude>**/.classpath</exclude>
</excludes>
</resource>
</resources>
To filter contents of other folders like bin or deploy, you have to add
those filesets to the common-unix-bin.xml example to add bin directory:
<fileSet>
<directory>${project.build.outputDirectory}/bin</directory>
<outputDirectory>/bin/</outputDirectory>
<includes>
<include>*</include>
</includes>
<lineEnding>unix</lineEnding>
<fileMode>0755</fileMode>
<directoryMode>0775</directoryMode>
</fileSet>
--
View this message in context:
http://servicemix.396122.n5.nabble.com/6-1-x-custom-distribution-questions-tp5723682p5723684.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.