diff options
author | wisberg <wisberg> | 2003-11-26 02:13:25 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-11-26 02:13:25 +0000 |
commit | 9d33c1e59f81762293e3014012183a59fe479775 (patch) | |
tree | 5713a3f5a22bafb711dcff8f2a49a92434890958 /build | |
parent | 6129ba36143d3a6b7d41982be8c79e35478a5ea6 (diff) | |
download | aspectj-9d33c1e59f81762293e3014012183a59fe479775.tar.gz aspectj-9d33c1e59f81762293e3014012183a59fe479775.zip |
added date to output
Diffstat (limited to 'build')
-rw-r--r-- | build/src/org/aspectj/internal/tools/build/SampleGatherer.java | 10 |
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>"); |