Quantcast
Channel: Ignite Realtime : Popular Discussions - Red5
Viewing all 2000 articles
Browse latest View live

Redfire 0.0.0.5 Release

$
0
0

Ignite realtime communiity is happy to release Redfire version 0.5 with Spark plugin version 0.8

 

Changelog
  • Fixed: Home page (index.html) page broken links due to last set of changes. Added missing publisher.swf tester appliccation
  • Fixed: Prompt for Redfire audio/video in Spark does get removed
  • Fixed: URL still shows when prompt is displayed in Spark
  • Fixed: Cursor position incorrect when x and y not zero in screenshare
  • Fixed: malformed URL error with "about:blank"
  • Changed: RTMP is now the default instead of RTMFP for 2way and conf audio/video. Edit redfire_2way.html ad redfire_video.html files to enable RTMFP. It is assumed you understand how RTMFP works and how to enable P2P on your network.
  • Changed: Maximium frame rate improved in screenshare and now exposed as a new parameter. Default is 30, but in practice, you would need a very fast PC and lots of bandwidth to share a full 1400x1050 in 30fps.
  • Changed: Video quality improved at expense of bandwidth. Edit redfire_2way.html ad redfire_video.html files to configure as required.  It is assumed you understand how Flash video works and the implications of changing quality, bandwidth and frame rate parameters.

 

How to use Redfire plugin for Spark

 

You can share audio/video in a chat or chat room (12 people max) by clicking on the red5 icon

Image5.png

 

You can share all or part or your desktop screen in a chat or chat room by clicking on the picture icon next to the red5 icon

Image7.png

 

How to upgrade your existing Redfire plugin for Spark,
  1. Quit Spark,
  2. Delete the redfire-plugin folder and redfire-plugin.jar file in your USER_HOME\Spark\plugins
  3. Download the new redfire-plugin.jar file from your Redfire home page
  4. Copy new redfire-plugin.jar to SPARK_HOME\plugins
  5. Restart Spark

 

Where can I download the plugin

For Openfire 3.6.4 and below http://redfire.googlecode.com/files/redfire-364-0.0.05.zip

For Openfire 3.7.0 and above http://redfire.googlecode.com/files/redfire-370-0.0.05.zip


Limited to 24 concurrent calls?

$
0
0

Openfire 3.8.2

Redfire 0.0.3.1

 

I have an embedded widget that makes use of the Flash (Red5+RTMP) method to place a SIP call to my VOIP Gateway. This works *very* well for anything up to 24 concurrent calls. Anything after caller number 25 gets an valid Openfire session, but no audio via the widget. The server is not experiencing any significant load, and should be able to handle far more than 25 concurrent calls.

 

It seems that Openfire accepts the XMPP but Redfire just doesn't play anything after 24 calls.

 

Anybody have any suggestions?

 

 

Devan

red5 and openfire relations

$
0
0

Hi,

 

I understand that red5 and openfire operates in parallel.

Two users can perform an XMPP IM session through openfire and in the same time

publish and recive video and audio streams from each other using red5.

 

I'm trying to understand how the integration is actually working.

Are the XMPP application and the A/V application can be considered completely separated?

Is the initial handshaking between the two users before the A/V is performed using XMPP?

 

What is the advantage of using both openfire and red5 over using only red5 with shared objects for the chat?

 

Thanks

Download link for the Red5 plugin for Openfire

Is the plugin: Redfire (red5) Supports video calls?

$
0
0

Hi, 

 

1.

I want to know if the plugin: Redfire (red5) Supports video calls?  If so then someone can share a picture of how it looks in Spark (or give a link?)

 

2.

I'm going to re-install the system, what are the recommendations for installation in terms of versions?

To the REDFIRE will work properly with users?

Redfire plugin for Spark ver 0.0.9

$
0
0

Ignite realtime communiity is happy to release the Redfire Spark plugin version 0.9

 

Changelog

 

  • Fixed: The screen sharing image does not scale down.  When you resize the window smaller, the image should re-scale.
  • Fixed: When the connection ends, the remote window should close
  • Changed: Screen share default frame-rate is set at 15fps
  • Changed: When a video or screen share request is recieved, the user's request buttons are disabled until pending request is accepted or rejected.

 

 

How to send a request to share video/audio or screen in chat or group chat

 

Start a normal chat or group chat

Share audio/video in chat or group chat (12 people max) by clicking on the red5 icon

Share all or part or your desktop screen in a chat or chat room by clicking on the picture icon next to the red5 icon

Image2.png

 

The other user(s) will receive a request to join audio/video or screenshare

 

Image1.png

Use the accept or decline buttons to accept or reject request. The red5 video and screen share buttons will be disabled until a choice is made.

 

 

How to upgrade your existing Redfire plugin for Spark,
  1. You should be using Redfire plugin for Openfire version 0.0.0.5 and above
  2. Quit Spark,
  3. Delete the redfire-plugin folder and redfire-plugin.jar file in your USER_HOME\Spark\plugins
  4. Download the new redfire-plugin.jar file from your Redfire home page
  5. Copy new redfire-plugin.jar to SPARK_HOME\plugins
  6. Restart Spark

 

Where can I download the plugin

 

Look for the file redfire-plugin.jar attached to this post.

A few questions: Red5 SparkWeb configuration / Fastpath

$
0
0

Hi everyone,

I have a difficulty configuring red5's sparkweb. It does not connect to my openfire server (though the standard sparkweb works fine). When I enter my userame, and click on login, the login button just becomes gray and nothing happens.

I am using red5 0.1.10 plugin and openfire 3.6.3.

 

Connection config of sparkweb:

   function jive_sparkweb_getConfig()
    {

        var username = getPageParameter('username', '');
        var password = getPageParameter('password', '');
        var autologin = getPageParameter('autologin', 'false');
        var webapp = getPageParameter('webapp', 'red5');
        var conn = getPageParameter('conn', 'socket');            // socket, http or rtmp (using xmppurl below)
        var tls = getPageParameter('tls', 'true');                // socket, use TLS or not

        return {

            httpLabel: "Ignite",
            httpURL: "http://www.igniterealtime.org",
            username: username,
            password: password,
            server: "regmac04.uwaterloo.ca",
            port: conn == "socket" ? 5222 : window.location.port,
            red5url: "rtmp:/sip",
            xmppurl: "rtmpt::8000/xmpp",
            webapp: webapp,
            connectionType: conn,
            connectionTLS: tls,
            policyFileURL: "xmlsocket://" + window.location.hostname + ":5222",
            webcamAvatar: "false",
            visualPresence: 120,
            historyChats: 2,
            autologin: "false"
        };
    }

 

I have port 7070 enabled in openfire... I tried to change the port to 7070 in the config for sparkweb (instead of 5222, as above), but it didn't work.

Please help me to figure out what could be wrong with my connection settings. I know there are simillar posts on the forum, but they did not really help me to figure out what should I do...

 

Any help would be appreciated! Thanks in advance!

 

Also, please tell me if red5's sparkweb will also allow me to work with fastpath through the web browser? I tried one red5 sparkweb client available on the internet to connect to my openfire server, but unfortunately it didn't really work with fastpath...

Red5, SIP Phone, Sparkweb

$
0
0

 

I would like to thank and congratulate dele for this contribution.

 

 

I've installed an asterisk system in my company and later on I added the openfire server, which opened some doors to missing functions we were expecting from our service. The goal here was to have a single application which would like just as skype, centralizing file transfers, chat, conferences and phone calls. Sometimes, however, our employees are in mission at companies whose networks block much of the traffic and that's where I think red5 would come in handy.

 

 

The idea is that we could connect to our jabber accounts through a web browser and have access to the company's phone line thanks to the sparkweb integration, all in a unified and good looking window. I guess many other people expect this same behaviour. The thing is, I can't get it to work so far.

 

 

1- when I access the red5 test page and fill in with my proxy settings, I can register to my SIP account and even make a call (internal and externally), but dtmf does not work, so it's kinda useless for voicemail retrieval or other things that require dialing some keys. The main problem, however, is that once I go to the sparkweb page (either by changing the url or by following the link) and login to my account, I get along with my contact list a window which states "SIP Phone Error - 401 Unauthorized". I also noted that my sip peers status on asterisk is Unreachable rather than ok and once I quit the browser, it is still the same for long after.

 

 

2 - When I enter sparkweb, why should I fill in the server information?? It looks a bit obvious to me that if we reach that url, the jabber server we're looking for is pretty obvious. My complaint is rather that I find it confusing the fact the it does not accept localhost as a value and I always need to enter my server's IP address.

 

 

3 - The flash application which is running on my browser window communicates with my jabber server through which ports? I wish all communication would go through standard http, even voice... is it possible? Where could I get some details about the connections' architecture??

 

 

4 - Am I doing something wrong or the button "exit sparkweb" does not work?

 

 

Thanks for your help and attention, please keep up this good work.

 

 


How to use red5phone

$
0
0

Dear friends,

I've managed to install redfire plugin on openfire 3.6.0.

Right now i want to use red5phone, but i do not understand the parameters such as : phone#, username, password, realm, server, red5 url.

How to fill those parameters? and what is Call Me button used for?

 

Best Regards

redfire rmtfp error

Redfire 0.0.0.5 Release

$
0
0

Ignite realtime communiity is happy to release Redfire version 0.5 with Spark plugin version 0.8

 

