summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build/src/org/aspectj/internal/tools/build/SampleGatherer.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/src/org/aspectj/internal/tools/build/SampleGatherer.java b/build/src/org/aspectj/internal/tools/build/SampleGatherer.java
index 6a4017422..ea198d968 100644
--- a/build/src/org/aspectj/internal/tools/build/SampleGatherer.java
+++ b/build/src/org/aspectj/internal/tools/build/SampleGatherer.java
@@ -20,6 +20,7 @@
package org.aspectj.internal.tools.build;
import java.io.*;
+import java.text.DateFormat;
import java.util.*;
/**
@@ -69,6 +70,11 @@ public class SampleGatherer {
* @throws IOException if unable to read a source file
*/
public static void main(String[] args) throws IOException {
+ if ((null == args) || (0 == args.length)) {
+ String cname = SampleGatherer.class.getName();
+ System.err.println("java " + cname + " [dir|file]");
+ return;
+ }
Samples result = new Samples();
for (int i = 0; i < args.length; i++) {
result = gather(new File(args[i]), result);
@@ -651,6 +657,10 @@ class HTMLSamplesRenderer extends SamplesRenderer {
sink.append(EOL);
sink.append(COPYRIGHT);
sink.append(EOL);
+ sink.append("<p><small>Generated on ");
+ sink.append(DateFormat.getDateInstance().format(new Date()));
+ sink.append(" by SamplesGatherer</small>");
+ sink.append(EOL);
sink.append(" <h2>Contents</h2>");
sink.append(EOL);
sink.append(" <ul>");