Skip to content

Commit 70110d1

Browse files
author
Katia Aresti
committed
Fix versions
1 parent b957748 commit 70110d1

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

docs-maven-plugin/pom.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<relativePath>../../pom.xml</relativePath>
8+
<version>16.2.0-SNAPSHOT</version>
9+
<groupId>org.infinispan.tutorial.simple</groupId>
10+
<artifactId>infinispan-simple-tutorials</artifactId>
11+
</parent>
612

713
<groupId>org.infinispan.tutorial.simple</groupId>
814
<artifactId>docs-maven-plugin</artifactId>
9-
<version>16.1.3</version>
15+
<version>16.2.0-SNAPSHOT</version>
1016
<packaging>jar</packaging>
1117

1218
<properties>

docs-maven-plugin/src/main/java/org/infinispan/tutorial/docs/GuideMetadataGenerator.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,13 @@ public static void main(String[] args) throws Exception {
5151
public void generate() throws IOException {
5252
List<Map<String, Object>> guides = new ArrayList<>();
5353
Path guidesOutputDir = outputDir.resolve("guides");
54+
if (Files.exists(guidesOutputDir)) {
55+
try (Stream<Path> files = Files.list(guidesOutputDir)) {
56+
files.forEach(f -> {
57+
try { Files.delete(f); } catch (IOException ignored) {}
58+
});
59+
}
60+
}
5461
Files.createDirectories(guidesOutputDir);
5562

5663
Options options = Options.builder()

0 commit comments

Comments
 (0)