File tree Expand file tree Collapse file tree
src/main/java/org/infinispan/tutorial/docs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff 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 ()
You can’t perform that action at this time.
0 commit comments