Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use blueprint properties to configure gitfacade
  • Loading branch information
jstrachan committed Mar 28, 2013
1 parent dcbed3a commit 45b06cd
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions hawtio-git/src/main/resources/META-INF/blueprint.xml
Expand Up @@ -2,26 +2,21 @@
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.2.0">

<!--
<ext:property-placeholder>
<ext:default-properties>
<ext:property name="hawtio.config.dir" value="" />
<ext:property name="hawtio.config.repo" value="https://github.com/hawtio/hawtio-config.git" />
<ext:property name="hawtio.config.pollOnStartup" value="true" />
<ext:property name="hawtio.config.cloneOnStartup" value="true" />
</ext:default-properties>
</ext:property-placeholder>
-->
<ext:property-placeholder>
<ext:default-properties>
<ext:property name="hawtio.config.dir" value=""/>
<ext:property name="hawtio.config.repo" value="https://github.com/hawtio/hawtio-config.git"/>
<ext:property name="hawtio.config.pollOnStartup" value="true"/>
<ext:property name="hawtio.config.cloneOnStartup" value="true"/>
</ext:default-properties>
</ext:property-placeholder>

<bean id="gitFacade" class="io.hawt.git.GitFacade" init-method="init" destroy-method="destroy">
<!--
<bean id="gitFacade" class="io.hawt.git.GitFacade" init-method="init" destroy-method="destroy">
<property name="configDirectory" value="${hawtio.config.dir}"/>
<property name="remoteRepository" value="${hawtio.config.repo}"/>
<property name="pullOnStartup" value="${hawtio.config.pollOnStartup}"/>
<property name="cloneRemoteRepoOnStartup" value="${hawtio.config.cloneOnStartup}"/>
-->
</bean>

</bean>

</blueprint>

0 comments on commit 45b06cd

Please sign in to comment.