Changelog
  • Fixed: Home page (index.html) page broken links due to last set of changes. Added missing publisher.swf tester appliccation
  • Fixed: Prompt for Redfire audio/video in Spark does get removed
  • Fixed: URL still shows when prompt is displayed in Spark
  • Fixed: Cursor position incorrect when x and y not zero in screenshare
  • Fixed: malformed URL error with "about:blank"
  • Changed: RTMP is now the default instead of RTMFP for 2way and conf audio/video. Edit redfire_2way.html ad redfire_video.html files to enable RTMFP. It is assumed you understand how RTMFP works and how to enable P2P on your network.
  • Changed: Maximium frame rate improved in screenshare and now exposed as a new parameter. Default is 30, but in practice, you would need a very fast PC and lots of bandwidth to share a full 1400x1050 in 30fps.
  • Changed: Video quality improved at expense of bandwidth. Edit redfire_2way.html ad redfire_video.html files to configure as required.  It is assumed you understand how Flash video works and the implications of changing quality, bandwidth and frame rate parameters.

 

How to use Redfire plugin for Spark

 

You can share audio/video in a chat or chat room (12 people max) by clicking on the red5 icon

Image5.png

 

You can share all or part or your desktop screen in a chat or chat room by clicking on the picture icon next to the red5 icon

Image7.png

 

How to upgrade your existing Redfire plugin for Spark,
  1. Quit Spark,
  2. Delete the redfire-plugin folder and redfire-plugin.jar file in your USER_HOME\Spark\plugins
  3. Download the new redfire-plugin.jar file from your Redfire home page
  4. Copy new redfire-plugin.jar to SPARK_HOME\plugins
  5. Restart Spark

 

Where can I download the plugin

For Openfire 3.6.4 and below http://redfire.googlecode.com/files/redfire-364-0.0.05.zip

For Openfire 3.7.0 and above http://redfire.googlecode.com/files/redfire-370-0.0.05.zip

Red5 With Windows server 2003 Not working.

$
0
0

I have a Windows server 2003 running Open Fire 3.6.4 and Re5 0.1.02 .

 

Everything looks okay, but when i try to use Red5 with spark i get a blank page.

 

Flash is already installed.

 

I already test the Red5 on test page and it's okay.

 

I will Attach a image showing what red5 open when i try.

Red5 (redfire) plublic stream/broadcast/record interface

$
0
0

Hi,

 

i've built a public website with the native red5 control interface for recording (also saving to the server), live broadcasting or streaming your video content. If you like to visit the site i would appreciate your feedback on design, usability and functionallity. Note: it's still in BETA :-)

The site and the "how-to-use" guide are in german language, but you can use e.g. google translator or any other service for translation.

how to install red5 in openfire

$
0
0

I copied the redfire plugin. to the openfire\plugins. restarted the openfire server but i can't see red5 plugin in the plugins tab.

How to install on a Mac?

$
0
0

I have managed to get the Flash windows to launch, but without a mic, I can only see a grey window.  I have a mac here, but I need to know how to implement Red5 on a Mac Spark client.  Is this possible?


Redfire is still alive

$
0
0

A new version of  Redfire (0.0.3.0) has been posted on project site http://code.google.com/p/redfire/

 

It has three major changes

 

  • The Redfire plugin for Spark now uses the multicast DNS protocol to auto-discover the Redfire plugin for Openfire and obtain the server address and port number in order to load the web pages for the audio/video chat. I have not tested it properly, so please report any issues found.

 

  • Support for RTMFP has been added using Cumulus OpenRTMFP server. It is disabled by default as the binary for only Windows is provided. Linux users must download and build the binary from source and point the "cumulus.path" Openfire property at the binary file location. When enabled, all audio/video calls can be peer to peer using UDP instead of TCP and improving performance.

 

  • Red5Phone is now replaced with Redfire-Phono which a modified version of the Phono SDK from Voxeo. It is a Javascript library based on jQuery and Strophe that enables telephone calls to be made from a web browser. Redfire-Phono allows Jingle audio calls using the RTMP transport between any Redfire-Phono users as well as audio calls to any SIP address and external telephone numbers using a configured gateway with the SIP plugin for Openfire.

    Image2.jpg

 

I still do not have a 64-bit Windows PC, so all reported issues with redfire plugin for Spark on 64-bit PCs have not been fixed.

Video URL Incorrect

$
0
0

On the server side I'm using Openfire 3.8.2 with Redfire 0.0.3.2 on a Ubuntu 12.04 server.  For the client I'm using Spark 2.6.3 with the Redfire 0.0.9 plugin.  When I try to start a video chat session the url that is created is domain.com instead of server.domain.com.  I've already tried to configure red5.properties under c:\users\username\appdata\ with no luck.  Is there somewhere else to hardcode the url so is uses server.domain.com?  Thanks in advanced.

Incorret URL

$
0
0

Hi guys.

 

I have the openfire-3.8.1 with redfire installed in my server. When I click in the Redfire button in a chat window, its open a new window trying to connect in the server. But, the URL is incorrect.

 

My xmpp.domain is defined like my AD. And, my hostname of OF server is other name:

 

xmpp.domain = worknet.work (AD)

 

OF hostname = im.worknet.work

 

So, its try to connect: http://worknet.work:7070 and doesnt work.

 

Where I can change this to connect in the right url (server)? I changed the red5.properties but no effect.

 

Regards.

Problems building Red5 in Flex (Eclipse)

$
0
0

Hello!

 

I'm trying to compile red5 with Flex builder 3 (Eclipse)

 

 

 

 

 

My Red5 version is  0.6.2, my JRE version is 1.6.0, my jdk version is also 1.6.0 and my Apache ANT version is 1.7.0.

 

 

 

 

 

I'm trying to make my own Red5 plugin using the ApplicationAdapter class.

 

 

 

 

 

When I compile Red5 I get this output:

 

 

Buildfile: C:\Program Files\Red5\build.xml

     Problems building Red5 in Flex (Eclipse) java.home is C:\Program Files\Adobe\Flex Builder 3\jre and the target version is 1.5

clean:

   Problems building Red5 in Flex (Eclipse) Deleting directory C:\Program Files\Red5\bin

   Problems building Red5 in Flex (Eclipse) Deleting directory C:\Program Files\Red5\dist

prepare:

    Problems building Red5 in Flex (Eclipse) Created dir: C:\Program Files\Red5\bin

    Problems building Red5 in Flex (Eclipse) Created dir: C:\Program Files\Red5\dist

    Problems building Red5 in Flex (Eclipse) Created dir: C:\Program Files\Red5\bin\testcases

    Problems building Red5 in Flex (Eclipse) Created dir: C:\Program Files\Red5\bin\testcases\testreports

-java6.check:

-junit.check:

compile:

     Problems building Red5 in Flex (Eclipse) Javac version: 1.5

     Problems building Red5 in Flex (Eclipse) Compiler adapter name: modern

     Problems building Red5 in Flex (Eclipse) java.home is C:\Program Files\Adobe\Flex Builder 3\jre and the target version is 1.5

compile_core:

     Problems building Red5 in Flex (Eclipse) java.home is C:\Program Files\Adobe\Flex Builder 3\jre and the target version is 1.5

compile_core_compatibility:

    Problems building Red5 in Flex (Eclipse) Compiling 407 source files to C:\Program Files\Red5\bin

 

BUILD FAILED

C:\Program Files\Red5\build.xml:128: The following error occurred while executing this line:

C:\Program Files\Red5\build.xml:146: Error running javac.exe compiler

 

Total time: 4 seconds

 

 

 

 

 

And this error messages:

 

 

Severity and Description    Path    Resource    Location    Creation Time    Id

 

 

The project cannot be built until build path errors are resolved        cam_test1    Unknown    1209455550781    6690

Project 'cam_test1' is missing required library: 'WEB-INF/lib/test.jar'        cam_test1    Build path    1209393477656    6683

 

 

And this warnings:

 

 

 

Type safety: Unchecked cast from Set to Set<ObjectName>    RED5/src/org/red5/server/jmx    JMXAgent.java    line 168    1209378268140    6462

Type safety: Unchecked cast from Object to Map<String,Object>    RED5/src/org/red5/io/mock    Input.java    line 105    1209378269671    6576

Type safety: Unchecked cast from Object to Map<String,Object>    RED5/src/org/red5/io/object    RecordSet.java    line 113    1209378269546    6556

Type safety: Unchecked cast from Object to Map<String,Object>    RED5/src/org/red5/io/object    RecordSetPage.java    line 54    1209378269531    6554

Type safety: Unchecked cast from Object to Map<String,Object>    RED5/src/org/red5/server/script/rhino    RhinoScriptUtils.java    line 103    1209378266765    6304

Type safety: Unchecked cast from Object to Map<String,Object>    RED5/src/org/red5/server/so    ClientSharedObject.java    line 162    1209378266640    6240

Type safety: Unchecked cast from Object to Map<String,Object>    RED5/src/org/red5/server/so    ClientSharedObject.java    line 163    1209378266640    6241

Type safety: Unchecked cast from Object to Map<String,Object>    RED5/src/org/red5/server/so    SharedObject.java    line 690    1209378266609    6236

Type safety: Unchecked cast from Object to List<String>    RED5/src/org/red5/io/object    RecordSet.java    line 118    1209378269546    6558

Type safety: Unchecked cast from Object to List<List<Object>>    RED5/src/org/red5/io/object    RecordSet.java    line 115    1209378269546    6557

Type safety: Unchecked cast from Object to List<List<Object>>    RED5/src/org/red5/io/object    RecordSetPage.java    line 56    1209378269531    6555

Type safety: Unchecked cast from Object to Collection<Object>    RED5/src/org/red5/server/statistics    XmlRpcScopeStatistics.java    line 171    1209378266500    6228

Type safety: The method toArray(Object[]) belongs to the raw type Collection. References to generic type Collection<E> should be parameterized    RED5/src/org/red5/server/service    ConversionUtils.java    line 171    1209378266718    6283

Type safety: The method store(Object, Object) belongs to the raw type Cache. References to generic type Cache<K,V> should be parameterized    RED5/src/org/red5/server/cache    WhirlyCacheImpl.java    line 118    1209378268218    6473

