- if of13 is not involved, remove openflowplugin config
- if of13 is involved, create symbolic link to openflowplugin config
Change-Id: I8de221a428a66452aeedbae35352b41932b6ab74
Signed-off-by: Michal Rehak <mirehak@cisco.com>
</excludes>
</fileSet>
<fileSet>
- <directory>${project.build.directory}/provided-configs</directory>
- <outputDirectory>/opendaylight/configuration</outputDirectory>
+ <directory>${project.build.directory}/provided-configs/initial</directory>
+ <outputDirectory>/opendaylight/configuration/initial.available</outputDirectory>
<excludes>
<exclude>**/META-INF/**</exclude>
</excludes>
esac
done
+# clean available optional configurations (links)
+find configuration/initial -type l -exec rm {} \;
+
# OF Filter selection
OF_FILTER="org.opendaylight.(openflowplugin|openflowjava)"
-if [ $OF13 -ne 0 ]; then
+if (( $OF13 != 0 )); then
OF_FILTER="org.opendaylight.controller.(thirdparty.org.openflow|protocol_plugins.openflow)"
+ while read ofConfig; do
+ ln -s ../initial.available/$(basename ${ofConfig}) configuration/initial/
+ done < <(find configuration/initial.available -name '*openflowplugin.xml')
fi
# Make sure we suck out our additional args so as to not confuse