Bug 562908 - Populate the JustJ Git clones with initial content
Print the location of the generated jdeps index.
diff --git a/plugins/org.eclipse.justj.codegen/src/org/eclipse/justj/codegen/model/util/JdepsIndex.java b/plugins/org.eclipse.justj.codegen/src/org/eclipse/justj/codegen/model/util/JdepsIndex.java
index 1a28aa9..102488a 100644
--- a/plugins/org.eclipse.justj.codegen/src/org/eclipse/justj/codegen/model/util/JdepsIndex.java
+++ b/plugins/org.eclipse.justj.codegen/src/org/eclipse/justj/codegen/model/util/JdepsIndex.java
@@ -64,7 +64,9 @@
Path folder = Paths.get(args[1]);
JdepsIndex jdepsIndex = new JdepsIndex(folder);
String result = jdepsIndex.generate();
- Files.write(folder.resolve("index.html"), Collections.singleton(result));
+ Path index = folder.resolve("index.html");
+ System.out.println("Generated index: " + index);
+ Files.write(index, Collections.singleton(result));
Set<String> allModules = new TreeSet<String>();
for (Set<String> modules : jdepsIndex.modules.values())
{
@@ -103,7 +105,9 @@
JdepsIndex jdepsIndex = new JdepsIndex(jdepsFolder, repoURI);
String result = jdepsIndex.generate();
- Files.write(folder.resolve("index.html"), Collections.singleton(result));
+ Path index = folder.resolve("index.html");
+ System.out.println("Generated index: " + index);
+ Files.write(index, Collections.singleton(result));
Files.write(folder.resolve("justj.modules"), jdepsIndex.modulePlugins.keySet());
}
}
diff --git a/plugins/org.eclipse.justj.codegen/src/org/eclipse/justj/codegen/templates/jdeps/JdepsIndex.java b/plugins/org.eclipse.justj.codegen/src/org/eclipse/justj/codegen/templates/jdeps/JdepsIndex.java
index 61ae307..16cc9fc 100644
--- a/plugins/org.eclipse.justj.codegen/src/org/eclipse/justj/codegen/templates/jdeps/JdepsIndex.java
+++ b/plugins/org.eclipse.justj.codegen/src/org/eclipse/justj/codegen/templates/jdeps/JdepsIndex.java
@@ -299,7 +299,9 @@
Path folder = Paths.get(args[1]);
JdepsIndex jdepsIndex = new JdepsIndex(folder);
String result = jdepsIndex.generate();
- Files.write(folder.resolve("index.html"), Collections.singleton(result));
+ Path index = folder.resolve("index.html");
+ System.out.println("Generated index: " + index);
+ Files.write(index, Collections.singleton(result));
Set<String> allModules = new TreeSet<String>();
for (Set<String> modules : jdepsIndex.modules.values())
{
@@ -338,7 +340,9 @@
JdepsIndex jdepsIndex = new JdepsIndex(jdepsFolder, repoURI);
String result = jdepsIndex.generate();
- Files.write(folder.resolve("index.html"), Collections.singleton(result));
+ Path index = folder.resolve("index.html");
+ System.out.println("Generated index: " + index);
+ Files.write(index, Collections.singleton(result));
Files.write(folder.resolve("justj.modules"), jdepsIndex.modulePlugins.keySet());
}
}