[Red5] ant build.xml for personal webapps for new users
joseph wamicha
jwamicha at gmail.com
Sat Jan 27 14:47:16 EST 2007
Hi,
In response to Louie Penaflor, I'll write this small howto, coz it wasn't
very clear for me too.
Each time you create your own application, you have to rebuild it for red5
and then restart red5 (ie ./red5.sh or red5.bat or ant server) red5 and your
changes would now be reflected ie you can connect to your application
(provided there were no errors during wiring process).
The build.xml was made using the red5 default build.xml
HOWTO
1. The red5 webapps structure is like this:
/red5_server/webapps/name-of-your-application/WEB-INF
2. Put the build.xml file in your WEB-INF folder
3. Ensure that your source packages are in the folder WEB-INF:
ie /red5_server/webapps/name-of-your-application/WEB-INF/src
So your application structure would be:
/red5_server/webapps/name-of-your-application/WEB-INF/src/name/of/your/package
4. Throw in the build.xml attached with this mail message into the WEB-INF
folder ie:
/red5_server/webapps/name-of-your-application/WEB-INF/[Drop it here]
5. Edit the target property at the top of your build.xml file:
<property name="target.jar" value="nameofyourapp.jar"/>
6. Everytime you want to build your application:
#ant build
or
#ant
to build your application
You may also wish to make a jar of your application, run:
#ant jar
Now restart red5 once your build is ok and off you go.
I haven't tested it on jdk1.6 but you probably just need to change the
following under the target build from:
compiler="javac1.6"
source="1.6"
target="1.6"
to
compiler="javac1.6"
source="1.6"
target="1.6"
Hope this helps.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20070127/adb33a26/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.xml
Type: text/xml
Size: 3009 bytes
Desc: not available
Url : http://osflash.org/pipermail/red5_osflash.org/attachments/20070127/adb33a26/build.xml
More information about the Red5
mailing list