Type safety: The method store(Object, Object) belongs to the raw type Cache. References to generic type Cache<K,V> should be parameterized    RED5/src/org/red5/server/cache    WhirlyCacheImpl.java    line 120    1209378268218    6474

Type safety: The method store(Object, Object) belongs to the raw type Cache. References to generic type Cache<K,V> should be parameterized    RED5/src/org/red5/server/cache    WhirlyCacheImpl.java    line 148    1209378268218    6475

Type safety: The method retrieve(Object) belongs to the raw type Cache. References to generic type Cache<K,V> should be parameterized    RED5/src/org/red5/server/cache    WhirlyCacheImpl.java    line 106    1209378268218    6472

Type safety: The method remove(Object) belongs to the raw type Cache. References to generic type Cache<K,V> should be parameterized    RED5/src/org/red5/server/cache    WhirlyCacheImpl.java    line 158    1209378268218    6476

Type safety: The method remove(Object) belongs to the raw type Cache. References to generic type Cache<K,V> should be parameterized    RED5/src/org/red5/server/cache    WhirlyCacheImpl.java    line 166    1209378268218    6477

Type safety: The method putAll(Map) belongs to the raw type HashMap. References to generic type HashMap<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaService.java    line 315    1209378269703    6592

Type safety: The method put(Object, Object) belongs to the raw type Map. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/server/net/rtmp    RTMPHandler.java    line 121    1209378267640    6381

Type safety: The method put(Object, Object) belongs to the raw type Map. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/server/net/rtmp    RTMPHandler.java    line 224    1209378267640    6383

Type safety: The method put(Object, Object) belongs to the raw type Map. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/server/net/rtmp    RTMPHandler.java    line 227    1209378267640    6384

Type safety: The method put(Object, Object) belongs to the raw type Map. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/server/stream    ClientBroadcastStream.java    line 426    1209378266468    6216

Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap<K,V> should be parameterized    RED5/src/org/red5/server    Shutdown.java    line 66    1209378269078    6514

Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap<K,V> should be parameterized    RED5/src/org/red5/server/jmx    JMXAgent.java    line 331    1209378268140    6465

Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap<K,V> should be parameterized    RED5/src/org/red5/server/jmx    JMXAgent.java    line 335    1209378268140    6466

Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap<K,V> should be parameterized    RED5/src/org/red5/server/jmx    JMXAgent.java    line 361    1209378268140    6468

Type safety: The method put(Object, Object) belongs to the raw type HashMap. References to generic type HashMap<K,V> should be parameterized    RED5/src/org/red5/server/jmx    JMXAgent.java    line 362    1209378268140    6469

Type safety: The method isAssignableFrom(Class) belongs to the raw type Class. References to generic type Class<T> should be parameterized    RED5/src/org/red5/server/service    ConversionUtils.java    line 121    1209378266718    6277

Type safety: The method isAssignableFrom(Class) belongs to the raw type Class. References to generic type Class<T> should be parameterized    RED5/src/org/red5/server/service    ConversionUtils.java    line 193    1209378266718    6286

Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized    RED5/src/org/red5/server/midi    SharedMidiObject.java    line 86    1209378267968    6414

Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized    RED5/src/org/red5/server/midi    SharedMidiObject.java    line 87    1209378267968    6415

Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized    RED5/src/org/red5/server/midi    SharedMidiObject.java    line 88    1209378267968    6416

Type safety: The method add(Object) belongs to the raw type HashSet. References to generic type HashSet<E> should be parameterized    RED5/src/org/red5/server/service    ConversionUtils.java    line 356    1209378266734    6300

Type safety: The method add(Object) belongs to the raw type ArrayList. References to generic type ArrayList<E> should be parameterized    RED5/src/org/red5/server/net/rtmp/codec    RTMPProtocolDecoder.java    line 718    1209378267500    6370

Type safety: The method add(Object) belongs to the raw type ArrayList. References to generic type ArrayList<E> should be parameterized    RED5/src/org/red5/server/net/rtmp/codec    RTMPProtocolDecoder.java    line 722    1209378267500    6371

Type safety: The method add(Object) belongs to the raw type ArrayList. References to generic type ArrayList<E> should be parameterized    RED5/src/org/red5/server/service    ConversionUtils.java    line 166    1209378266718    6282

Type safety: The method add(Object) belongs to the raw type ArrayList. References to generic type ArrayList<E> should be parameterized    RED5/src/org/red5/server/service    ConversionUtils.java    line 312    1209378266734    6293

Type safety: The method add(Object) belongs to the raw type ArrayList. References to generic type ArrayList<E> should be parameterized    RED5/src/org/red5/server/service    ServiceUtils.java    line 163    1209378266656    6258

Type safety: The expression of type Set needs unchecked conversion to conform to Set<String>    RED5/src/org/red5/server    Scope.java    line 739    1209378269187    6516

Type safety: The expression of type Set needs unchecked conversion to conform to Set<Cache>    RED5/src/org/red5/server/cache    EhCacheImpl.java    line 117    1209378268234    6480

Type safety: The expression of type Set needs unchecked conversion to conform to Collection<IClient>    RED5/src/org/red5/server    ClientRegistry.java    line 96    1209378269328    6529

Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>    RED5/src/org/red5/server/net/rtmp    RTMPHandler.java    line 230    1209378267640    6385

Type safety: The expression of type Map needs unchecked conversion to conform to Map<String,Object>    RED5/src/org/red5/server/net/rtmp    RTMPHandler.java    line 322    1209378267640    6386

