|
|
|
@ -17,20 +17,18 @@
|
|
|
|
|
~ under the License.
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
|
<groupId>org.wso2.iot</groupId>
|
|
|
|
|
<artifactId>wso2iot-parent</artifactId>
|
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
|
<version>1.0.0-alpha</version>
|
|
|
|
|
<relativePath>../../pom.xml</relativePath>
|
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
<artifactId>wso2iots</artifactId>
|
|
|
|
|
<version>1.0.0-SNAPSHOT</version>
|
|
|
|
|
<version>1.0.0-alpha</version>
|
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
<name>WSO2 IoT Server - Distribution</name>
|
|
|
|
|
<description>WSO2 IoT Server Distribution</description>
|
|
|
|
@ -108,22 +106,17 @@
|
|
|
|
|
<tasks>
|
|
|
|
|
<echo message="########### Create Device Management H2 Schema ###########" />
|
|
|
|
|
|
|
|
|
|
<property name="db.dir"
|
|
|
|
|
value="target/wso2carbon-core-${carbon.kernel.version}/repository/database"/>
|
|
|
|
|
<property name="db.dir" value="target/wso2carbon-core-${carbon.kernel.version}/repository/database" />
|
|
|
|
|
<property name="userid" value="wso2carbon" />
|
|
|
|
|
<property name="password" value="wso2carbon" />
|
|
|
|
|
<property name="dbURL"
|
|
|
|
|
value="jdbc:h2:file:${basedir}/${db.dir}/WSO2DM_DB;DB_CLOSE_ON_EXIT=FALSE"/>
|
|
|
|
|
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2DM_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
|
|
|
|
|
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}"
|
|
|
|
|
password="${password}"
|
|
|
|
|
autocommit="true" onerror="continue">
|
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" autocommit="true" onerror="continue">
|
|
|
|
|
<classpath refid="maven.dependency.classpath" />
|
|
|
|
|
<classpath refid="maven.compile.classpath" />
|
|
|
|
|
<classpath refid="maven.runtime.classpath" />
|
|
|
|
|
|
|
|
|
|
<fileset
|
|
|
|
|
file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/cdm/h2.sql"/>
|
|
|
|
|
<fileset file="${basedir}/../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/cdm/h2.sql" />
|
|
|
|
|
</sql>
|
|
|
|
|
<echo message="##################### END ####################" />
|
|
|
|
|
</tasks>
|
|
|
|
@ -140,22 +133,17 @@
|
|
|
|
|
<tasks>
|
|
|
|
|
<echo message="########### Create API Management H2 Schema ###########" />
|
|
|
|
|
|
|
|
|
|
<property name="db.dir"
|
|
|
|
|
value="target/wso2carbon-core-${carbon.kernel.version}/repository/database"/>
|
|
|
|
|
<property name="db.dir" value="target/wso2carbon-core-${carbon.kernel.version}/repository/database" />
|
|
|
|
|
<property name="userid" value="wso2carbon" />
|
|
|
|
|
<property name="password" value="wso2carbon" />
|
|
|
|
|
<property name="dbURL"
|
|
|
|
|
value="jdbc:h2:file:${basedir}/${db.dir}/WSO2AM_DB;DB_CLOSE_ON_EXIT=FALSE"/>
|
|
|
|
|
<property name="dbURL" value="jdbc:h2:file:${basedir}/${db.dir}/WSO2AM_DB;DB_CLOSE_ON_EXIT=FALSE" />
|
|
|
|
|
|
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}"
|
|
|
|
|
password="${password}"
|
|
|
|
|
autocommit="true" onerror="continue">
|
|
|
|
|
<sql driver="org.h2.Driver" url="${dbURL}" userid="${userid}" password="${password}" autocommit="true" onerror="continue">
|
|
|
|
|
<classpath refid="maven.dependency.classpath" />
|
|
|
|
|
<classpath refid="maven.compile.classpath" />
|
|
|
|
|
<classpath refid="maven.runtime.classpath" />
|
|
|
|
|
|
|
|
|
|
<fileset
|
|
|
|
|
file="${basedir}/src/repository/resources/dbscripts/apimgt/h2.sql"/>
|
|
|
|
|
<fileset file="${basedir}/src/repository/resources/dbscripts/apimgt/h2.sql" />
|
|
|
|
|
</sql>
|
|
|
|
|
<echo message="##################### END ####################" />
|
|
|
|
|
</tasks>
|
|
|
|
@ -182,10 +170,8 @@
|
|
|
|
|
<include name="${project.artifactId}-${project.version}.zip" />
|
|
|
|
|
</fileset>
|
|
|
|
|
</unzip>
|
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components"
|
|
|
|
|
overwrite="true">
|
|
|
|
|
<fileset
|
|
|
|
|
dir="${tempdir}/${project.artifactId}-${project.version}/repository/components"/>
|
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components" overwrite="true">
|
|
|
|
|
<fileset dir="${tempdir}/${project.artifactId}-${project.version}/repository/components" />
|
|
|
|
|
</copy>
|
|
|
|
|
<!--testing -->
|
|
|
|
|
<!--<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar" dest="${jardir}/shindig-common-${shindig.version}">
|
|
|
|
@ -223,8 +209,7 @@ d <exclude name="**/shindig.properties" /
|
|
|
|
|
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/samples" />
|
|
|
|
|
|
|
|
|
|
<!--Copy samples to distribution-->
|
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/samples"
|
|
|
|
|
overwrite="true">
|
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/samples" overwrite="true">
|
|
|
|
|
<fileset dir="../samples">
|
|
|
|
|
<exclude name="**/*.iml" />
|
|
|
|
|
<exclude name="**/.DS_Store" />
|
|
|
|
@ -238,8 +223,7 @@ d <exclude name="**/shindig.properties" /
|
|
|
|
|
</fileset>
|
|
|
|
|
</copy>
|
|
|
|
|
|
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/"
|
|
|
|
|
overwrite="true">
|
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/" overwrite="true">
|
|
|
|
|
<fileset dir="../samples/installer/">
|
|
|
|
|
<exclude name="**/*.iml" />
|
|
|
|
|
<exclude name="**/.DS_Store" />
|
|
|
|
|