This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-changes-plugin.git
commit b9bfbf38c14befc8a36ccb0cc4265025c7e32e6f Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Thu Nov 26 05:57:48 2026 +0000 Remove ITs now covered by unit tests --- .../invoker.properties | 18 ---- .../announcement-generate-custom-template/pom.xml | 98 ---------------------- .../src/changes/changes.xml | 49 ----------- .../template-directory/test-announce.vm | 20 ----- .../verify.groovy | 32 ------- .../changes-check-invalid-date/invoker.properties | 19 ----- src/it/changes-check-invalid-date/pom.xml | 37 -------- .../src/changes/changes.xml | 29 ------- src/it/changes-check-invalid-date/verify.groovy | 22 ----- .../custom/my-changes.xml | 29 ------- .../invoker.properties | 18 ---- src/it/changes-check-relative-xmlpath/pom.xml | 39 --------- .../changes-check-relative-xmlpath/verify.groovy | 22 ----- .../invoker.properties | 18 ---- src/it/changes-check-skip-snapshots/pom.xml | 39 --------- .../src/changes/changes.xml | 29 ------- src/it/changes-check-skip-snapshots/verify.groovy | 20 ----- src/it/changes-check-valid/invoker.properties | 18 ---- src/it/changes-check-valid/pom.xml | 39 --------- src/it/changes-check-valid/src/changes/changes.xml | 29 ------- src/it/changes-check-valid/verify.groovy | 22 ----- .../invoker.properties | 19 ----- src/it/changes-validate-invalid-fails/pom.xml | 39 --------- .../src/changes/changes.xml | 27 ------ .../changes-validate-invalid-fails/verify.groovy | 21 ----- .../invoker.properties | 18 ---- src/it/changes-validate-invalid-warns/pom.xml | 37 -------- .../src/changes/changes.xml | 27 ------ .../changes-validate-invalid-warns/verify.groovy | 22 ----- .../pom.xml | 97 --------------------- .../src/changes/changes.xml | 53 ------------ .../verify.groovy | 33 -------- 32 files changed, 1039 deletions(-) diff --git a/src/it/announcement-generate-custom-template/invoker.properties b/src/it/announcement-generate-custom-template/invoker.properties deleted file mode 100644 index eb31b9e..0000000 --- a/src/it/announcement-generate-custom-template/invoker.properties +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF 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. - -invoker.goals = changes:changes-validate changes:announcement-generate \ No newline at end of file diff --git a/src/it/announcement-generate-custom-template/pom.xml b/src/it/announcement-generate-custom-template/pom.xml deleted file mode 100644 index e4c8f09..0000000 --- a/src/it/announcement-generate-custom-template/pom.xml +++ /dev/null @@ -1,98 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> - -<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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin-test</artifactId> - <version>1.1</version> - <name>Maven</name> - <packaging>jar</packaging> - <description>Test Announcement Custom template</description> - <url>http://maven.apache.org/plugins/maven-changes-plugin/</url> - <dependencies> - </dependencies> - <issueManagement> - <system>jira</system> - <url>http://localhost</url> - </issueManagement> - <properties> - <changesPluginVersion>@project.version@</changesPluginVersion> - </properties> - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - <version>${changesPluginVersion}</version> - <configuration> - <failOnError>true</failOnError> - </configuration> - </plugin> - </plugins> - </pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - <version>${changesPluginVersion}</version> - <executions> - <execution> - <id>validate-changes</id> - <phase>validate</phase> - <goals> - <goal>changes-validate</goal> - </goals> - <configuration> - <failOnError>true</failOnError> - </configuration> - </execution> - </executions> - <configuration> - <template>test-announce.vm</template> - <templateDirectory>template-directory</templateDirectory> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - <version>@version.maven-site-plugin@</version> - </plugin> - </plugins> - </build> - <reporting> - <excludeDefaults>true</excludeDefaults> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - <version>${changesPluginVersion}</version> - <configuration> - <template>test-announce.vm</template> - <templateDirectory>template-directory</templateDirectory> - </configuration> - </plugin> - </plugins> - </reporting> - -</project> diff --git a/src/it/announcement-generate-custom-template/src/changes/changes.xml b/src/it/announcement-generate-custom-template/src/changes/changes.xml deleted file mode 100644 index 0456ab9..0000000 --- a/src/it/announcement-generate-custom-template/src/changes/changes.xml +++ /dev/null @@ -1,49 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF 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. ---> - -<document xmlns="http://maven.apache.org/changes/2.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/changes/2.0.0 http://maven.apache.org/xsd/changes-2.0.0.xsd"> - <properties> - <title>Changes report Project</title> - <author email="[email protected]">Mr Zloug</author> - </properties> - <body> - <release version="1.1" date="2005-03-01" description="Subsequent release"> - <action dev="me" type="add"> - Added additional documentation on how to configure the plugin. - </action> - <action dev="me" type="fix" issue="MCHANGES-88"> - Enable retrieving component-specific issues. - </action> - <action dev="jruiz" type="remove" due-to="others" due-to-email="[email protected]"> - The element type " link " must be terminated by the matching end-tag. - Deleted the erroneous code. - </action> - </release> - - <release version="1.0" date="2005-01-01" description="First release"> - <action dev="me" type="update" issue="MCHANGES-47" - due-to="others,John Doe,John Doe" due-to-email="[email protected],[email protected]" - fixed-issues="MCHANGES-88,JIRA-YYY"> - Uploaded documentation on how to use the plugin. - </action> - </release> - </body> -</document> \ No newline at end of file diff --git a/src/it/announcement-generate-custom-template/template-directory/test-announce.vm b/src/it/announcement-generate-custom-template/template-directory/test-announce.vm deleted file mode 100644 index f692651..0000000 --- a/src/it/announcement-generate-custom-template/template-directory/test-announce.vm +++ /dev/null @@ -1,20 +0,0 @@ -## Licensed to the Apache Software Foundation (ASF) under one -## or more contributor license agreements. See the NOTICE file -## distributed with this work for additional information -## regarding copyright ownership. The ASF 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. -The ${developmentTeam} is pleased to announce the ${finalName} release! - -${introduction} - diff --git a/src/it/announcement-generate-custom-template/verify.groovy b/src/it/announcement-generate-custom-template/verify.groovy deleted file mode 100644 index dfd8828..0000000 --- a/src/it/announcement-generate-custom-template/verify.groovy +++ /dev/null @@ -1,32 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF 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. - */ - -import java.nio.file.* - -File report = new File(basedir, "target/announcement/test-announce.vm") -assert report.exists() : "report file is missing." -assert !report.isDirectory() : "report file is a directory." -String reportContent = new String(Files.readAllBytes( report.toPath() ), "UTF-8") - -assert reportContent.contains( "maven-changes-plugin-test-1.1 release" ) : "test-announce.vm doesn't contain 'maven-changes-plugin-test-1.1 release'" - -assert reportContent.contains( "Test Announcement Custom template" ) : "Test Announcement Custom template" - -assert !reportContent.contains( '$date.systemDate' ) : '$date.systemDate not resolved' diff --git a/src/it/changes-check-invalid-date/invoker.properties b/src/it/changes-check-invalid-date/invoker.properties deleted file mode 100644 index 82cbd5a..0000000 --- a/src/it/changes-check-invalid-date/invoker.properties +++ /dev/null @@ -1,19 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF 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. - -invoker.buildResult = failure -invoker.goals = changes:changes-check diff --git a/src/it/changes-check-invalid-date/pom.xml b/src/it/changes-check-invalid-date/pom.xml deleted file mode 100644 index aa9e169..0000000 --- a/src/it/changes-check-invalid-date/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> -<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>org.apache.maven.plugins.changes.it</groupId> - <artifactId>changes-check-invalid-date</artifactId> - <version>1.0</version> - - <build> - <plugins> - <plugin> - <groupId>@project.groupId@</groupId> - <artifactId>@project.artifactId@</artifactId> - <version>@project.version@</version> - - </plugin> - </plugins> - </build> -</project> diff --git a/src/it/changes-check-invalid-date/src/changes/changes.xml b/src/it/changes-check-invalid-date/src/changes/changes.xml deleted file mode 100644 index 2cde7cc..0000000 --- a/src/it/changes-check-invalid-date/src/changes/changes.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> - -<document xmlns="http://maven.apache.org/changes/2.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/changes/2.0.0 http://maven.apache.org/xsd/changes-2.0.0.xsd"> - <body> - <release version="1.0" date="pending" description="Release"> - <action dev="me" type="add">Something new.</action> - </release> - </body> -</document> diff --git a/src/it/changes-check-invalid-date/verify.groovy b/src/it/changes-check-invalid-date/verify.groovy deleted file mode 100644 index ebd9c16..0000000 --- a/src/it/changes-check-invalid-date/verify.groovy +++ /dev/null @@ -1,22 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF 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. - */ -String log = new File(basedir, "build.log").text -assert log.contains("has an invalid release date.") -assert log =~ /changes.xml has an invalid release date/ diff --git a/src/it/changes-check-relative-xmlpath/custom/my-changes.xml b/src/it/changes-check-relative-xmlpath/custom/my-changes.xml deleted file mode 100644 index e138850..0000000 --- a/src/it/changes-check-relative-xmlpath/custom/my-changes.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> - -<document xmlns="http://maven.apache.org/changes/2.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/changes/2.0.0 http://maven.apache.org/xsd/changes-2.0.0.xsd"> - <body> - <release version="1.0" date="2025-01-31" description="Release"> - <action dev="me" type="add">Something new.</action> - </release> - </body> -</document> diff --git a/src/it/changes-check-relative-xmlpath/invoker.properties b/src/it/changes-check-relative-xmlpath/invoker.properties deleted file mode 100644 index 2ddd809..0000000 --- a/src/it/changes-check-relative-xmlpath/invoker.properties +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF 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. - -invoker.goals = changes:changes-check diff --git a/src/it/changes-check-relative-xmlpath/pom.xml b/src/it/changes-check-relative-xmlpath/pom.xml deleted file mode 100644 index 6ec0ce6..0000000 --- a/src/it/changes-check-relative-xmlpath/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> -<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>org.apache.maven.plugins.changes.it</groupId> - <artifactId>changes-check-relative-xmlpath</artifactId> - <version>1.0</version> - - <build> - <plugins> - <plugin> - <groupId>@project.groupId@</groupId> - <artifactId>@project.artifactId@</artifactId> - <version>@project.version@</version> - <configuration> - <xmlPath>custom/my-changes.xml</xmlPath> - </configuration> - </plugin> - </plugins> - </build> -</project> diff --git a/src/it/changes-check-relative-xmlpath/verify.groovy b/src/it/changes-check-relative-xmlpath/verify.groovy deleted file mode 100644 index 7db3881..0000000 --- a/src/it/changes-check-relative-xmlpath/verify.groovy +++ /dev/null @@ -1,22 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF 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. - */ -String log = new File(basedir, "build.log").text -assert !log.contains("does not exist") -assert !log.contains("invalid release date") diff --git a/src/it/changes-check-skip-snapshots/invoker.properties b/src/it/changes-check-skip-snapshots/invoker.properties deleted file mode 100644 index 2ddd809..0000000 --- a/src/it/changes-check-skip-snapshots/invoker.properties +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF 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. - -invoker.goals = changes:changes-check diff --git a/src/it/changes-check-skip-snapshots/pom.xml b/src/it/changes-check-skip-snapshots/pom.xml deleted file mode 100644 index e4b18bb..0000000 --- a/src/it/changes-check-skip-snapshots/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> -<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>org.apache.maven.plugins.changes.it</groupId> - <artifactId>changes-check-skip-snapshots</artifactId> - <version>1.0-SNAPSHOT</version> - - <build> - <plugins> - <plugin> - <groupId>@project.groupId@</groupId> - <artifactId>@project.artifactId@</artifactId> - <version>@project.version@</version> - <configuration> - <skipSnapshots>true</skipSnapshots> - </configuration> - </plugin> - </plugins> - </build> -</project> diff --git a/src/it/changes-check-skip-snapshots/src/changes/changes.xml b/src/it/changes-check-skip-snapshots/src/changes/changes.xml deleted file mode 100644 index 5b570bf..0000000 --- a/src/it/changes-check-skip-snapshots/src/changes/changes.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> - -<document xmlns="http://maven.apache.org/changes/2.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/changes/2.0.0 http://maven.apache.org/xsd/changes-2.0.0.xsd"> - <body> - <release version="1.0-SNAPSHOT" date="pending" description="Release"> - <action dev="me" type="add">Something new.</action> - </release> - </body> -</document> diff --git a/src/it/changes-check-skip-snapshots/verify.groovy b/src/it/changes-check-skip-snapshots/verify.groovy deleted file mode 100644 index fb316ee..0000000 --- a/src/it/changes-check-skip-snapshots/verify.groovy +++ /dev/null @@ -1,20 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF 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. - */ -assert new File(basedir, "build.log").text.contains("Skipping snapshot version '1.0-SNAPSHOT'.") diff --git a/src/it/changes-check-valid/invoker.properties b/src/it/changes-check-valid/invoker.properties deleted file mode 100644 index 2ddd809..0000000 --- a/src/it/changes-check-valid/invoker.properties +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF 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. - -invoker.goals = changes:changes-check diff --git a/src/it/changes-check-valid/pom.xml b/src/it/changes-check-valid/pom.xml deleted file mode 100644 index 9de9174..0000000 --- a/src/it/changes-check-valid/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> -<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>org.apache.maven.plugins.changes.it</groupId> - <artifactId>changes-check-valid</artifactId> - <version>1.0</version> - - <build> - <plugins> - <plugin> - <groupId>@project.groupId@</groupId> - <artifactId>@project.artifactId@</artifactId> - <version>@project.version@</version> - <configuration> - <skipSnapshots>false</skipSnapshots> - </configuration> - </plugin> - </plugins> - </build> -</project> diff --git a/src/it/changes-check-valid/src/changes/changes.xml b/src/it/changes-check-valid/src/changes/changes.xml deleted file mode 100644 index e138850..0000000 --- a/src/it/changes-check-valid/src/changes/changes.xml +++ /dev/null @@ -1,29 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> - -<document xmlns="http://maven.apache.org/changes/2.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/changes/2.0.0 http://maven.apache.org/xsd/changes-2.0.0.xsd"> - <body> - <release version="1.0" date="2025-01-31" description="Release"> - <action dev="me" type="add">Something new.</action> - </release> - </body> -</document> diff --git a/src/it/changes-check-valid/verify.groovy b/src/it/changes-check-valid/verify.groovy deleted file mode 100644 index 26ce058..0000000 --- a/src/it/changes-check-valid/verify.groovy +++ /dev/null @@ -1,22 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF 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. - */ -String log = new File(basedir, "build.log").text -assert !log.contains("invalid release date") -assert !log.contains("does not exist") diff --git a/src/it/changes-validate-invalid-fails/invoker.properties b/src/it/changes-validate-invalid-fails/invoker.properties deleted file mode 100644 index fcd1c55..0000000 --- a/src/it/changes-validate-invalid-fails/invoker.properties +++ /dev/null @@ -1,19 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF 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. - -invoker.buildResult = failure -invoker.goals = changes:changes-validate diff --git a/src/it/changes-validate-invalid-fails/pom.xml b/src/it/changes-validate-invalid-fails/pom.xml deleted file mode 100644 index 9468b46..0000000 --- a/src/it/changes-validate-invalid-fails/pom.xml +++ /dev/null @@ -1,39 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> -<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>org.apache.maven.plugins.changes.it</groupId> - <artifactId>changes-validate-invalid-fails</artifactId> - <version>1.0</version> - - <build> - <plugins> - <plugin> - <groupId>@project.groupId@</groupId> - <artifactId>@project.artifactId@</artifactId> - <version>@project.version@</version> - <configuration> - <failOnError>true</failOnError> - </configuration> - </plugin> - </plugins> - </build> -</project> diff --git a/src/it/changes-validate-invalid-fails/src/changes/changes.xml b/src/it/changes-validate-invalid-fails/src/changes/changes.xml deleted file mode 100644 index d9ead51..0000000 --- a/src/it/changes-validate-invalid-fails/src/changes/changes.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> - -<document xmlns="http://maven.apache.org/changes/2.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/changes/2.0.0 http://maven.apache.org/xsd/changes-2.0.0.xsd"> - <properties> - <atitle>Changes report Project</atitle> - </properties> -</document> diff --git a/src/it/changes-validate-invalid-fails/verify.groovy b/src/it/changes-validate-invalid-fails/verify.groovy deleted file mode 100644 index edd4448..0000000 --- a/src/it/changes-validate-invalid-fails/verify.groovy +++ /dev/null @@ -1,21 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF 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. - */ -String log = new File(basedir, "build.log").text -assert log =~ /changes.xml file is not valid: .*changes.xml: SAXException/ diff --git a/src/it/changes-validate-invalid-warns/invoker.properties b/src/it/changes-validate-invalid-warns/invoker.properties deleted file mode 100644 index 43290a0..0000000 --- a/src/it/changes-validate-invalid-warns/invoker.properties +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF 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. - -invoker.goals = changes:changes-validate diff --git a/src/it/changes-validate-invalid-warns/pom.xml b/src/it/changes-validate-invalid-warns/pom.xml deleted file mode 100644 index 77f2cfc..0000000 --- a/src/it/changes-validate-invalid-warns/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> -<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>org.apache.maven.plugins.changes.it</groupId> - <artifactId>changes-validate-invalid-warns</artifactId> - <version>1.0</version> - - <build> - <plugins> - <plugin> - <groupId>@project.groupId@</groupId> - <artifactId>@project.artifactId@</artifactId> - <version>@project.version@</version> - - </plugin> - </plugins> - </build> -</project> diff --git a/src/it/changes-validate-invalid-warns/src/changes/changes.xml b/src/it/changes-validate-invalid-warns/src/changes/changes.xml deleted file mode 100644 index d9ead51..0000000 --- a/src/it/changes-validate-invalid-warns/src/changes/changes.xml +++ /dev/null @@ -1,27 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> - -<document xmlns="http://maven.apache.org/changes/2.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/changes/2.0.0 http://maven.apache.org/xsd/changes-2.0.0.xsd"> - <properties> - <atitle>Changes report Project</atitle> - </properties> -</document> diff --git a/src/it/changes-validate-invalid-warns/verify.groovy b/src/it/changes-validate-invalid-warns/verify.groovy deleted file mode 100644 index 2b4e247..0000000 --- a/src/it/changes-validate-invalid-warns/verify.groovy +++ /dev/null @@ -1,22 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF 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. - */ -String log = new File(basedir, "build.log").text -assert log.contains("validation errors:") -assert log.contains("skip previous validation errors due to failOnError=false.") diff --git a/src/it/report-changes-system-noissuemanagement/pom.xml b/src/it/report-changes-system-noissuemanagement/pom.xml deleted file mode 100644 index 14644dc..0000000 --- a/src/it/report-changes-system-noissuemanagement/pom.xml +++ /dev/null @@ -1,97 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - Licensed to the Apache Software Foundation (ASF) under one - or more contributor license agreements. See the NOTICE file - distributed with this work for additional information - regarding copyright ownership. The ASF 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. ---> - -<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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin-test</artifactId> - <version>99.0</version> - <name>Maven</name> - <packaging>jar</packaging> - <description>Test report without issueManagement entry.</description> - <dependencies> - </dependencies> - <properties> - <changesPluginVersion>@project.version@</changesPluginVersion> - </properties> - <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - <version>${changesPluginVersion}</version> - </plugin> - </plugins> - </pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - <version>${changesPluginVersion}</version> - <executions> - <execution> - <id>validate-changes</id> - <phase>pre-site</phase> - <goals> - <goal>changes-validate</goal> - </goals> - <configuration> - <failOnError>true</failOnError> - </configuration> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-site-plugin</artifactId> - <version>@version.maven-site-plugin@</version> - </plugin> - </plugins> - </build> - <reporting> - <excludeDefaults>true</excludeDefaults> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-changes-plugin</artifactId> - <version>@project.version@</version> - <configuration> - <issueLinkTemplatePerSystem> - <default>http://myjira/browse/%ISSUE%</default> - <qc>http://localhost/%ISSUE%</qc> - <redmine>http://www.redmine.org/show/issue/%ISSUE%</redmine> - </issueLinkTemplatePerSystem> - <addActionDate>true</addActionDate> - </configuration> - <reportSets> - <reportSet> - <reports> - <report>changes</report> - </reports> - </reportSet> - </reportSets> - </plugin> - </plugins> - </reporting> - -</project> diff --git a/src/it/report-changes-system-noissuemanagement/src/changes/changes.xml b/src/it/report-changes-system-noissuemanagement/src/changes/changes.xml deleted file mode 100644 index 32e2eff..0000000 --- a/src/it/report-changes-system-noissuemanagement/src/changes/changes.xml +++ /dev/null @@ -1,53 +0,0 @@ -<!-- -Licensed to the Apache Software Foundation (ASF) under one -or more contributor license agreements. See the NOTICE file -distributed with this work for additional information -regarding copyright ownership. The ASF 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. ---> - -<document xmlns="http://maven.apache.org/changes/2.0.0" - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/changes/2.0.0 http://maven.apache.org/xsd/changes-2.0.0.xsd"> - <properties> - <title>Changes report Project</title> - <author email="[email protected]">Mr Zloug</author> - </properties> - <body> - <release version="1.1" date="2005-03-01" description="Subsequent release"> - <action dev="me" type="add"> - Added additional documentation on how to configure the plugin. - </action> - <action dev="me" type="fix" issue="MCHANGES-88"> - Enable retrieving component-specific issues. - </action> - <action dev="me" type="fix" issue="1212" system="qc"> - Enable retrieving component-specific issues. - </action> - <action dev="TheOneAndOnly" type="update" issue="88" system="redmine"> - Updated library dependency. - </action> - <action dev="jruiz" type="remove" due-to="others" due-to-email="[email protected]"> - The element type " link " must be terminated by the matching end-tag. - Deleted the erroneous code. - </action> - </release> - - <release version="1.0" date="2005-01-01" description="First release"> - <action dev="me" type="update" date="2008-01-01"> - Uploaded documentation on how to use the plugin. - </action> - </release> - </body> -</document> diff --git a/src/it/report-changes-system-noissuemanagement/verify.groovy b/src/it/report-changes-system-noissuemanagement/verify.groovy deleted file mode 100644 index 9788784..0000000 --- a/src/it/report-changes-system-noissuemanagement/verify.groovy +++ /dev/null @@ -1,33 +0,0 @@ - -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF 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. - */ - -import java.nio.file.* - -File report = new File(basedir, "target/site/changes.html") -assert report.exists() : "report file is missing." -assert !report.isDirectory() : "report file is a directory." -String reportContent = new String(Files.readAllBytes( report.toPath() ), "UTF-8") - -assert reportContent.contains( "Changes" ) : "changes.html doesn't contain Changes title" - -assert reportContent.contains( "href=\"http://myjira/browse/MCHANGES-88\"" ) : "changes.html doesn't contain jira issue link" -assert reportContent.contains( "href=\"http://localhost/1212\"" ) : "changes.html doesn't contain qc issue link" -assert reportContent.contains( "href=\"http://www.redmine.org/show/issue/88\"" ) : "changes.html doesn't contain redmine issue link" -assert reportContent.contains( "2008-01-01" ) : "changes.html doesn't contain date 2008-01-01"
