mirror of
https://repository.entgra.net/community/product-iots.git
synced 2025-09-16 23:32:19 +00:00
Update sample distributions to add datasource definitions directly to master-datasources.xml
This commit is contained in:
parent
6893ea0d0d
commit
888bdb8873
@ -28,6 +28,32 @@
|
|||||||
]]>
|
]]>
|
||||||
</insert>
|
</insert>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<insert path="/datasources-configuration/datasources[1]">
|
||||||
|
<![CDATA[
|
||||||
|
<datasource>
|
||||||
|
<name>${data_source}</name>
|
||||||
|
<description>The datasource used for Arduino database</description>
|
||||||
|
<jndiConfig>
|
||||||
|
<name>jdbc/${data_source}</name>
|
||||||
|
</jndiConfig>
|
||||||
|
<definition type="RDBMS">
|
||||||
|
<configuration>
|
||||||
|
<url>jdbc:h2:repository/database/${data_source};DB_CLOSE_ON_EXIT=FALSE</url>
|
||||||
|
<username>wso2carbon</username>
|
||||||
|
<password>wso2carbon</password>
|
||||||
|
<driverClassName>org.h2.Driver</driverClassName>
|
||||||
|
<maxActive>50</maxActive>
|
||||||
|
<maxWait>60000</maxWait>
|
||||||
|
<testOnBorrow>true</testOnBorrow>
|
||||||
|
<validationQuery>SELECT 1</validationQuery>
|
||||||
|
<validationInterval>30000</validationInterval>
|
||||||
|
</configuration>
|
||||||
|
</definition>
|
||||||
|
</datasource>
|
||||||
|
]]>
|
||||||
|
</insert>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build">
|
<target name="build">
|
||||||
@ -56,6 +82,9 @@
|
|||||||
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
||||||
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<remove path="/datasources-configuration/datasources/datasource[name='${data_source}']"/>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@ -27,6 +27,32 @@
|
|||||||
]]>
|
]]>
|
||||||
</insert>
|
</insert>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<insert path="/datasources-configuration/datasources[1]">
|
||||||
|
<![CDATA[
|
||||||
|
<datasource>
|
||||||
|
<name>${data_source}</name>
|
||||||
|
<description>The datasource used for Arduino database</description>
|
||||||
|
<jndiConfig>
|
||||||
|
<name>jdbc/${data_source}</name>
|
||||||
|
</jndiConfig>
|
||||||
|
<definition type="RDBMS">
|
||||||
|
<configuration>
|
||||||
|
<url>jdbc:h2:repository/database/${data_source};DB_CLOSE_ON_EXIT=FALSE</url>
|
||||||
|
<username>wso2carbon</username>
|
||||||
|
<password>wso2carbon</password>
|
||||||
|
<driverClassName>org.h2.Driver</driverClassName>
|
||||||
|
<maxActive>50</maxActive>
|
||||||
|
<maxWait>60000</maxWait>
|
||||||
|
<testOnBorrow>true</testOnBorrow>
|
||||||
|
<validationQuery>SELECT 1</validationQuery>
|
||||||
|
<validationInterval>30000</validationInterval>
|
||||||
|
</configuration>
|
||||||
|
</definition>
|
||||||
|
</datasource>
|
||||||
|
]]>
|
||||||
|
</insert>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build">
|
<target name="build">
|
||||||
@ -55,6 +81,9 @@
|
|||||||
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
||||||
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<remove path="/datasources-configuration/datasources/datasource[name='${data_source}']"/>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@ -1,6 +1,7 @@
|
|||||||
<project>
|
<project>
|
||||||
<property name="lib.dir" value="../../repository/components/plugins"/>
|
<property name="lib.dir" value="../../repository/components/plugins"/>
|
||||||
<property name="iot.conf" value="../../repository/conf/iot/iot-config.xml"/>
|
<property name="iot.conf" value="../../repository/conf/iot/iot-config.xml"/>
|
||||||
|
<property name="datasources.conf" value="../../repository/conf/datasources/master-datasources.xml"/>
|
||||||
<property name="target.db.dir" value="../../repository/database"/>
|
<property name="target.db.dir" value="../../repository/database"/>
|
||||||
<property name="target.dropins.dir" value="../../repository/components/dropins"/>
|
<property name="target.dropins.dir" value="../../repository/components/dropins"/>
|
||||||
<property name="target.webapp.dir" value="../../repository/deployment/server/webapps"/>
|
<property name="target.webapp.dir" value="../../repository/deployment/server/webapps"/>
|
||||||
|
|||||||
@ -27,6 +27,32 @@
|
|||||||
]]>
|
]]>
|
||||||
</insert>
|
</insert>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<insert path="/datasources-configuration/datasources[1]">
|
||||||
|
<![CDATA[
|
||||||
|
<datasource>
|
||||||
|
<name>${data_source}</name>
|
||||||
|
<description>The datasource used for Arduino database</description>
|
||||||
|
<jndiConfig>
|
||||||
|
<name>jdbc/${data_source}</name>
|
||||||
|
</jndiConfig>
|
||||||
|
<definition type="RDBMS">
|
||||||
|
<configuration>
|
||||||
|
<url>jdbc:h2:repository/database/${data_source};DB_CLOSE_ON_EXIT=FALSE</url>
|
||||||
|
<username>wso2carbon</username>
|
||||||
|
<password>wso2carbon</password>
|
||||||
|
<driverClassName>org.h2.Driver</driverClassName>
|
||||||
|
<maxActive>50</maxActive>
|
||||||
|
<maxWait>60000</maxWait>
|
||||||
|
<testOnBorrow>true</testOnBorrow>
|
||||||
|
<validationQuery>SELECT 1</validationQuery>
|
||||||
|
<validationInterval>30000</validationInterval>
|
||||||
|
</configuration>
|
||||||
|
</definition>
|
||||||
|
</datasource>
|
||||||
|
]]>
|
||||||
|
</insert>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build">
|
<target name="build">
|
||||||
@ -55,6 +81,9 @@
|
|||||||
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
||||||
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<remove path="/datasources-configuration/datasources/datasource[name='${data_source}']"/>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@ -28,6 +28,32 @@
|
|||||||
]]>
|
]]>
|
||||||
</insert>
|
</insert>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<insert path="/datasources-configuration/datasources[1]">
|
||||||
|
<![CDATA[
|
||||||
|
<datasource>
|
||||||
|
<name>${data_source}</name>
|
||||||
|
<description>The datasource used for Arduino database</description>
|
||||||
|
<jndiConfig>
|
||||||
|
<name>jdbc/${data_source}</name>
|
||||||
|
</jndiConfig>
|
||||||
|
<definition type="RDBMS">
|
||||||
|
<configuration>
|
||||||
|
<url>jdbc:h2:repository/database/${data_source};DB_CLOSE_ON_EXIT=FALSE</url>
|
||||||
|
<username>wso2carbon</username>
|
||||||
|
<password>wso2carbon</password>
|
||||||
|
<driverClassName>org.h2.Driver</driverClassName>
|
||||||
|
<maxActive>50</maxActive>
|
||||||
|
<maxWait>60000</maxWait>
|
||||||
|
<testOnBorrow>true</testOnBorrow>
|
||||||
|
<validationQuery>SELECT 1</validationQuery>
|
||||||
|
<validationInterval>30000</validationInterval>
|
||||||
|
</configuration>
|
||||||
|
</definition>
|
||||||
|
</datasource>
|
||||||
|
]]>
|
||||||
|
</insert>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build">
|
<target name="build">
|
||||||
@ -56,6 +82,9 @@
|
|||||||
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
||||||
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<remove path="/datasources-configuration/datasources/datasource[name='${data_source}']"/>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@ -27,6 +27,32 @@
|
|||||||
]]>
|
]]>
|
||||||
</insert>
|
</insert>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<insert path="/datasources-configuration/datasources[1]">
|
||||||
|
<![CDATA[
|
||||||
|
<datasource>
|
||||||
|
<name>${data_source}</name>
|
||||||
|
<description>The datasource used for Arduino database</description>
|
||||||
|
<jndiConfig>
|
||||||
|
<name>jdbc/${data_source}</name>
|
||||||
|
</jndiConfig>
|
||||||
|
<definition type="RDBMS">
|
||||||
|
<configuration>
|
||||||
|
<url>jdbc:h2:repository/database/${data_source};DB_CLOSE_ON_EXIT=FALSE</url>
|
||||||
|
<username>wso2carbon</username>
|
||||||
|
<password>wso2carbon</password>
|
||||||
|
<driverClassName>org.h2.Driver</driverClassName>
|
||||||
|
<maxActive>50</maxActive>
|
||||||
|
<maxWait>60000</maxWait>
|
||||||
|
<testOnBorrow>true</testOnBorrow>
|
||||||
|
<validationQuery>SELECT 1</validationQuery>
|
||||||
|
<validationInterval>30000</validationInterval>
|
||||||
|
</configuration>
|
||||||
|
</definition>
|
||||||
|
</datasource>
|
||||||
|
]]>
|
||||||
|
</insert>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build">
|
<target name="build">
|
||||||
@ -55,6 +81,9 @@
|
|||||||
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
||||||
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<remove path="/datasources-configuration/datasources/datasource[name='${data_source}']"/>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
@ -26,6 +26,32 @@
|
|||||||
]]>
|
]]>
|
||||||
</insert>
|
</insert>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<insert path="/datasources-configuration/datasources[1]">
|
||||||
|
<![CDATA[
|
||||||
|
<datasource>
|
||||||
|
<name>${data_source}</name>
|
||||||
|
<description>The datasource used for Arduino database</description>
|
||||||
|
<jndiConfig>
|
||||||
|
<name>jdbc/${data_source}</name>
|
||||||
|
</jndiConfig>
|
||||||
|
<definition type="RDBMS">
|
||||||
|
<configuration>
|
||||||
|
<url>jdbc:h2:repository/database/${data_source};DB_CLOSE_ON_EXIT=FALSE</url>
|
||||||
|
<username>wso2carbon</username>
|
||||||
|
<password>wso2carbon</password>
|
||||||
|
<driverClassName>org.h2.Driver</driverClassName>
|
||||||
|
<maxActive>50</maxActive>
|
||||||
|
<maxWait>60000</maxWait>
|
||||||
|
<testOnBorrow>true</testOnBorrow>
|
||||||
|
<validationQuery>SELECT 1</validationQuery>
|
||||||
|
<validationInterval>30000</validationInterval>
|
||||||
|
</configuration>
|
||||||
|
</definition>
|
||||||
|
</datasource>
|
||||||
|
]]>
|
||||||
|
</insert>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build">
|
<target name="build">
|
||||||
@ -58,6 +84,9 @@
|
|||||||
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
<xmltask source="${iot.conf}" dest="${iot.conf}" report="true">
|
||||||
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
<remove path="/IoTDeviceTypeConfigManager/IotDeviceTypeConfig[type='${sample_type}']"/>
|
||||||
</xmltask>
|
</xmltask>
|
||||||
|
<xmltask source="${datasources.conf}" dest="${datasources.conf}" report="true">
|
||||||
|
<remove path="/datasources-configuration/datasources/datasource[name='${data_source}']"/>
|
||||||
|
</xmltask>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
Loading…
Reference in New Issue
Block a user