|
|
@ -17,7 +17,9 @@
|
|
|
|
~ under the License.
|
|
|
|
~ under the License.
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
<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">
|
|
|
|
<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">
|
|
|
|
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<parent>
|
|
|
|
<groupId>org.wso2.iot</groupId>
|
|
|
|
<groupId>org.wso2.iot</groupId>
|
|
|
@ -106,17 +108,22 @@
|
|
|
|
<tasks>
|
|
|
|
<tasks>
|
|
|
|
<echo message="########### Create Device Management H2 Schema ###########"/>
|
|
|
|
<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="userid" value="wso2carbon"/>
|
|
|
|
<property name="password" 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.dependency.classpath"/>
|
|
|
|
<classpath refid="maven.compile.classpath"/>
|
|
|
|
<classpath refid="maven.compile.classpath"/>
|
|
|
|
<classpath refid="maven.runtime.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>
|
|
|
|
</sql>
|
|
|
|
<echo message="##################### END ####################"/>
|
|
|
|
<echo message="##################### END ####################"/>
|
|
|
|
</tasks>
|
|
|
|
</tasks>
|
|
|
@ -133,17 +140,22 @@
|
|
|
|
<tasks>
|
|
|
|
<tasks>
|
|
|
|
<echo message="########### Create API Management H2 Schema ###########"/>
|
|
|
|
<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="userid" value="wso2carbon"/>
|
|
|
|
<property name="password" 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.dependency.classpath"/>
|
|
|
|
<classpath refid="maven.compile.classpath"/>
|
|
|
|
<classpath refid="maven.compile.classpath"/>
|
|
|
|
<classpath refid="maven.runtime.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>
|
|
|
|
</sql>
|
|
|
|
<echo message="##################### END ####################"/>
|
|
|
|
<echo message="##################### END ####################"/>
|
|
|
|
</tasks>
|
|
|
|
</tasks>
|
|
|
@ -170,8 +182,10 @@
|
|
|
|
<include name="${project.artifactId}-${project.version}.zip"/>
|
|
|
|
<include name="${project.artifactId}-${project.version}.zip"/>
|
|
|
|
</fileset>
|
|
|
|
</fileset>
|
|
|
|
</unzip>
|
|
|
|
</unzip>
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components" overwrite="true">
|
|
|
|
<copy todir="target/wso2carbon-core-${carbon.kernel.version}/repository/components"
|
|
|
|
<fileset dir="${tempdir}/${project.artifactId}-${project.version}/repository/components" />
|
|
|
|
overwrite="true">
|
|
|
|
|
|
|
|
<fileset
|
|
|
|
|
|
|
|
dir="${tempdir}/${project.artifactId}-${project.version}/repository/components"/>
|
|
|
|
</copy>
|
|
|
|
</copy>
|
|
|
|
<!--testing -->
|
|
|
|
<!--testing -->
|
|
|
|
<!--<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar" dest="${jardir}/shindig-common-${shindig.version}">
|
|
|
|
<!--<unzip src="target/shindig/WEB-INF/lib/shindig-common-${shindig.version}.jar" dest="${jardir}/shindig-common-${shindig.version}">
|
|
|
@ -209,7 +223,8 @@ d <exclude name="**/shindig.properties" /
|
|
|
|
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/samples"/>
|
|
|
|
<mkdir dir="target/wso2carbon-core-${carbon.kernel.version}/samples"/>
|
|
|
|
|
|
|
|
|
|
|
|
<!--Copy samples to distribution-->
|
|
|
|
<!--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">
|
|
|
|
<fileset dir="../samples">
|
|
|
|
<exclude name="**/*.iml"/>
|
|
|
|
<exclude name="**/*.iml"/>
|
|
|
|
<exclude name="**/.DS_Store"/>
|
|
|
|
<exclude name="**/.DS_Store"/>
|
|
|
@ -223,7 +238,8 @@ d <exclude name="**/shindig.properties" /
|
|
|
|
</fileset>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
</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/">
|
|
|
|
<fileset dir="../samples/installer/">
|
|
|
|
<exclude name="**/*.iml"/>
|
|
|
|
<exclude name="**/*.iml"/>
|
|
|
|
<exclude name="**/.DS_Store"/>
|
|
|
|
<exclude name="**/.DS_Store"/>
|
|
|
|