feature-pack-build.xml

65 lines | 2.96 kB Blame History Raw Download
<!--
  ~ Copyright 2016 Red Hat, Inc. and/or its affiliates
  ~ and other contributors as indicated by the @author tags.
  ~
  ~ Licensed 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.
  -->

<build xmlns="urn:wildfly:feature-pack-build:1.1">
    <dependencies>
        <artifact name="${feature.parent}" />
    </dependencies>
    <config>
        <standalone template="configuration/standalone/template.xml" subsystems="configuration/standalone/subsystems.xml" output-file="standalone/configuration/standalone.xml" />
        <standalone template="configuration/standalone/template.xml" subsystems="configuration/standalone/subsystems-ha.xml" output-file="standalone/configuration/standalone-ha.xml">
            <property name="jgroups.supplement" value="" />
        </standalone>
        <domain template="configuration/domain/template.xml" subsystems="configuration/domain/subsystems.xml" output-file="domain/configuration/domain.xml" />
        <host template="configuration/host/host.xml" subsystems="configuration/host/subsystems.xml" output-file="domain/configuration/host.xml" />
        <host template="configuration/host/host-master.xml" subsystems="configuration/host/subsystems.xml" output-file="domain/configuration/host-master.xml" />
        <host template="configuration/host/host-slave.xml" subsystems="configuration/host/subsystems.xml" output-file="domain/configuration/host-slave.xml" />
    </config>

    <mkdirs>
        <dir name="domain/data/content"/>
        <dir name="standalone/lib/ext"/>
        <dir name="domain/tmp/auth"/>
        <dir name="standalone/tmp/auth"/>
        <dir name=".installation"/>
    </mkdirs>
    <file-permissions>
        <permission value="755">
            <filter pattern="*.sh" include="true"/>
            <filter pattern="*" include="false"/>
        </permission>
        <permission value="700">
            <filter pattern="*/tmp/auth" include="true"/>
            <filter pattern="*" include="false"/>
        </permission>
        <permission value="600">
            <filter pattern="*-users.properties" include="true" />
            <filter pattern="*/.installation" include="true"/>
            <filter pattern="*" include="false"/>
        </permission>
    </file-permissions>
    <line-endings>
        <windows>
            <filter pattern="*.bat" include="true"/>
        </windows>
        <unix>
            <filter pattern="*.sh" include="true"/>
            <filter pattern="*.conf" include="true"/>
        </unix>
    </line-endings>
</build>