[Red5] Getting tests working

Steven Elliott steven.s.elliott at gmail.com
Fri Dec 23 15:53:51 EST 2005


On 12/22/05 17:47, "Dominick Accattato" <daccattato at gmail.com> wrote:

> Not sure about the Spring filter.  Also, are you referring to the fact that
> there is conditional logic located in the handler to check for . (dot) files?

I was hoping there would be a way to do this in the GenericRed5Context
by providing PathMatchingResourcePatternResolver with an Ant path excluding
(dot) files.  Looking into it further apparently this is not possible.  For
instance in a  build.xml you can declare Ant <excludes> globally (not to
mention that Ant comes default configured to ignore a large set of file
types including .cvs and .svn).  I don't see any way to do this with
Spring's AntPathMatcher.  As you suggest the best/only solution seems to be
the current implementation.

> DemoService.java is in org.red5.server.example.  Is your suggestion to move
> them to org.red5.server.sample?  or to move them to an example src folder and
> include in the classpath?

Initially I was thinking they should be in:
    org.red5.examples.yourExample

For instance I have moved both EchoService and IEchoService from the
org.red5.server.service directory to org.red5.examples.echoService and
recompiled.  I then added hosts/__default__/examples where I stuck a copy of
echoService.js and rewrote the app.xml to point to the above class.

DemoService could be relocated/refactored as well with no change in
classpath at least that I can tell?  The only alterations to the .java files
was to modify the package.

IMHO this cleanly separates example code from test code and provides a means
to factor out the example code from the server code when a jar needs to be
released.

Steven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2131 bytes
Desc: not available
Url : http://osflash.org/pipermail/red5_osflash.org/attachments/20051223/63bafa36/smime-0001.bin


More information about the Red5 mailing list