i think this requires java 1.5

template.htm must be in the same dir as the jar, run like this:

java -jar MakeSniplets.jar [sniplets dir] [output dir] [extension of files to sniplet]

ex: 

java -jar MakeSniplets.jar "D:\Programming\WebsiteUtils" "D:\web design\java_sniplets_out" java

will make sniplets of all java files in D:\Programming\WebsiteUtils (the search for files is recursive)


template.htm has two tokens which are replaced:
%FILENAME% is replaced by the filename of the file being made a sniplet
%BODY% is replaced by the file's body

you may use these tokens as many times as you want in template.htm



i am including template.htm which i made for my site to work with .java sniplets, you might want to
modify template.htm before running this.


for source and other goodies visit my site www.DoesThatEvenCompile.com