<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright 2017 Red Hat, Inc.

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.
-->
<verifications xmlns="http://maven.apache.org/verifications/1.0.0"
               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
               xsi:schemaLocation="http://maven.apache.org/verifications/1.0.0 http://maven.apache.org/xsd/verifications-1.0.0.xsd">
<!--
    1) bin/product.conf exists
    2) bin/product.conf has a slot property with a value equal to the value of the
       'full.dist.product.slot' property
    3) jboss-modules.jar must exist
    4) standalone/configuration/standalone.xml must exist
    5) modules/system/layers/base/org/jboss/as/product/${full.dist.product.slot}/dir/META-INF/MANIFEST.MF exists
    6) JBoss-Product-Release-Name key in manifest.mf above has value equal to the value of the
       'full.dist.product.release.name' property
    7) JBoss-Product-Release-Version key in manifest.mf has value starting with the value of the
       'verifier.product.release.version' property
    8) JBossEULA.txt exists
    9) version.txt exists
    10) copyright.txt does not exist
    11) README.txt does not exist
    12) docs/contrib does not exist
    13) modules/layers.conf contains layers=microprofile
-->
  <files>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/bin/product.conf</location>
      <exists>true</exists>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/bin/product.conf</location>
      <contains>slot=${full.dist.product.slot}</contains>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/modules/system/layers/base/org/jboss/as/product/${full.dist.product.slot}/dir/META-INF/MANIFEST.MF</location>
      <exists>true</exists>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/modules/system/layers/base/org/jboss/as/product/${full.dist.product.slot}/dir/META-INF/MANIFEST.MF</location>
      <contains>JBoss-Product-Release-Name: ${full.dist.product.release.name}</contains>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/modules/system/layers/base/org/jboss/as/product/${full.dist.product.slot}/dir/META-INF/MANIFEST.MF</location>
      <contains>JBoss-Product-Release-Version: ${verifier.product.release.version}</contains>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/jboss-modules.jar</location>
      <exists>true</exists>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/standalone/configuration/standalone.xml</location>
      <exists>true</exists>
    </file>
    <!-- Skip wildfly-server-jar verification check because the version isn't really controlled by the property in our pom;
         the eap feature pack controls it -->
    <!--<file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/modules/system/layers/base/org/jboss/as/server/main/wildfly-server-${version.org.wildfly.core}.jar</location>
      <exists>true</exists>
    </file>-->
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/JBossEULA.txt</location>
      <exists>true</exists>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/version.txt</location>
      <exists>true</exists>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/copyright.txt</location>
      <exists>false</exists>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/README.txt</location>
      <exists>false</exists>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/docs/contrib/scripts</location>
      <exists>false</exists>
    </file>
    <file>
      <location>target/${server.output.dir.prefix}-${server.output.dir.version}/modules/layers.conf</location>
      <contains>layers=microprofile</contains>
    </file>
  </files>
</verifications>
