<!--
 ~ Copyright (c) 2005-2010, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 ~
 ~ WSO2 Inc. licenses this file to you under the Apache License,
 ~ Version 2.0 (the "License"); you may not use this file except
 ~ in compliance with the License.
 ~ You may obtain a copy of the License at
 ~
 ~    http://www.apache.org/licenses/LICENSE-2.0
 ~
 ~ Unless required by applicable law or agreed to in writing,
 ~ software distributed under the License is distributed on an
 ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 ~ KIND, either express or implied.  See the License for the
 ~ specific language governing permissions and limitations
 ~ under the License.
 -->
<assembly>
    <id>wso2analytics-is-bin</id>
    <formats>
        <format>zip</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>

    <fileSets>
        <fileSet>
            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
            <excludes>
                <exclude>**/repository/deployment/server/axis2services/*</exclude>
                <exclude>**/*.sh</exclude>
                <exclude>**/wso2server.bat</exclude>
                <exclude>**/axis2services/sample01.aar</exclude>
                <exclude>**/axis2services/echo/**</exclude>
                <exclude>**/axis2services/version/**</exclude>
                <exclude>**/pom.xml</exclude>
                <exclude>**/version.txt</exclude>
                <exclude>**/README*</exclude>
                <exclude>**/LICENSE.txt</exclude>
                <exclude>**/INSTALL.txt</exclude>
                <exclude>**/release-notes.html</exclude>
                <exclude>**/carbon.xml</exclude>
                <exclude>**/axis2/axis2.xml</exclude>
                <exclude>**/log4j.properties</exclude>
                <exclude>**/wso2server.sh</exclude>  <!--adding a custom DAS server.sh file-->
                <exclude>**/registry.xml</exclude>
                <exclude>**/repository/conf/security/cipher-text.properties</exclude>
                <exclude>**/repository/conf/security/cipher-tool.properties</exclude>
                <exclude>**/repository/components/plugins/hadoop-client_2.6.0.wso2v2.jar</exclude>
            </excludes>
        </fileSet>
        <fileSet>
            <directory>target/wso2carbon-core-${carbon.kernel.version}</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
            <excludes>
                <exclude>**/wso2server.bat</exclude>
                <exclude>**/wso2server.sh</exclude>
            </excludes>
            <includes>
                <include>**/*.sh</include>
            </includes>
            <fileMode>755</fileMode>
        </fileSet>

        <!-- copying runtimes -->
        <fileSet>
            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/lib/runtimes</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/lib/runtimes/</outputDirectory>
            <includes>
                <include>*/**</include>
            </includes>
        </fileSet>

        <!-- Multitenancy related files -->
        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/multitenancy/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/multitenancy</outputDirectory>
            <includes>
                <include>**/cloud-services-desc.xml</include>
                <include>**/multitenancy-packages.xml</include>
                <include>**/stratos.xml</include>
                <include>**/usage-throttling-agent-config.xml</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/multitenancy/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf</outputDirectory>
            <includes>
                <include>**/tenant-mgt.xml</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../styles/product/src/main/resources/web/styles/css</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/resources/allthemes/Default/admin</outputDirectory>
            <includes>
                <include>**/**.css</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../styles/product/src/main/resources/web/styles/images</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/resources/allthemes/Default/images</outputDirectory>
            <includes>
                <include>**/**.gif</include>
                <include>**/**.png</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>lib/home</directory>
            <outputDirectory>
                ${pom.artifactId}-${pom.version}/repository/deployment/server/webapps/STRATOS_ROOT
            </outputDirectory>
        </fileSet>
        <!-- END - Multitenancy related files -->

        <!-- Analytics related config -->
        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/analytics</outputDirectory>
            <includes>
                <include>**/rdbms-config.xml</include>
                <include>**/hbase-analytics-config.xml</include>
                <include>**/analytics-data-config.xml</include>
                <include>**/analytics-eventsink-config.xml</include>
            </includes>
            <excludes>
              <exclude>**/analytics-config.xml</exclude>
            </excludes>
        </fileSet>
        <!-- CEP -->

        <!--creating an empty input event adaptors directory-->
        <fileSet>
            <directory>.</directory>
            <outputDirectory>
                ${pom.artifactId}-${pom.version}/repository/deployment/server/eventreceivers
            </outputDirectory>
            <excludes>
                <exclude>**/*</exclude>
            </excludes>
        </fileSet>

        <!--creating an empty output event adaptors directory-->
        <fileSet>
            <directory>.</directory>
            <outputDirectory>
                ${pom.artifactId}-${pom.version}/repository/deployment/server/eventpublishers
            </outputDirectory>
            <excludes>
                <exclude>**/*</exclude>
            </excludes>
        </fileSet>

        <!--creating an empty event builders directory-->
        <fileSet>
            <directory>.</directory>
            <outputDirectory>
                ${pom.artifactId}-${pom.version}/repository/deployment/server/eventstreams
            </outputDirectory>
            <excludes>
                <exclude>**/*</exclude>
            </excludes>
        </fileSet>

        <fileSet>
            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/executionplans</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/executionplans</outputDirectory>
            <includes>
                <include>**/*.siddhiql</include>
            </includes>
        </fileSet>
        <fileSet>
            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/template-manager/sparktemplates</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/template-manager/sparktemplates</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/template-manager/templateconfigs</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/template-manager/templateconfigs</outputDirectory>
        </fileSet>

        <!-- Some war files related to CEP websockets -->
        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps
            </outputDirectory>
            <includes>
                <include>inputwebsocket.war</include>
                <include>outputwebsocket.war</include>
                <include>outputui.war</include>
            </includes>
        </fileSet>


        <!-- END CEP -->

        <!-- Start UES related artifacts -->

        <!-- Jaggery modules, carbon and process. Should be copied to <DAS_HOME> -->
        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/modules
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/modules</outputDirectory>
            <includes>
                <include>**/*</include>
            </includes>
        </fileSet>

        <!-- Shindig webapp. Should be copied to <DAS_HOME> -->
        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
            <includes>
                <include>shindig.war</include>
            </includes>
        </fileSet>

        <!-- Dashboard portal Jaggery app. Should be copied to <DAS_HOME>/repository/deployment/server/jaggeryapps -->
        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/jaggeryapps/portal
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/portal</outputDirectory>
            <excludes>
                <exclude>css/custom.css</exclude>
                <!--<exclude>**/extensions/themes/basic/css/portal.css</exclude>
                <exclude>**/extensions/themes/basic/js/*</exclude>-->
            </excludes>
        </fileSet>

        <!-- Privacy policy jaggery app -->
        <fileSet>
            <directory>src/privacy-policies/</directory>
            <outputDirectory>
                ${project.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/privacy-policies
            </outputDirectory>
            <fileMode>644</fileMode>
        </fileSet>

        <!-- Adding customized analytics theme to themes directory -->
        <!--fileSet>
            <directory>
                src/ues/themes/basic
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/portal/extensions/themes/basic/</outputDirectory>
            <includes>
                <include>**/*</include>
            </includes>
        </fileSet-->

        <!-- END UES related dashboard artifacts -->


        <!--creating an empty event sink directory-->
        <fileSet>
            <directory>.</directory>
            <outputDirectory>
                ${pom.artifactId}-${pom.version}/repository/deployment/server/eventsink
            </outputDirectory>
            <excludes>
                <exclude>**/*</exclude>
            </excludes>
        </fileSet>


        <!-- Copying dbscripts related to identity and metrics  feature -->

        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/identity/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts/identity</outputDirectory>
            <includes>
                <include>**/*.sql</include>
            </includes>
        </fileSet>


        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/dbscripts/metrics/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/dbscripts/metrics</outputDirectory>
            <includes>
                <include>**/*.sql</include>
            </includes>
        </fileSet>

        <fileSet>
            <directory>../samples/</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/samples/</outputDirectory>
        </fileSet>

        <!-- Copying layout into tenant store at tenant creation time -->
        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/resources/sharedstore/layout
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/sharedstore/layout</outputDirectory>
        </fileSet>

        <!-- Copying capps to distribution -->
        <fileSet>
            <directory>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/capps/
            </directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/capps</outputDirectory>
            <includes>
                <include>**/*.car</include>
            </includes>
        </fileSet>

        <!-- Forget-me tool -->
        <fileSet>
            <directory>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}</directory>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/tools/forget-me</outputDirectory>
            <excludes>
                <exclude>**/forgetme.sh</exclude>
                <exclude>**/forgetme.bat</exclude>
                <exclude>**/config.json</exclude>
                <exclude>conf/datasources/**</exclude>
                <exclude>conf/log-config/**</exclude>
                <exclude>conf/product-config/**</exclude>
                <exclude>conf/sql/**</exclude>
                <exclude>conf/streams/**</exclude>
            </excludes>
            <fileMode>644</fileMode>
        </fileSet>

    </fileSets>

    <files>
        <!-- *********** Default files copy that comes with Carbon ************* -->
        <file>
            <source>README.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>LICENSE.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>release-notes.html</source>
            <outputDirectory>${pom.artifactId}-${pom.version}</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/README.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/bin/version.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>../../features/org.wso2.analytics.is.feature/src/main/portalcss/custom.css</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/jaggeryapps/portal/css/</outputDirectory>
            <filtered>true</filtered>
        </file>
        <file>
            <source>src/repository/conf/carbon.xml</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
            <filtered>true</filtered>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/conf/axis2/axis2.xml</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/axis2/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/conf/README</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <!--a custom wso2server.bat file is included later on-->
        <!--<file>-->
            <!--<source>target/wso2carbon-core-${carbon.kernel.version}/bin/wso2server.bat</source>-->
            <!--<outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>-->
            <!--<filtered>true</filtered>-->
            <!--<fileMode>644</fileMode>-->
        <!--</file>-->
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/README.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/lib/README.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/lib/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <!-- Commenting out as part of Carbon 4.4.2 version upgrade -->
        <!--<file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/webapp-mode/README.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/webapp-mode/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>-->
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/components/README.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/database/README.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/database/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/README.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/logs/README.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/logs/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/wso2carbon-core-${carbon.kernel.version}/repository/resources/README.txt</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/resources/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <!-- *********** Default files copy end ************* -->

        <!-- *********** Log4j file copy **************** -->
        <file>
            <source>src/repository/conf/log4j.properties</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <!-- *********** Log4j file copy end **************** -->

        <!-- Copying jndi.properties -->
        <file>
            <source>src/repository/conf/jndi.properties</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
            <fileMode>644</fileMode>
        </file>

        <!-- Copying registry.x.l -->
        <file>
            <source>src/repository/conf/registry.xml</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
            <fileMode>644</fileMode>
        </file>

        <!-- Copying analytics-config.xml with default facet value.-->
        <file>
            <source>src/repository/conf/analytics/analytics-config.xml</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/analytics</outputDirectory>
            <fileMode>644</fileMode>
        </file>

        <!-- ************* Data bridge related files ********** -->
        <file>
            <source>../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/data-bridge/data-bridge-config.xml</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/data-bridge</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>src/repository/conf/data-bridge/stream-definitions.xml</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/data-bridge</outputDirectory>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/data-bridge/data-agent-config.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/data-bridge
            </outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <!-- ************* Data bridge related files end ********** -->

        <!-- ************* tomcat webapp hosting related files start ********** -->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/webapp-classloading.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/tomcat</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/webapp-classloading-environments.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/tomcat</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/tomcat/context.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/tomcat</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <!-- ************* tomcat webapp hosting related files end ********** -->

        <!-- Event broker configuration for deployment sync -->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-broker.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>


        <!-- default input/output adaptor configurations -->
        <!--file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cep-ha-management.xml
            </source>
            <outputDirectory>
                ${pom.artifactId}-${pom.version}/repository/conf/
            </outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cep/storm/storm-deployment-config.xml
            </source>
            <outputDirectory>
                ${pom.artifactId}-${pom.version}/repository/conf/cep/storm/
            </outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file-->

        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/output-event-adapters.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf
            </outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>

        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/input-event-adapters.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf
            </outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>

        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cep/storm/storm.yaml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/cep/storm/
            </outputDirectory>
            <filtered>true</filtered>
        </file>

        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/event-processor.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/
            </outputDirectory>
            <filtered>true</filtered>
        </file>

        <!-- END - default input/output adaptor configurations -->

        <!-- Analytics datasources -->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/datasources/analytics-datasources.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/datasources</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>

		<!-- Analytics REST APIs WebApp -->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/webapps/analytics.war
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/webapps</outputDirectory>
            <!--commented since this tag causes issues in maven assembly plugin when copying zip formats-->
            <!--filtered>true</filtered-->
            <fileMode>644</fileMode>
        </file>

	<file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/deployment/server/carbonapps/org_wso2_analytics_is-1.0.0.car
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/deployment/server/carbonapps</outputDirectory>
            <!--commented since this tag causes issues in maven assembly plugin when copying zip formats-->
            <!--filtered>true</filtered-->
            <fileMode>644</fileMode>
        </file>

        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/logging-config.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc/
            </outputDirectory>
        </file>

        <!--loads spark environment variables-->
        <file>
            <!--../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/bin/load-spark-env-vars.sh-->
            <!-- this file is moved to product-das from carbon-analytics DAS-110 -->
            <source>
                src/bin/load-spark-env-vars.sh
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/
            </outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>
        <file>
            <!--../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/bin/load-spark-env-vars.bat-->
            <!-- this file is moved to product-das from carbon-analytics DAS-110 -->
            <source>
                src/bin/load-spark-env-vars.bat
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/
            </outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>

        <!-- custom wso2server.sh file for DAS-->
        <file>
            <!--../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/bin/wso2server.sh-->
            <!-- this file is moved to product-das from carbon-analytics DAS-110 -->
            <source>
                src/bin/wso2server.sh
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/
            </outputDirectory>
            <filtered>true</filtered>
            <fileMode>755</fileMode>
        </file>
        <file>
            <!--../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/bin/wso2server.bat-->
            <!-- this file is moved to product-das from carbon-analytics DAS-110 -->
            <source>
                src/bin/wso2server.bat
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/
            </outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>

        <!--spark defaults file-->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/spark-defaults.conf
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/
            </outputDirectory>
            <fileMode>755</fileMode>
        </file>

        <!--spark fair scheduler xml file-->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/fairscheduler.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/
            </outputDirectory>
            <fileMode>755</fileMode>
        </file>

        <!--spark classpath config file-->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/external-spark-classpath.conf
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/
            </outputDirectory>
            <fileMode>755</fileMode>
        </file>

        <!--spark udf conf file-->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/spark-udf-config.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/
            </outputDirectory>
            <fileMode>755</fileMode>
        </file>

        <!--spark log4j.properties file-->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/log4j.properties.template
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/
            </outputDirectory>
            <fileMode>755</fileMode>
        </file>

        <!--spark jdbc config file-->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/spark-jdbc-config.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/
            </outputDirectory>
            <fileMode>755</fileMode>
        </file>

        <!--akka conf files-->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/bundle-config/com.typesafe.config/reference.conf
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc/bundle-config/com.typesafe.config/
            </outputDirectory>
            <fileMode>644</fileMode>
        </file>

        <!--YARN conf files-->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/bundle-config/hadoop-client/core-site.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc/bundle-config/hadoop-client/
            </outputDirectory>
            <fileMode>644</fileMode>
        </file>

        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/bundle-config/hadoop-client/hdfs-site.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc/bundle-config/hadoop-client/
            </outputDirectory>
            <fileMode>644</fileMode>
        </file>

        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/bundle-config/hadoop-client/yarn-site.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc/bundle-config/hadoop-client/
            </outputDirectory>
            <fileMode>644</fileMode>
        </file>

        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/bundle-config/hadoop-client/mapred-site.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc/bundle-config/hadoop-client/
            </outputDirectory>
            <fileMode>644</fileMode>
        </file>

        <!-- analytics backup tool script file-->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/bin/analytics-backup.sh
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/
            </outputDirectory>
            <fileMode>755</fileMode>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/bin/analytics-backup.bat
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
        </file>

        <!-- analytics cassandra migration tool script file-->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/bin/analytics-migrate.sh
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/
            </outputDirectory>
            <fileMode>755</fileMode>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/bin/analytics-migrate.bat
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
        </file>


        <!-- Including rdbms configuration file for event simulator -->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/cep/rdbms-configuration.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/cep
            </outputDirectory>
            <filtered>true</filtered>
        </file>

        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/template-manager/domain-template/is-analytics.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/template-manager/domain-template</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/template-manager/domain-template/is-analytics.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/template-manager/domain-template</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/template-manager/domain-template/email-notifications.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/template-manager/domain-template</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>

        <!-- Cipher Tool Files -->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/bin/ciphertool.sh
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin</outputDirectory>
            <fileMode>755</fileMode>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/bin/ciphertool.bat
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin</outputDirectory>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/lib/org.wso2.ciphertool-${cipher.tool.version}.jar
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/lib</outputDirectory>
        </file>

        <file>
            <source>./repository/conf/security/cipher-text.properties</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/security</outputDirectory>
        </file>
        <file>
            <source>./repository/conf/security/cipher-tool.properties</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/security</outputDirectory>
        </file>

        <!-- Copying metrics feature related files -->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/metrics.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
            <filtered>false</filtered>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/metrics.properties
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/</outputDirectory>
            <filtered>false</filtered>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/datasources/metrics-datasources.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/datasources/
            </outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/database/WSO2METRICS_DB.h2.db
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/database/</outputDirectory>
            <fileMode>644</fileMode>
        </file>

        <!-- Copying the identity file -->
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/identity/identity.xml
            </source>
            <outputDirectory>wso2is-analytics-${pom.version}/repository/conf/identity</outputDirectory>
            <fileMode>644</fileMode>
        </file>

	<file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/analytics/spark/carbon-spark-classpath.conf
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/analytics/spark/
            </outputDirectory>
            <fileMode>755</fileMode>
       </file>

        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/etc/geolocation.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/etc</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                src/repository/database/GEOLOCATION_DB.h2.db
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/database</outputDirectory>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>
                ../p2-profile-gen/target/wso2carbon-core-${carbon.kernel.version}/repository/conf/datasources/geolocation-datasources.xml
            </source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/datasources</outputDirectory>
            <filtered>true</filtered>
            <fileMode>644</fileMode>
        </file>

        <!--Siddhi conf-->
<!--        <file>
            <source>repository/conf/siddhi/siddhi.extension</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/conf/siddhi/
            </outputDirectory>
            <filtered>true</filtered>
        </file>-->

        <!-- END CEP -->

        <!-- Forget me tool -->
        <file>
            <source>src/bin/forgetme.sh</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
            <fileMode>744</fileMode>
        </file>
        <file>
            <source>src/bin/forgetme.bat</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/bin/</outputDirectory>
            <fileMode>744</fileMode>
        </file>
        <file>
            <source>src/bin/tools/forget-me/forgetme.sh</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/tools/forget-me/bin/</outputDirectory>
            <fileMode>744</fileMode>
        </file>
        <file>
            <source>src/bin/tools/forget-me/forgetme.bat</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/tools/forget-me/bin/</outputDirectory>
            <fileMode>744</fileMode>
        </file>
        <file>
            <source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/product-config/config-analytics-is.json</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/tools/forget-me/conf/</outputDirectory>
            <destName>config.json</destName>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/product-config/config-analytics-is.json</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/tools/forget-me/conf/</outputDirectory>
            <destName>config.json</destName>
            <fileMode>644</fileMode>
        </file>
        <file>
            <source>target/forget-me/identity-anonymization-tool-${forgetme.tool.version}/conf/streams/is-streams.json</source>
            <outputDirectory>${pom.artifactId}-${pom.version}/repository/components/tools/forget-me/conf/streams/</outputDirectory>
            <destName>streams.json</destName>
            <fileMode>644</fileMode>
        </file>

    </files>
</assembly>
