I think you are envisioning that the /docs/demos directory would contain a 
bunch of HTML pages that allow users to run the demos. We don't currently have 
that - most of the demos are hosted on the Wiki, but some must be run from the 
command line because they require some back-end stuff that we can't support on 
the Wiki.

It would be nice if we could support something like this eventually, but it 
might be better to package up a WAR file containing all the demos and 
associated server-side requirements.
 
On Thursday, April 02, 2009, at 08:59AM, "Christopher Brind" 
<[email protected]> wrote:
>Thanks for the info.  I'm on Mac, so I'll see if I can work out how to do
>that.  These things are usually straight forward enough.
>
>How about having the demos as part of the 'docs' target and change the docs
>structure (unless that is something prescribed by Apache?), e.g.:
>
>docs/index.html (simple page with links to the Javadocs and each of the
>demos)
>docs/javadocs/*
>docs/demos/*
>
>Cheers,
>Chris
>
>
>
>2009/4/2 Todd Volkert <[email protected]>
>
>> > Downloaded the src.gz and checked the md5, result OK.  (Don't know how to
>> > check the ASC or SHA, but I can do if someone gives me some guidence, is
>> > there a tutorial I can follow?)
>>
>> If you're on Linux, you can run:
>>
>> $ gpg --verify foo-1.0.tar.gz.asc foo-1.0.tar.gz
>> $ sha1sum foo-1.0.tar.gz
>>
>> I don't know what the procedure is on the Mac or Linux.
>>
>> > Followed instructions in BUILD, which appears to work OK except that the
>> md5
>> > for the generated src.gz is different from the one I downloaded.
>>
>> That's because each JAR is timestamped, which yields a *slightly*
>> different JAR, and hence a different checksum.
>>
>> > I also notice the if you run the install target and then re-run the dist
>> > target, you get a different md5 for the src.gz every time you do 'ant
>> > install' followed by 'ant dist'.  I don't know if this is a problem but
>> it
>> > looks as though the dist target picks up stuff left over from the install
>> > target, or else something is changing.
>>
>> Yeah, again, it's the timestamps in the JAR files that are changing.
>>
>> > I would have thought the first thing
>> > dist should do is 'clean' everything down to a known state?
>>
>> install cleans first since it produces the binaries.  dist doesn't
>> need to, since it just bundles up the source.
>>
>> > Also, is there a quick way to run the demos after a binary build?  I know
>> > they are on the web, but it would be a good sanity check for users to
>> prove
>> > that what they just downloaded / checked out works OK as well as
>> compiles.
>> > I couldn't find any HTML wrappers for the demos and I also noted that
>> > non-java resources in the source folder weren't copied in to the ant-bin
>> > folder.    I think it would be good to have a HTML wrapper for each demo.
>>
>> Yeah this could be useful.  Currently, the deploy target
>> (undocumented) puts all JAR files in a deploy directory and a few demo
>> html files, but maybe we should promote this to a documented target
>> and create html pages for all demos.
>>
>

Reply via email to