|
|
|
@ -17,7 +17,9 @@
|
|
|
|
|
~ 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>
|
|
|
|
|
<groupId>org.wso2.iot</groupId>
|
|
|
|
@ -106,17 +108,22 @@
|
|
|
|
|
<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>
|
|
|
|
@ -133,17 +140,22 @@
|
|
|
|
|
<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>
|
|
|
|
@ -170,8 +182,10 @@
|
|
|
|
|
<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}">
|
|
|
|
@ -209,7 +223,8 @@ 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"/>
|
|
|
|
@ -223,7 +238,8 @@ 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"/>
|
|
|
|
|