Type safety: The expression of type List[http://] needs unchecked conversion to conform to List<SimpleBWControlService.TokenRequest>[|http://] needs unchecked conversion to conform to List<SimpleBWControlService.TokenRequest>[]    RED5/src/org/red5/server/stream    SimpleBWControlService.java    line 543    1209378266125    6202

Type safety: The expression of type Iterator needs unchecked conversion to conform to Iterator<String>    RED5/src/org/red5/server/cache    EhCacheImpl.java    line 161    1209378268234    6481

Type safety: The expression of type Iterator needs unchecked conversion to conform to Iterator<Map.Entry>    RED5/src/org/red5/server/statistics    XmlRpcScopeStatistics.java    line 164    1209378266500    6225

Type safety: The expression of type HashMap needs unchecked conversion to conform to Map<String,?>    RED5/src/org/red5/server    Shutdown.java    line 70    1209378269078    6515

Type safety: The expression of type HashMap needs unchecked conversion to conform to Map<String,?>    RED5/src/org/red5/server/jmx    JMXAgent.java    line 367    1209378268140    6470

ThreadLocal is a raw type. References to generic type ThreadLocal<T> should be parameterized    RED5/src/org/red5/server    DebugPooledByteBufferAllocator.java    line 65    1209378269281    6522

ThreadLocal is a raw type. References to generic type ThreadLocal<T> should be parameterized    RED5/src/org/red5/server    DebugPooledByteBufferAllocator.java    line 65    1209378269281    6523

The serializable class MainServlet does not declare a static final serialVersionUID field of type long    RED5/src/org/red5/server    MainServlet.java    line 50    1209378269234    6518

The serializable class ClientList does not declare a static final serialVersionUID field of type long    RED5/src/org/red5/server    ClientList.java    line 26    1209378269343    6530

The local variable writeDelta is never read    RED5/src/org/red5/server/stream    PlaylistSubscriberStream.java    line 1895    1209378266312    6206

The local variable consumer is never read    RED5/src/org/red5/server/stream    ClientBroadcastStream.java    line 463    1209378266468    6217

The import org.mortbay.jetty.webapp.WebAppContext is never used    RED5/src/org/red5/server    JettyLoader.java    line 32    1209378269250    6521

The field MetaService.fis is never read locally    RED5/src/org/red5/io/flv/meta    MetaService.java    line 56    1209378269703    6577

SoftReference is a raw type. References to generic type SoftReference<T> should be parameterized    RED5/src/org/red5/server/cache    CacheImpl.java    line 129    1209378268250    6482

SoftReference is a raw type. References to generic type SoftReference<T> should be parameterized    RED5/src/org/red5/server/cache    CacheImpl.java    line 191    1209378268250    6483

Set is a raw type. References to generic type Set<E> should be parameterized    RED5/src/org/red5/io/amf    Output.java    line 258    1209378269968    6654

Set is a raw type. References to generic type Set<E> should be parameterized    RED5/src/org/red5/io/amf3    Output.java    line 428    1209378269890    6638

Set is a raw type. References to generic type Set<E> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaData.java    line 192    1209378269718    6598

Set is a raw type. References to generic type Set<E> should be parameterized    RED5/src/org/red5/server    AttributeStore.java    line 298    1209378269390    6539

Set is a raw type. References to generic type Set<E> should be parameterized    RED5/src/org/red5/server    AttributeStore.java    line 299    1209378269390    6540

Set is a raw type. References to generic type Set<E> should be parameterized    RED5/src/org/red5/server/api    ICastingAttributeStore.java    line 104    1209378268921    6506

Set is a raw type. References to generic type Set<E> should be parameterized    RED5/src/org/red5/server/service    ConversionUtils.java    line 353    1209378266734    6297

Set is a raw type. References to generic type Set<E> should be parameterized    RED5/src/org/red5/server/so    ClientSharedObject.java    line 392    1209378266640    6248

Set is a raw type. References to generic type Set<E> should be parameterized    RED5/src/org/red5/server/so    ClientSharedObject.java    line 393    1209378266640    6249

MetaData is a raw type. References to generic type MetaData<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    IMetaService.java    line 77    1209378269734    6604

MetaData is a raw type. References to generic type MetaData<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaService.java    line 310    1209378269703    6587

MetaData is a raw type. References to generic type MetaData<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaService.java    line 311    1209378269703    6588

MetaData is a raw type. References to generic type MetaData<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaService.java    line 311    1209378269703    6589

MetaCue is a raw type. References to generic type MetaCue<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaCue.java    line 96    1209378269718    6600

MetaCue is a raw type. References to generic type MetaCue<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaCue.java    line 96    1209378269718    6601

MetaCue is a raw type. References to generic type MetaCue<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaData.java    line 191    1209378269718    6596

MetaCue is a raw type. References to generic type MetaCue<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaData.java    line 191    1209378269718    6597

MetaCue is a raw type. References to generic type MetaCue<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaService.java    line 271    1209378269703    6586

Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized    RED5/src/org/red5/io/amf    Output.java    line 285    1209378269968    6657

Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized    RED5/src/org/red5/io/amf    Output.java    line 285    1209378269968    6658

Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized    RED5/src/org/red5/io/amf3    Output.java    line 448    1209378269890    6641

Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized    RED5/src/org/red5/io/amf3    Output.java    line 448    1209378269890    6642

Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized    RED5/src/org/red5/server    Client.java    line 222    1209378269359    6531

Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized    RED5/src/org/red5/server/statistics    XmlRpcScopeStatistics.java    line 164    1209378266500    6224

Map.Entry is a raw type. References to generic type Map<K,V>.Entry<K,V> should be parameterized    RED5/src/org/red5/server/statistics    XmlRpcScopeStatistics.java    line 166    1209378266500    6227

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/io/flv    IFLV.java    line 81    1209378269828    6633

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/io/flv    IFLV.java    line 88    1209378269828    6634

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/io/flv/impl    FLV.java    line 118    1209378269812    6621

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/io/flv/impl    FLV.java    line 123    1209378269812    6622

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaService.java    line 314    1209378269703    6590

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/io/flv/meta    MetaService.java    line 314    1209378269703    6591

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/samples/services    EchoService.java    line 80    1209378269406    6545

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/samples/services    EchoService.java    line 80    1209378269406    6546

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/samples/services    EchoService.java    line 105    1209378269406    6549

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/samples/services    IEchoService.java    line 84    1209378269390    6541

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/samples/services    IEchoService.java    line 84    1209378269390    6542

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/server    AttributeStore.java    line 288    1209378269390    6537

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/server    AttributeStore.java    line 289    1209378269390    6538

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/server/api    ICastingAttributeStore.java    line 95    1209378268921    6505

Map is a raw type. References to generic type Map<K,V> should be parameterized    RED5/src/org/red5/server/messaging    AbstractMessage.java    line 46    1209378268078    6436

 

 

 

 

 

This is build.xml:

 

 

<?xml version="1.0" ?>

<project name="RED5" basedir="." default="all">

    <!-- user overides for project properties -->

 

    <property file="${user.home}/build.properties"/>

    <!-- base project properties -->

    <property file="build.properties"/>

    <!-- project properties -->

    <property environment="env"/>

    <property name="java.home" value="${env.JDK_HOME}"/>

    <property name="src.dir" value="src"/>

    <property name="dist.dir" value="dist"/>

    <property name="lib.dir" value="lib"/>

    <property name="classes.dir" value="bin"/>

    <property name="webapps.dir" value="webapps"/>

    <property name="debug.state" value="true"/>

    <property name="config.dir" value="conf"/>

    <property name="javadoc.dir" value="doc/api"/>

    <!-- Special directory destination for build war - unused in normal server build -->

    <property name="tmp.war.dir" value=""/>

    <!-- JUNIT TESTING -->

    <property name="test.dir" value="test"/>

    <property name="testclass.dir" value="bin/testcases"/>

    <property name="testreports.dir" value="${testclass.dir}/testreports"/>

    <property name="testdoc.dir" value="doc/test"/>

    <path id="project.classpath">

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/library.properties"/>

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/java6.properties"/>

    </path>

    <path id="script.classpath">

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/library.properties"/>

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/script.properties"/>

        <pathelement location="${classes.dir}"/>

    </path>

    <!-- For use with pre-java6 environment -->

    <path id="project_compatibility.classpath">

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/library.properties"/>

        <fileset dir="${lib.dir}/java5" includesfile="${lib.dir}/java5/java5.properties"/>

    </path>

    <!-- For use with pre-java6 environment -->

    <path id="script_compatibility.classpath">

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/library.properties"/>

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/script.properties"/>

        <fileset dir="${lib.dir}/java5" includesfile="${lib.dir}/java5/java5.properties"/>

        <pathelement location="${classes.dir}"/>

    </path>

    <path id="webapps.classpath">

        <fileset dir="${lib.dir}">

            <filename name="*.jar"/>

        </fileset>

        <pathelement location="${classes.dir}"/>

    </path>

    <path id="full.classpath">

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/library.properties"/>

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/java6.properties"/>

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/script.properties"/>

        <fileset dir="./">

            <filename name="red5.jar"/>

        </fileset>

    </path>

    <path id="full_compatibility.classpath">

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/library.properties"/>

        <fileset dir="${lib.dir}/java5" includesfile="${lib.dir}/java5/java5.properties"/>

        <fileset dir="${lib.dir}" includesfile="${lib.dir}/script.properties"/>

        <fileset dir="./">

            <filename name="red5.jar"/>

        </fileset>

    </path>

    <echo>java.home is ${java.home} and the target version is ${java.target_version}</echo>

    <target name="-junit.check">

        <available property="junit.installed" classname="junit.framework.TestCase"/>

    </target>

    <target name="-java6.check">

        <condition property="java6.installed" value="true">

            <and>

                <available property="java6.installed" classname="javax.script.Bindings"/>

                <equals arg1="${java.target_version}" arg2="1.6"/>

            </and>

        </condition>

    </target>

    <!-- setup the directories for building -->

    <target name="prepare">

        <mkdir dir="${classes.dir}"/>

        <mkdir dir="${dist.dir}"/>

        <mkdir dir="${testclass.dir}"/>

        <mkdir dir="${testreports.dir}"/>

        <mkdir dir="${webapps.dir}/admin/WEB-INF/classes"/>

        <mkdir dir="${webapps.dir}/admin/WEB-INF/lib"/>

        <mkdir dir="${webapps.dir}/echo/WEB-INF/classes"/>

        <mkdir dir="${webapps.dir}/echo/WEB-INF/lib"/>

        <mkdir dir="${webapps.dir}/fitcDemo/WEB-INF/classes"/>

        <mkdir dir="${webapps.dir}/fitcDemo/WEB-INF/lib"/>

        <mkdir dir="${webapps.dir}/midiDemo/WEB-INF/classes"/>

        <mkdir dir="${webapps.dir}/midiDemo/WEB-INF/lib"/>

        <mkdir dir="${webapps.dir}/oflaDemo/WEB-INF/classes"/>

        <mkdir dir="${webapps.dir}/oflaDemo/WEB-INF/lib"/>

        <mkdir dir="${webapps.dir}/test/WEB-INF/classes"/>

        <mkdir dir="${webapps.dir}/test/WEB-INF/lib"/>

        <mkdir dir="${webapps.dir}/tutorial/WEB-INF/classes"/>

        <mkdir dir="${webapps.dir}/tutorial/WEB-INF/lib"/>

    </target>

    <!-- do a clean -->

    <target name="clean">

        <delete dir="${classes.dir}"/>

        <delete dir="${dist.dir}"/>

        <delete dir="${javadoc.dir}"/>

        <delete dir="${testdoc.dir}"/>

        <delete includeemptydirs="true">

            <fileset dir="${webapps.dir}/" includes="**/*.class"/>

        </delete>

        <delete includeemptydirs="true">

            <fileset dir="${webapps.dir}/" includes="**/*.jar"/>

        </delete>

    </target>

    <target name="compile" depends="-java6.check, -junit.check, prepare">

        <condition property="java.target_version" value="1.5">

            <not>

                <isset property="java.target_version"/>

            </not>

        </condition>

        <echo message="Javac version: ${java.target_version}"/>

        <condition property="compiler" value="${build.compiler}${java.target_version}">

            <equals arg1="${build.compiler}" arg2="javac"/>

        </condition>

        <property name="compiler" value="${build.compiler}"/>

        <echo message="Compiler adapter name: $"/>        <antcall target="compile_core" inheritAll="true" inheritRefs="true"/>        <antcall target="compile_core_compatibility" inheritAll="true" inheritRefs="true"/>        <antcall target="compile_demos" inheritAll="true" inheritRefs="true"/>        <antcall target="compile_script" inheritAll="true" inheritRefs="true"/>        <antcall target="compile_script_compatibility" inheritAll="true" inheritRefs="true"/>    </target>    <!-- Core -->    <target name="compile_core" if="java6.installed">        <javac sourcepath="" srcdir="${src.dir}" destdir="${classes.dir}" classpathref="project.classpath"             optimize="${build.optimize}" verbose="${build.verbose}" fork="${build.fork}" nowarn="${build.nowarn}"             deprecation="${build.deprecation}" debug="${debug.state}" compiler="$"

             source="${java.target_version}" target="${java.target_version}" memoryMaximumSize="1024m"

             excludes="**/*.jsp,org/red5/server/script/**" listfiles="false"/>

    </target>

    <target name="compile_core_compatibility" unless="java6.installed">

        <javac sourcepath="" srcdir="${src.dir}" destdir="${classes.dir}" classpathref="project_compatibility.classpath"

             optimize="${build.optimize}" verbose="${build.verbose}" fork="${build.fork}" nowarn="${build.nowarn}"

             deprecation="${build.deprecation}" debug="${debug.state}" compiler="$"             source="${java.target_version}" target="${java.target_version}" memoryMaximumSize="1024m"             excludes="**/*.jsp,org/red5/server/script/**" listfiles="false"/>    </target>    <!-- Demos -->    <target name="compile_demos" depends="prepare">        <javac sourcepath="" srcdir="${webapps.dir}/admin/WEB-INF/src" destdir="${webapps.dir}${tmp.war.dir}/admin/WEB-INF/classes"             classpathref="webapps.classpath" optimize="${build.optimize}" verbose="${build.verbose}"             fork="${build.fork}" nowarn="${build.nowarn}" deprecation="${build.deprecation}"             debug="${debug.state}" compiler="$" source="${java.target_version}" target="${java.target_version}"/>

        <javac sourcepath="" srcdir="${webapps.dir}/echo/WEB-INF/src" destdir="${webapps.dir}${tmp.war.dir}/echo/WEB-INF/classes"

             classpathref="webapps.classpath" optimize="${build.optimize}" verbose="${build.verbose}"

             fork="${build.fork}" nowarn="${build.nowarn}" deprecation="${build.deprecation}"

             debug="${debug.state}" compiler="$" source="${java.target_version}" target="${java.target_version}"/>        <javac sourcepath="" srcdir="${webapps.dir}/fitcDemo/WEB-INF/src" destdir="${webapps.dir}${tmp.war.dir}/fitcDemo/WEB-INF/classes"             classpathref="webapps.classpath" optimize="${build.optimize}" verbose="${build.verbose}"             fork="${build.fork}" nowarn="${build.nowarn}" deprecation="${build.deprecation}"             debug="${debug.state}" compiler="$" source="${java.target_version}" target="${java.target_version}"/>

        <javac sourcepath="" srcdir="${webapps.dir}/midiDemo/WEB-INF/src" destdir="${webapps.dir}/midiDemo/WEB-INF/classes"

             classpathref="webapps.classpath" optimize="${build.optimize}" verbose="${build.verbose}"

             fork="${build.fork}" nowarn="${build.nowarn}" deprecation="${build.deprecation}"

             debug="${debug.state}" compiler="$" source="${java.target_version}" target="${java.target_version}"/>        <javac sourcepath="" srcdir="${webapps.dir}/oflaDemo/WEB-INF/src" destdir="${webapps.dir}${tmp.war.dir}/oflaDemo/WEB-INF/classes"             classpathref="webapps.classpath" optimize="${build.optimize}" verbose="${build.verbose}"             fork="${build.fork}" nowarn="${build.nowarn}" deprecation="${build.deprecation}"             debug="${debug.state}" compiler="$" source="${java.target_version}" target="${java.target_version}"/>

        <mkdir dir="${webapps.dir}/oflaDemo/WEB-INF/classes/applications"/>

        <copy todir="${webapps.dir}/oflaDemo/WEB-INF/classes/applications">

            <fileset dir="${webapps.dir}/oflaDemo/WEB-INF/src/applications"/>

        </copy>

        <javac sourcepath="" srcdir="${webapps.dir}/test/WEB-INF/src" destdir="${webapps.dir}/test/WEB-INF/classes"

             classpathref="webapps.classpath" optimize="${build.optimize}" verbose="${build.verbose}"

             fork="${build.fork}" nowarn="${build.nowarn}" deprecation="${build.deprecation}"

             debug="${debug.state}" compiler="$" source="${java.target_version}" target="${java.target_version}"/>        <javac sourcepath="" srcdir="${webapps.dir}/tutorial/WEB-INF/src" destdir="${webapps.dir}${tmp.war.dir}/tutorial/WEB-INF/classes"             classpathref="webapps.classpath" optimize="${build.optimize}" verbose="${build.verbose}"             fork="${build.fork}" nowarn="${build.nowarn}" deprecation="${build.deprecation}"             debug="${debug.state}" compiler="$" source="${java.target_version}" target="${java.target_version}"/>

    </target>

    <!-- Scripting -->

    <target name="compile_script" if="java6.installed" depends="prepare">

        <javac sourcepath="" srcdir="${src.dir}" destdir="${classes.dir}" classpathref="script.classpath"

             optimize="${build.optimize}" verbose="${build.verbose}" fork="${build.fork}" nowarn="${build.nowarn}"

             deprecation="${build.deprecation}" debug="${debug.state}" compiler="$"             source="${java.target_version}" target="${java.target_version}" memoryMaximumSize="1024m"             includes="org/red5/server/script/**" listfiles="false"/>    </target>    <target name="compile_script_compatibility" unless="java6.installed" depends="prepare">        <javac sourcepath="" srcdir="${src.dir}" destdir="${classes.dir}" classpathref="script_compatibility.classpath"             optimize="${build.optimize}" verbose="${build.verbose}" fork="${build.fork}" nowarn="${build.nowarn}"             deprecation="${build.deprecation}" debug="${debug.state}" compiler="$"

             source="${java.target_version}" target="${java.target_version}" memoryMaximumSize="1024m"

             includes="org/red5/server/script/**" listfiles="false"/>

    </target>

    <target name="compile_war" depends="-java6.check, -junit.check, prepare">

        <condition property="java.target_version" value="1.6">

            <not>

                <isset property="java.target_version"/>

            </not>

        </condition>

        <echo message="Javac version: ${java.target_version}"/>

        <condition property="compiler" value="${build.compiler}${java.target_version}">

            <equals arg1="${build.compiler}" arg2="javac"/>

        </condition>

        <property name="compiler" value="${build.compiler}"/>

        <echo message="Compiler adapter name: $"/>        <mkdir dir="${classes.dir}/WEB-INF/classes"/>        <javac sourcepath="" srcdir="${src.dir}" destdir="${classes.dir}/WEB-INF/classes" classpathref="project.classpath"             optimize="${build.optimize}" verbose="${build.verbose}" fork="${build.fork}" nowarn="${build.nowarn}"             deprecation="${build.deprecation}" debug="${debug.state}" compiler="$"

             source="${java.target_version}" target="${java.target_version}" memoryMaximumSize="1024m"

             excludes="**/*.jsp,                 org/red5/server/script/**,                 org/red5/server/jetty/**,                 org/red5/server/midi/**,                 org/red5/server/net/rtmpt/*Loader.java,                 org/red5/server/net/servlet/RTMPTServlet.java,                 org/red5/server/net/servlet/StatisticsServlet.java,                 org/red5/server/net/servlet/ZAMFGatewayServlet.java,                 org/red5/server/ContextLoader.java,                 org/red5/server/DebugPooledByteBufferAllocator.java,                 org/red5/server/JettyLoader.java,                 org/red5/server/Standalone.java,                 org/red5/server/TomcatLoader.java"

             listfiles="false"/>

        <!-- only certain classes from selected demos are copied to the war -->

        <mkdir dir="${classes.dir}/tmp/admin/WEB-INF/classes"/>

        <mkdir dir="${classes.dir}/tmp/echo/WEB-INF/classes"/>

        <mkdir dir="${classes.dir}/tmp/fitcDemo/WEB-INF/classes"/>

        <mkdir dir="${classes.dir}/tmp/oflaDemo/WEB-INF/classes"/>

        <mkdir dir="${classes.dir}/tmp/SOSample/WEB-INF/classes"/>

        <mkdir dir="${classes.dir}/tmp/tutorial/WEB-INF/classes"/>

        <!-- demos are compiled to a temporary directory -->

        <antcall target="compile_demos" inheritAll="true" inheritRefs="true">

            <param name="classes.dir" value="${classes.dir}/WEB-INF/classes"/>

            <param name="tmp.war.dir" value="/../${classes.dir}/tmp"/>

        </antcall>

        <!-- copy compiled demo classes to the primary war classes directory -->

        <copy todir="${classes.dir}/WEB-INF/classes">

            <fileset dir="${classes.dir}/tmp/admin/WEB-INF/classes"/>

            <fileset dir="${classes.dir}/tmp/echo/WEB-INF/classes"/>

            <fileset dir="${classes.dir}/tmp/fitcDemo/WEB-INF/classes"/>

            <fileset dir="${classes.dir}/tmp/oflaDemo/WEB-INF/classes"/>

            <fileset dir="${classes.dir}/tmp/SOSample/WEB-INF/classes"/>

            <fileset dir="${classes.dir}/tmp/tutorial/WEB-INF/classes"/>

        </copy>

        <!-- demo stream files -->

        <copy todir="${classes.dir}/streams">

            <fileset dir="${webapps.dir}/oflaDemo/streams"/>

        </copy>

        <!-- remove directories we dont want in the war -->

        <delete dir="${classes.dir}/tmp"/>

        <delete dir="${classes.dir}/testcases"/>

        <antcall target="compile_script" inheritAll="true" inheritRefs="true">

            <param name="classes.dir" value="${classes.dir}/WEB-INF/classes"/>

        </antcall>

        <antcall target="compile_script_compatibility" inheritAll="true" inheritRefs="true">

            <param name="classes.dir" value="${classes.dir}/WEB-INF/classes"/>

        </antcall>

    </target>

    <target name="compile_war_java5" depends="-junit.check, prepare">

        <condition property="java.target_version" value="1.5">

            <not>

                <isset property="java.target_version"/>

            </not>

        </condition>

        <echo message="Javac version: ${java.target_version}"/>

        <condition property="compiler" value="${build.compiler}${java.target_version}">

            <equals arg1="${build.compiler}" arg2="javac"/>

        </condition>

        <property name="compiler" value="${build.compiler}"/>

        <echo message="Compiler adapter name: $"/>        <mkdir dir="${classes.dir}/WEB-INF/classes"/>        <javac sourcepath="" srcdir="${src.dir}" destdir="${classes.dir}/WEB-INF/classes" classpathref="project_compatibility.classpath"             optimize="${build.optimize}" verbose="${build.verbose}" fork="${build.fork}" nowarn="${build.nowarn}"             deprecation="${build.deprecation}" debug="${debug.state}" compiler="$"

             source="${java.target_version}" target="${java.target_version}" memoryMaximumSize="1024m"

             excludes="**/*.jsp,                 org/red5/server/script/**,                 org/red5/server/jetty/**,                 org/red5/server/midi/**,                 org/red5/server/net/rtmpt/*Loader.java,                 org/red5/server/net/servlet/RTMPTServlet.java,                 org/red5/server/net/servlet/StatisticsServlet.java,                 org/red5/server/net/servlet/ZAMFGatewayServlet.java,                 org/red5/server/ContextLoader.java,                 org/red5/server/DebugPooledByteBufferAllocator.java,                 org/red5/server/JettyLoader.java,                 org/red5/server/Standalone.java,                 org/red5/server/TomcatLoader.java"

             listfiles="false"/>

        <!-- only certain classes from selected demos are copied to the war -->

        <mkdir dir="${classes.dir}/tmp/admin/WEB-INF/classes"/>

        <mkdir dir="${classes.dir}/tmp/echo/WEB-INF/classes"/>

        <mkdir dir="${classes.dir}/tmp/fitcDemo/WEB-INF/classes"/>

        <mkdir dir="${classes.dir}/tmp/oflaDemo/WEB-INF/classes"/>

        <mkdir dir="${classes.dir}/tmp/SOSample/WEB-INF/classes"/>

        <mkdir dir="${classes.dir}/tmp/tutorial/WEB-INF/classes"/>

        <!-- demos are compiled to a temporary directory -->

        <antcall target="compile_demos" inheritAll="true" inheritRefs="true">

            <param name="classes.dir" value="${classes.dir}/WEB-INF/classes"/>

            <param name="tmp.war.dir" value="/../${classes.dir}/tmp"/>

        </antcall>

        <!-- copy compiled demo classes to the primary war classes directory -->

        <copy todir="${classes.dir}/WEB-INF/classes">

            <fileset dir="${classes.dir}/tmp/admin/WEB-INF/classes"/>

            <fileset dir="${classes.dir}/tmp/echo/WEB-INF/classes"/>

            <fileset dir="${classes.dir}/tmp/fitcDemo/WEB-INF/classes"/>

            <fileset dir="${classes.dir}/tmp/oflaDemo/WEB-INF/classes"/>

            <fileset dir="${classes.dir}/tmp/SOSample/WEB-INF/classes"/>

            <fileset dir="${classes.dir}/tmp/tutorial/WEB-INF/classes"/>

        </copy>

        <!-- demo stream files -->

        <copy todir="${classes.dir}/streams">

            <fileset dir="${webapps.dir}/oflaDemo/streams"/>

        </copy>

        <!-- remove directories we dont want in the war -->

        <delete dir="${classes.dir}/tmp"/>

        <delete dir="${classes.dir}/testcases"/>

        <antcall target="compile_script" inheritAll="true" inheritRefs="true">

            <param name="classes.dir" value="${classes.dir}/WEB-INF/classes"/>

        </antcall>

        <antcall target="compile_script_compatibility" inheritAll="true" inheritRefs="true">

            <param name="classes.dir" value="${classes.dir}/WEB-INF/classes"/>

        </antcall>

    </target>

    <target name="javadoc_compatibility" description="Generate JavaDoc" unless="java6.installed">

        <echo message="Path: ${env.Path}"/>

        <!-- Determine the location of Suns api docs -->

        <condition property="javadoc.loc" value="javase/6">

            <equals arg1="${java6.installed}" arg2="true"/>

        </condition>

        <condition property="javadoc.loc" value="j2se/1.5.0">

            <not>

                <equals arg1="${java6.installed}" arg2="true"/>

            </not>

        </condition>

        <echo message="Javadoc api stub: ${javadoc.loc}"/>

        <javadoc useexternalfile="true" failonerror="false" verbose="false" classpathref="full_compatibility.classpath"

             destdir="${javadoc.dir}" author="true" version="true" use="true" splitindex="true"

             windowtitle="Red5 Server Documentation">

            <fileset dir="${src.dir}" defaultexcludes="yes">

                <include name="org/red5/**"/>

                <exclude name="**/*.xml"/>

                <exclude name="**/*.xsd"/>

            </fileset>

            <doctitle><![CDATA[<h1>Red5 Server Documentation</h1>]]></doctitle>

            <bottom><![CDATA[<i>Copyright © 2006-2007 <a href="http://osflash.org/red5" target="_blank">the Red5 project</a>.</i>]]></bottom>

            <tag name="todo" scope="all" description="To do:"/>

            <group title="Public API" packages="org.red5.server.api:org.red5.server.api.*"/>

            <group title="Network Protocols" packages="org.red5.server.net:org.red5.server.net.*"/>

            <group title="Streaming" packages="org.red5.server.stream:org.red5.server.stream.*"/>

            <group title="IO Packages" packages="org.red5.io:org.red5.io.*"/>

            <group title="Scripting" packages="org.red5.server.script:org.red5.server.script.*"/>

            <link href="http://java.sun.com/${javadoc.loc}/docs/api"/>

            <link href="http://jetty.mortbay.org/apidocs"/>

            <link href="http://directory.apache.org/subprojects/mina/apidocs"/>

            <link href="http://www.springframework.org/docs/api"/>

            <link href="http://www.opensymphony.com/quartz/api"/>

        </javadoc>

    </target>

    <target name="javadoc" description="Generate JavaDoc" if="java6.installed">

        <echo message="Path: ${env.Path}"/>

        <!-- Determine the location of Suns api docs -->

        <condition property="javadoc.loc" value="javase/6">

            <equals arg1="${java6.installed}" arg2="true"/>

        </condition>

        <condition property="javadoc.loc" value="j2se/1.5.0">

            <not>

                <equals arg1="${java6.installed}" arg2="true"/>

            </not>

        </condition>

        <echo message="Javadoc api stub: ${javadoc.loc}"/>

        <javadoc useexternalfile="true" failonerror="false" verbose="false" classpathref="full.classpath"

             destdir="${javadoc.dir}" author="true" version="true" use="true" splitindex="true"

             windowtitle="Red5 Server Documentation">

            <fileset dir="${src.dir}" defaultexcludes="yes">

                <include name="org/red5/**"/>

                <exclude name="**/*.xml"/>

                <exclude name="**/*.xsd"/>

            </fileset>

            <doctitle><![CDATA[<h1>Red5 Server Documentation</h1>]]></doctitle>

            <bottom><![CDATA[<i>Copyright © 2006-2007 <a href="http://osflash.org/red5" target="_blank">the Red5 project</a>.</i>]]></bottom>

            <tag name="todo" scope="all" description="To do:"/>

            <group title="Public API" packages="org.red5.server.api:org.red5.server.api.*"/>

            <group title="Network Protocols" packages="org.red5.server.net:org.red5.server.net.*"/>

            <group title="Streaming" packages="org.red5.server.stream:org.red5.server.stream.*"/>

            <group title="IO Packages" packages="org.red5.io:org.red5.io.*"/>

            <group title="Scripting" packages="org.red5.server.script:org.red5.server.script.*"/>

            <link href="http://java.sun.com/${javadoc.loc}/docs/api"/>

            <link href="http://jetty.mortbay.org/apidocs"/>

            <link href="http://directory.apache.org/subprojects/mina/apidocs"/>

            <link href="http://www.springframework.org/docs/api"/>

            <link href="http://www.opensymphony.com/quartz/api"/>

        </javadoc>

    </target>

    <!--

    yDoc - Javadoc UML Extension

    This will enable you to generate and automatically integrate clear and concise UML diagrams into your Java API documentation.

    http://www.yworks.com/en/products_ydoc.htm

    -->

    <target name="javadoc-ydoc">

        <!-- Determine the location of Suns api docs -->

 

        <condition property="javadoc.loc" value="javase/6">

            <equals arg1="${java6.installed}" arg2="true"/>

        </condition>

        <condition property="javadoc.loc" value="j2se/1.5.0">

            <not>

                <equals arg1="${java6.installed}" arg2="true"/>

            </not>

        </condition>

        <echo message="Javadoc api stub: ${javadoc.loc}"/>

        <property name="ydoc.home" value="C:/dev/ydoc"/>

        <property name="ps" value="${path.separator}"/>

        <javadoc source="${java.target_version}" destdir="${javadoc.dir}" additionalparam="-breakiterator"

             useexternalfile="true" failonerror="false" verbose="false" classpathref="full.classpath"

             author="true" version="true" use="true" splitindex="true" windowtitle="Red5 Server Documentation">

            <packageset dir="${src.dir}">

                <include name="org/red5/**"/>

                <exclude name="**/*.xml"/>

                <exclude name="**/*.xsd"/>

            </packageset>

            <doclet name="ydoc.doclets.YStandard" path="${ydoc.home}/lib/ydoc.jar$${ydoc.home}/lib/class2svg.jar$${ydoc.home}/resources$${ydoc.home}/doc">

                <param name="-author"/>

                <param name="-generic"/>

                <param name="-umlautogen"/>

                <param name="-filterpath" value="${ydoc.home}/lib/ydoc.jar"/>

                <param name="-filter" value="ydoc.filters.ExcludeFilter"/>

                <param name="-tag" value="y.precondition"/>

                <param name="-tag" value="y.postcondition"/>

                <param name="-tag" value="y.complexity"/>

                <param name="-tag" value="param"/>

                <param name="-tag" value="return"/>

                <param name="-tag" value="see"/>

                <param name="-tag" value="y.uml"/>

            </doclet>

            <doctitle><![CDATA[<h1>Red5 Server Documentation</h1>]]></doctitle>

            <bottom><![CDATA[<i>Copyright © 2006-2007 <a href="http://osflash.org/red5" target="_blank">the Red5 project</a>.</i>]]></bottom>

            <tag name="todo" scope="all" description="To do:"/>

            <group title="Public API" packages="org.red5.server.api:org.red5.server.api.*"/>

            <group title="Network Protocols" packages="org.red5.server.net:org.red5.server.net.*"/>

            <group title="Streaming" packages="org.red5.server.stream:org.red5.server.stream.*"/>

            <group title="IO Packages" packages="org.red5.io:org.red5.io.*"/>

            <group title="Scripting" packages="org.red5.server.script:org.red5.server.script.*"/>

            <link href="http://java.sun.com/${javadoc.loc}/docs/api"/>

            <link href="http://jetty.mortbay.org/apidocs"/>

            <link href="http://directory.apache.org/subprojects/mina/apidocs"/>

            <link href="http://www.springframework.org/docs/api"/>

            <link href="http://www.opensymphony.com/quartz/api"/>

        </javadoc>

    </target>

    <target name="jar_java5" unless="java6.installed">

        <loadfile property="library.java5.jars" srcFile="${lib.dir}/java5/java5.properties">

            <filterchain>

                <tokenfilter>

                    <trim/>

                    <ignoreblank/>

                </tokenfilter>

                <striplinecomments>

                    <comment value="#"/>

                </striplinecomments>

                <prefixlines prefix=" lib/java5/"/>

                <striplinebreaks/>

            </filterchain>

        </loadfile>

        <echo message="Jar launch classpath: conf/${library.jars} ${library.java5.jars} ${script.jars}"/>

        <jar destfile="red5.jar">

            <fileset dir="${classes.dir}">

                <include name="**"/>

                <exclude name="testcases/**"/>

            </fileset>

            <manifest>

                <attribute name="Built-By" value="RED5 Project - red5@osflash.org"/>

                <attribute name="Built-On" value="${build.TODAY}"/>

                <attribute name="Main-Class" value="org.red5.server.Standalone"/>

                <attribute name="Class-Path" value="conf/ ${library.jars} ${library.java5.jars} ${script.jars}"/>

            </manifest>

            <metainf dir="${src.dir}/META-INF">

                <include name="**"/>

            </metainf>

        </jar>

    </target>

    <target name="jar_java6" if="java6.installed">

        <loadfile property="library.java6.jars" srcFile="${lib.dir}/java6.properties">

            <filterchain>

                <tokenfilter>

                    <trim/>

                    <ignoreblank/>

                </tokenfilter>

                <striplinecomments>

                    <comment value="#"/>

                </striplinecomments>

                <prefixlines prefix=" lib/"/>

                <striplinebreaks/>

            </filterchain>

        </loadfile>

        <echo message="Jar launch classpath: conf/${library.jars} ${library.java6.jars} ${script.jars}"/>

        <jar destfile="red5.jar">

            <fileset dir="${classes.dir}">

                <include name="**"/>

                <exclude name="testcases/**"/>

            </fileset>

            <manifest>

                <attribute name="Built-By" value="RED5 Project - red5@osflash.org"/>

                <attribute name="Built-On" value="${build.TODAY}"/>

                <attribute name="Main-Class" value="org.red5.server.Standalone"/>

                <attribute name="Class-Path" value="conf/ ${library.jars} ${library.java6.jars} ${script.jars}"/>

            </manifest>

            <metainf dir="${src.dir}/META-INF">

                <include name="**"/>

            </metainf>

        </jar>

    </target>

    <target name="jar" description="Make Archive" depends="compile">

        <tstamp prefix="build">

            <format property="TODAY" pattern="d-MMMM-yyyy" locale="en"/>

        </tstamp>

        <!-- Load the library props files to generate a class-path for the jar -->

        <loadfile property="library.jars" srcFile="${lib.dir}/library.properties">

            <filterchain>

                <tokenfilter>

                    <trim/>

                    <ignoreblank/>

                </tokenfilter>

                <striplinecomments>

                    <comment value="#"/>

                </striplinecomments>

                <prefixlines prefix=" lib/"/>

                <striplinebreaks/>

            </filterchain>

        </loadfile>

        <loadfile property="script.jars" srcFile="${lib.dir}/script.properties">

            <filterchain>

                <tokenfilter>

                    <trim/>

                    <ignoreblank/>

                </tokenfilter>

                <striplinecomments>

                    <comment value="#"/>

                </striplinecomments>

                <prefixlines prefix=" lib/"/>

                <striplinebreaks/>

            </filterchain>

        </loadfile>

        <mkdir dir="${classes.dir}/conf"/>

        <copy todir="${classes.dir}/conf">

            <fileset dir="${config.dir}"/>

        </copy>

        <antcall target="jar_java5" inheritAll="true" inheritRefs="true"/>

        <antcall target="jar_java6" inheritAll="true" inheritRefs="true"/>

        <jar destfile="${webapps.dir}/admin/WEB-INF/lib/admin.jar">

            <fileset dir="${webapps.dir}/admin/WEB-INF/classes">

                <include name="**"/>

            </fileset>

        </jar>

        <jar destfile="${webapps.dir}/echo/WEB-INF/lib/echo.jar">

            <fileset dir="${webapps.dir}/echo/WEB-INF/classes">

                <include name="**"/>

            </fileset>

        </jar>

        <jar destfile="${webapps.dir}/fitcDemo/WEB-INF/lib/fitcDemo.jar">

            <fileset dir="${webapps.dir}/fitcDemo/WEB-INF/classes">

                <include name="**"/>

            </fileset>

        </jar>

        <jar destfile="${webapps.dir}/midiDemo/WEB-INF/lib/midiDemo.jar">

            <fileset dir="${webapps.dir}/midiDemo/WEB-INF/classes">

                <include name="**"/>

            </fileset>

        </jar>

        <!-- copy scripts -->

        <mkdir dir="webapps/oflaDemo/WEB-INF/classes/applications"/>

        <copy todir="webapps/oflaDemo/WEB-INF/classes/applications">

            <fileset dir="webapps/oflaDemo/WEB-INF/src/applications"/>

        </copy>

        <jar destfile="webapps/oflaDemo/WEB-INF/lib/oflaDemo.jar">

            <fileset dir="webapps/oflaDemo/WEB-INF/classes">

                <include name="**"/>

            </fileset>

        </jar>

<!--        <jar destfile="${webapps.dir}/test/WEB-INF/lib/test.jar">

            <fileset dir="${webapps.dir}/test/WEB-INF/classes">

                <include name="**"/>

            </fileset>

        </jar>-->

        <jar destfile="${webapps.dir}/tutorial/WEB-INF/lib/tutorial.jar">

            <fileset dir="${webapps.dir}/tutorial/WEB-INF/classes">

                <include name="**"/>

            </fileset>

        </jar>

        <jar destfile="${webapps.dir}/cam_test1/WEB-INF/lib/cam_test1.jar">

            <fileset dir="${webapps.dir}/test/WEB-INF/classes">

                <include name="**"/>

            </fileset>

        </jar>

    </target>

    <target name="dist" description="Make Binary Distribution" depends="clean, jar, javadoc, javadoc_compatibility">

        <copy todir="${dist.dir}/doc">

            <fileset dir="doc"/>

        </copy>

        <copy todir="${dist.dir}/lib">

            <fileset dir="lib"/>

        </copy>

        <copy todir="${dist.dir}/conf">

            <fileset dir="conf"/>

        </copy>

        <copy todir="${dist.dir}/webapps">

            <fileset dir="webapps">

                <include name="**"/>

                <exclude name="**/classes/**"/>

                <exclude name="**/src/**"/>

            </fileset>

        </copy>

        <copy todir="${dist.dir}">

            <fileset dir="./">

                <include name="red5.jar"/>

                <include name="red5.bat"/>

                <include name="red5.sh"/>

                <include name="license.txt"/>

            </fileset>

        </copy>

    </target>

    <target name="installerdist" description="Make Installer Distribution" depends="dist">

        <copy todir="${dist.dir}">

            <fileset dir="./">

                <include name=".classpath"/>

                <include name=".project"/>

                <include name=".springBeans"/>

                <include name="build.xml"/>

                <include name="build.properties"/>

            </fileset>

        </copy>

        <copy todir="${dist.dir}/src">

            <fileset dir="src"/>

        </copy>

        <copy todir="${dist.dir}/swf">

            <fileset dir="swf"/>

        </copy>

        <copy todir="${dist.dir}/webapps">

            <fileset dir="webapps">

                <include name="**/src/**"/>

            </fileset>

        </copy>

    </target>

    <target name="server_java5" depends="compile" unless="java6.installed">

        <java classname="org.red5.server.Standalone" fork="true">

            <classpath>

                <pathelement location="${config.dir}"/>

                <pathelement location="${classes.dir}"/>

                <path refid="full_compatibility.classpath"/>

            </classpath>

            <jvmarg value="-Djava.security.manager"/>

            <jvmarg value="-Djava.security.policy=${config.dir}/red5.policy"/>

            <!-- enable the following 2 lines if your using jmx with ssl -->

            <!--

            <jvmarg value="-Djavax.net.ssl.keyStore=${config.dir}/keystore.jmx"/>

            <jvmarg value="-Djavax.net.ssl.keyStorePassword=password"/>

            -->

        </java>

    </target>

    <target name="server_java6" depends="compile" if="java6.installed">

        <java classname="org.red5.server.Standalone" fork="true">

            <classpath>

                <pathelement location="${config.dir}"/>

                <pathelement location="${classes.dir}"/>

                <path refid="full.classpath"/>

            </classpath>

            <jvmarg value="-Djava.security.manager"/>

            <jvmarg value="-Djava.security.policy=${config.dir}/red5.policy"/>

            <!-- enable the following 2 lines if your using jmx with ssl -->

            <!--

            <jvmarg value="-Djavax.net.ssl.keyStore=${config.dir}/keystore.jmx"/>

            <jvmarg value="-Djavax.net.ssl.keyStorePassword=password"/>

            -->

        </java>

    </target>

    <target name="server">

        <antcall target="server_java5" inheritAll="true" inheritRefs="true"/>

        <antcall target="server_java6" inheritAll="true" inheritRefs="true"/>

    </target>

    <target name="shutdown" depends="compile">

        <java classname="org.red5.server.Shutdown" fork="true">

            <classpath>

                <pathelement location="${config.dir}"/>

                <pathelement location="${classes.dir}"/>

                <path refid="full.classpath"/>

            </classpath>

            <jvmarg value="-Djava.security.manager"/>

            <jvmarg value="-Djava.security.policy=${config.dir}/red5.policy"/>

            <!-- enable the following 5 lines if your using jmx with ssl and auth -->

            <!--

            <jvmarg value="-Djavax.net.ssl.trustStore=${config.dir}/truststore.jmx"/>

            <jvmarg value="-Djavax.net.ssl.trustStorePassword=trustword"/>

            <arg value="9999"/>

            <arg value="red5user"/>

            <arg value="changeme"/>

            -->

        </java>

    </target>

    <!-- Experimental UDP Server -->

    <target name="udp_java5" depends="compile" unless="java6.installed">

        <java classname="org.red5.server.net.udp.Standalone" fork="true">

            <classpath>

                <pathelement location="${config.dir}"/>

                <pathelement location="${classes.dir}"/>

                <path refid="full_compatibility.classpath"/>

            </classpath>

            <jvmarg value="-Djava.security.manager"/>

            <jvmarg value="-Djava.security.policy=${config.dir}/red5.policy"/>

        </java>

    </target>

    <target name="udp_java6" depends="compile" if="java6.installed">

        <java classname="org.red5.server.net.udp.Standalone" fork="true">

            <classpath>

                <pathelement location="${config.dir}"/>

                <pathelement location="${classes.dir}"/>

                <path refid="full.classpath"/>

            </classpath>

            <jvmarg value="-Djava.security.manager"/>

            <jvmarg value="-Djava.security.policy=${config.dir}/red5.policy"/>

        </java>

    </target>

    <target name="udp">

        <antcall target="udp_java5" inheritAll="true" inheritRefs="true"/>

        <antcall target="udp_java6" inheritAll="true" inheritRefs="true"/>

    </target>

    <target name="run-tests" if="junit.installed" depends="compiletests" description="Run JUnit tests and generate HTML reports">

        <junit fork="true" haltonfailure="no" printsummary="no" showoutput="no" dir="${testreports.dir}">

            <classpath>

                <path refid="full.classpath"/>

                <pathelement location="${testclass.dir}"/>

            </classpath>

            <formatter type="xml"/>

            <batchtest todir="${testreports.dir}">

                <fileset dir="${testclass.dir}">

                    <include name="**/*Test.class"/>

                    <exclude name="**/Abstract*Test.class"/>

                    <exclude name="**/*AbstractTest.class"/>

                </fileset>

            </batchtest>

        </junit>

        <junitreport todir="${test.dir}">

            <fileset dir="${testreports.dir}">

                <include name="TEST-*.xml"/>

            </fileset>

            <report format="frames" todir="${testdoc.dir}"/>

        </junitreport>

    </target>

    <target name="compiletests" depends="jar" if="junit.installed" description="Compiles junit test classes">

        <javac srcdir="${test.dir}" destdir="${testclass.dir}">

            <classpath>

                <path refid="full.classpath"/>

            </classpath>

            <include name="**/*.java"/>

        </javac>

    </target>

    <target name="webwar" description="Make Web Archive" depends="compile_war">

        <tstamp prefix="build">

            <format property="TODAY" pattern="d-MMMM-yyyy" locale="en"/>

        </tstamp>

        <copy todir="${classes.dir}">

            <fileset dir=".">

                <include name="license.txt"/>

            </fileset>

        </copy>

        <copy todir="${classes.dir}">

            <fileset dir="webapps/root">

                <include name="**/*.html"/>

                <include name="**/*.jsp"/>

                <include name="**/*.js"/>

                <include name="**/*.css"/>

                <include name="**/*.ico"/>

                <include name="**/*.swf"/>

                <include name="**/*.flv"/>

                <exclude name="WEB-INF"/>

            </fileset>

        </copy>

        <!-- rename index for war only -->

        <move file="${classes.dir}/index_war.html" tofile="${classes.dir}/index.html"/>

        <copy todir="${classes.dir}/WEB-INF">

            <fileset dir="conf/war">

                <include name="*.xml"/>

                <include name="*.properties"/>

                <exclude name="web.xml"/>

            </fileset>

        </copy>

        <!-- copy the jmx support files into the webapp classpath -->

        <copy todir="${classes.dir}/WEB-INF/classes">

            <fileset dir="conf">

                <include name="*.jmx"/>

                <include name="access.properties"/>

                <include name="password.properties"/>

            </fileset>

        </copy>

        <!-- copy the red5 properties into the webapp classpath -->

        <copy todir="${classes.dir}/WEB-INF/classes" file="${classes.dir}/WEB-INF/red5.properties"/>

        <war destfile="${dist.dir}/red5.war" webxml="conf/war/web.xml">

            <fileset dir="${classes.dir}"/>

            <lib dir="${lib.dir}">

                <exclude name="test/**"/>

                <exclude name="java5/**"/>

                <exclude name="*.properties"/>

                <exclude name="jsp*.jar"/>

                <exclude name="servlet*.jar"/>

                <exclude name="catalina*.jar"/>

                <exclude name="tomcat*.jar"/>

                <exclude name="jetty*.jar"/>

                <exclude name="jasper*.jar"/>

                <exclude name="ehcache-1.2.3.jar"/>

                <exclude name="whirlycache-1.0.1_lite.jar"/>

                <exclude name="GroboUtils-5-core.jar"/>

                <exclude name="junit*.jar"/>

            </lib>

            <manifest>

                <attribute name="Built-By" value="RED5 Project - red5@osflash.org"/>

                <attribute name="Built-On" value="${build.TODAY}"/>

            </manifest>

        </war>

    </target>

    <target name="webwar_java5" description="Make Web Archive for Java 1.5" depends="compile_war_java5">

        <tstamp prefix="build">

            <format property="TODAY" pattern="d-MMMM-yyyy" locale="en"/>

        </tstamp>

        <copy todir="${classes.dir}">

            <fileset dir=".">

                <include name="license.txt"/>

            </fileset>

        </copy>

        <copy todir="${classes.dir}">

            <fileset dir="webapps/root">

                <include name="**/*.html"/>

                <include name="**/*.jsp"/>

                <include name="**/*.js"/>

                <include name="**/*.css"/>

                <include name="**/*.ico"/>

                <include name="**/*.swf"/>

                <include name="**/*.flv"/>

                <exclude name="WEB-INF"/>

            </fileset>

        </copy>

        <!-- copy the jmx support files into the webapp classpath -->

        <copy todir="${classes.dir}/WEB-INF/classes">

            <fileset dir="conf">

                <include name="*.jmx"/>

                <include name="access.properties"/>

                <include name="password.properties"/>

            </fileset>

        </copy>

        <!-- rename index for war only -->

        <move file="${classes.dir}/index_war.html" tofile="${classes.dir}/index.html"/>

        <copy todir="${classes.dir}/WEB-INF">

            <fileset dir="conf/war">

                <include name="*.xml"/>

                <include name="*.properties"/>

                <exclude name="web.xml"/>

            </fileset>

        </copy>

        <!-- copy the red5 properties into the webapp classpath -->

        <copy todir="${classes.dir}/WEB-INF/classes" file="${classes.dir}/WEB-INF/red5.properties"/>

        <war destfile="${dist.dir}/red5.war" webxml="conf/war/web.xml">

            <fileset dir="${classes.dir}"/>

            <lib dir="${lib.dir}">

                <exclude name="test/**"/>

                <exclude name="java5/**"/>

                <exclude name="mina*.jar"/>

                <exclude name="*.properties"/>

                <exclude name="jsp*.jar"/>

                <exclude name="servlet*.jar"/>

                <exclude name="catalina*.jar"/>

                <exclude name="tomcat*.jar"/>

                <exclude name="jetty*.jar"/>

                <exclude name="jasper*.jar"/>

                <exclude name="ehcache-1.2.3.jar"/>

                <exclude name="whirlycache-1.0.1_lite.jar"/>

                <exclude name="GroboUtils-5-core.jar"/>

                <exclude name="junit*.jar"/>

            </lib>

            <lib dir="${lib.dir}/java5">

                <exclude name="*.properties"/>

            </lib>

            <manifest>

                <attribute name="Built-By" value="RED5 Project - red5@osflash.org"/>

                <attribute name="Built-On" value="${build.TODAY}"/>

            </manifest>

        </war>

    </target>

    <target name="all" depends="clean, prepare, compile, jar, javadoc"/>

    <target name="usage">

        <echo message="Type ant -p for available targets"/>

    </target>

</project>

 

 

 

Please help me!

 

 

Greetings

 

 

please provide current link to red5.war

$
0
0

hello all!

 

I am building my own chat server using openfire.  It it istalled on centos 6 x386 and runs great.   I have 3 windows pc's using spark as a client and can private chat (like skype) and in rooms.

 

I need to add voice and video.  I saw in the forums to DL red5.war and install in /plugins folder.  It does not show in the admin plugins page.  Comments say to get the "new" one, but all the links i can find go to broken links.

 

Can someone provide a link for the red5.war file that will work on openfire 3.7.1?

 

I really need to replace skype, and openfire seemed like the best choice.  I just cannot find the files to add in audio and video.

 

 

Thanks

Viewing all 2000 articles
Browse latest View live