build.xml

72 lines | 2.901 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.
  -->

<project name="test-apps-dist" basedir="." default="all">

    <target name="all">
        <delete dir="target/test-apps"/>
        <copy todir="target/test-apps/photoz" overwrite="true">
            <fileset dir="../photoz">
                <exclude name="**/target/**"/>
                <exclude name="**/*.iml"/>
                <exclude name="**/*.unconfigured"/>
                <exclude name="**/subsystem-config.xml"/>
            </fileset>
        </copy>
        <copy todir="target/test-apps/hello-world-authz-service" overwrite="true">
            <fileset dir="../hello-world-authz-service">
                <exclude name="**/target/**"/>
                <exclude name="**/*.iml"/>
                <exclude name="**/*.unconfigured"/>
                <exclude name="**/subsystem-config.xml"/>
            </fileset>
        </copy>
        <copy todir="target/test-apps/servlet-authz-app" overwrite="true">
            <fileset dir="../servlet-authz">
                <exclude name="**/target/**"/>
                <exclude name="**/*.iml"/>
                <exclude name="**/*.unconfigured"/>
                <exclude name="**/subsystem-config.xml"/>
            </fileset>
        </copy>
        <copy todir="target/test-apps/servlet-policy-enforcer" overwrite="true">
            <fileset dir="../servlet-policy-enforcer">
                <exclude name="**/target/**"/>
                <exclude name="**/*.iml"/>
                <exclude name="**/*.unconfigured"/>
                <exclude name="**/subsystem-config.xml"/>
            </fileset>
        </copy>
        <copy todir="target/test-apps/cors" overwrite="true">
            <fileset dir="../cors">
                <exclude name="**/target/**"/>
                <exclude name="**/*.iml"/>
                <exclude name="**/*.unconfigured"/>
                <exclude name="**/subsystem-config.xml"/>
            </fileset>
        </copy>
        <copy todir="target/test-apps/fuse" overwrite="true">
            <fileset dir="../fuse">
                <exclude name="**/target/**"/>
                <exclude name="**/*.iml"/>
                <exclude name="**/*.unconfigured"/>
                <exclude name="**/subsystem-config.xml"/>
            </fileset>
        </copy>
    </target>
</project>