initial checkin

This commit is contained in:
2021-05-18 12:30:26 -04:00
commit 4925d66cb1
12 changed files with 1518 additions and 0 deletions

View File

@@ -0,0 +1,177 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<modelVersion>4.0.0</modelVersion>
<groupId>com.inteligr8</groupId>
<artifactId>conditional-maven-plugin-boolean-property</artifactId>
<version>@pom.version@</version>
<packaging>pom</packaging>
<name>Boolean Property Plugin Tests</name>
<properties>
<prop.true>true</prop.true>
<prop.false>false</prop.false>
<prop.neither>none</prop.neither>
<prop.empty></prop.empty>
</properties>
<build>
<plugins>
<plugin>
<groupId>${project.groupId}</groupId>
<artifactId>conditional-maven-plugin</artifactId>
<version>@pom.version@</version>
<executions>
<execution>
<id>check-true-null</id>
<phase>validate</phase>
<goals>
<goal>boolean-property</goal>
</goals>
<configuration>
<booleanProperty>prop.true</booleanProperty>
<newProperty>prop.true-null</newProperty>
</configuration>
</execution>
<execution>
<id>check-true-empty</id>
<phase>validate</phase>
<goals>
<goal>boolean-property</goal>
</goals>
<configuration>
<booleanProperty>prop.true</booleanProperty>
<trueValue></trueValue>
<newProperty>prop.true-empty</newProperty>
</configuration>
</execution>
<execution>
<id>check-true</id>
<phase>validate</phase>
<goals>
<goal>boolean-property</goal>
</goals>
<configuration>
<booleanProperty>prop.true</booleanProperty>
<trueValue>condition was true</trueValue>
<newProperty>prop.true-valued</newProperty>
</configuration>
</execution>
<execution>
<id>check-false-null</id>
<phase>validate</phase>
<goals>
<goal>boolean-property</goal>
</goals>
<configuration>
<booleanProperty>prop.false</booleanProperty>
<newProperty>prop.false-null</newProperty>
</configuration>
</execution>
<execution>
<id>check-false-empty</id>
<phase>validate</phase>
<goals>
<goal>boolean-property</goal>
</goals>
<configuration>
<booleanProperty>prop.false</booleanProperty>
<falseValue></falseValue>
<newProperty>prop.false-empty</newProperty>
</configuration>
</execution>
<execution>
<id>check-false</id>
<phase>validate</phase>
<goals>
<goal>boolean-property</goal>
</goals>
<configuration>
<booleanProperty>prop.false</booleanProperty>
<falseValue>condition was false</falseValue>
<newProperty>prop.false-valued</newProperty>
</configuration>
</execution>
<execution>
<id>check-neither</id>
<phase>validate</phase>
<goals>
<goal>boolean-property</goal>
</goals>
<configuration>
<booleanProperty>prop.neither</booleanProperty>
<trueValue>condition was true</trueValue>
<falseValue>condition was false</falseValue>
<newProperty>prop.neither-valued</newProperty>
</configuration>
</execution>
<execution>
<id>check-empty</id>
<phase>validate</phase>
<goals>
<goal>boolean-property</goal>
</goals>
<configuration>
<booleanProperty>prop.empty</booleanProperty>
<trueValue>condition was true</trueValue>
<falseValue>condition was false</falseValue>
<newProperty>prop.empty-valued</newProperty>
</configuration>
</execution>
<execution>
<id>check-null</id>
<phase>validate</phase>
<goals>
<goal>boolean-property</goal>
</goals>
<configuration>
<booleanProperty>prop.null</booleanProperty>
<trueValue>condition was true</trueValue>
<falseValue>condition was false</falseValue>
<newProperty>prop.null-valued</newProperty>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4.1</version>
<executions>
<execution>
<id>assert</id>
<goals><goal>enforce</goal></goals>
<configuration>
<rules>
<requireProperty>
<property>prop.true-valued</property>
<regex>condition was true</regex>
</requireProperty>
<requireProperty>
<property>prop.false-valued</property>
<regex>condition was false</regex>
</requireProperty>
<requireProperty>
<property>prop.neither-valued</property>
<regex>condition was false</regex>
</requireProperty>
<requireProperty>
<property>prop.empty-valued</property>
<regex>condition was false</regex>
</requireProperty>
<requireProperty>
<property>prop.null-valued</property>
<regex>condition was false</regex>
</requireProperty>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>