[Red5] Is this neccessary ?
Mondain
mondain at gmail.com
Tue Jun 3 14:09:11 PDT 2008
Not to make it more difficult but i didnt explain the classpath variable
"Red5", this is created in Eclipse like so:
1. Go to Window -> Preferences
2. Expand Java -> Build Path
3. Select Classpath Variables
4. Click New
5. Enter Red5 for Name
6. Click Folder...
7. Navigate to your red5 directory (in my case its c:\red5)
8. Click OK
Thats it.. everything should resolve now so long as you have the same
libraries that I do.
Paul
On Tue, Jun 3, 2008 at 2:04 PM, Mondain <mondain at gmail.com> wrote:
> Attached you will find a rough version of what a red5 application project
> should contain, it only gives the base project files (no classes, no libs,
> etc..)
>
> Heres an post from Carl about debugging your red5 apps:
> http://sziebert.net/posts/remote-debugging-red5-applications/
>
> I hope this helps until I can create some docs....
>
> Paul
>
>
> On Tue, Jun 3, 2008 at 1:50 PM, Daniel Rossi <electroteque at gmail.com>
> wrote:
>
>> Yes im lost. To develop and debug my webapp I would need the full lib /
>> conf / red5.jar not just red5.jar. Then have to copy the files over, and
>> launch seperately it seems. Or are you talking about deploying the webapp
>> into the distribution directory ? It's ok I got it working using this build
>> file however compiling the webapps into jar files for deploying doesnt seem
>> to work just yet via ant.
>> With this setup it seems there is 3 or 4 duplicated conf and lib
>> directories. That is source / dist for the red5 source and then source /
>> dist for the custom project source.
>> All I wanted was an example eclipse project checked out via SVN right at
>> the beginning when I started and then I would have understood it better. I
>> do have 2 standalone projects running, but they simply include the classes,
>> it's not running the standalone server.
>>
>>
>> On 04/06/2008, at 6:34 AM, Mondain wrote:
>>
>> I think you're totally missing my point. I don't do any trickery on this
>> end and I personally have 10+ self-contained projects that are Red5
>> applications currently loaded in Flexbuilder, none of which have Red5 source
>> in their trees. Red5 lives in the c:\red5 directory on my box and i use it
>> to build all of my projects. When red5 is updated, I update my library paths
>> to fit.
>> Since my Tomcat / Apache build file analogy was dismissed, look at it like
>> this, if my new car stereo does not work / fit in my car.. would i make it
>> fit, buy an adapter, or contact the manufacturer to change their viehicle?
>> This is open source of course so you are more than welcome to extend,
>> change, or override the code provided; but you shouldn't expect the code or
>> scripts to be made compatible with users environments.
>>
>> Paul
>>
>>
>> On Tue, Jun 3, 2008 at 12:26 PM, Daniel Rossi <electroteque at gmail.com>
>> wrote:
>>
>>> Managed to fudge around with the build order had to include the conf
>>> directory. Runs in eclipse.
>>> Now trying to add a build target for custom webapps, not having a fun
>>> time, as ant can't see where red5.jar is right now and tried to add it to
>>> the webapps.classpath.
>>>
>>> The idea is to reuse the macrodefs available in the red5 ant build or
>>> possibly seperate it so the macrodefs can be included. I don't like
>>> duplicating things then having to update multiple locations with changes.
>>>
>>> This is why it was never done, its a bit of a struggle, the old way is
>>> much easier :D
>>>
>>> <?xml version="1.0" ?>
>>> <project name="Red5-Dist" basedir="." default="dist" xmlns:ivy=
>>> "antlib:org.apache.ivy.ant">
>>>
>>>
>>> <property name="red5.src" value="../red5_server"/>
>>>
>>>
>>> <import file="${red5.src}/build.xml" />
>>> <property name="compiler" value="modern"/>
>>>
>>> <path id="webapps.classpath">
>>> <fileset dir="${lib.dir}">
>>> <filename name="*.jar"/>
>>> </fileset>
>>> <pathelement location="./"/>
>>> <pathelement location="${classes.dir}"/>
>>> </path>
>>>
>>> <target name="update-dist">
>>>
>>> <delete dir="${lib.dir}"/>
>>>
>>>
>>> <copy todir="${config.dir}" overwrite="true">
>>> <fileset dir="${red5.src}/${dist.dir}/conf">
>>> <!-- exclude war config files -->
>>> <exclude name="**/war/**"/>
>>> <exclude name="**/jboss/**"/>
>>> </fileset>
>>> </copy>
>>>
>>> <copy todir="${webapps.dir}" overwrite="true">
>>> <fileset dir="${red5.src}/${webapps.build.dir}">
>>> </fileset>
>>> </copy>
>>>
>>> <copy todir="${lib.dir}">
>>> <fileset dir="${red5.src}/${dist.dir}/${lib.dir}">
>>> </fileset>
>>> </copy>
>>>
>>> <copy todir="${lib.dir}" overwrite="true">
>>> <fileset dir="customlibs">
>>> </fileset>
>>> </copy>
>>>
>>> <copy todir="./">
>>> <fileset dir="${red5.src}/${dist.dir}">
>>> <include name="ivy.xml"/>
>>> <include name="ivyconfig.xml"/>
>>> <include name="red5.jar"/>
>>> <include name="red5.bat"/>
>>> <include name="red5-shutdown.bat"/>
>>> <include name="red5.sh"/>
>>> <include name="red5-shutdown.sh"/>
>>> <include name="license.txt"/>
>>> </fileset>
>>> </copy>
>>>
>>> <chmod file="red5.sh" perm="755"/>
>>> <chmod file="red5-shutdown.sh" perm="755"/>
>>> </target>
>>>
>>> <target name="compile_webapps">
>>> <build-demo name="myapp">
>>> <copy-assets>
>>> <logback webapp="myapp"/>
>>> </copy-assets>
>>> </build-demo>
>>> </target>
>>>
>>> <target name="usage">
>>> <echo message="Type ant -p for available targets"/>
>>> </target>
>>> </project>
>>>
>>> On 04/06/2008, at 3:26 AM, Mondain wrote:
>>>
>>> Ok, heres a quick overview of how I do it.. since I develop with Red5 A
>>> LOT...
>>>
>>> 1. Create a directory called "dev"
>>> 2. Grab the source for red5 and put it in /dev/red5. When i say source i
>>> mean red5/java/server/trunk
>>> 3. Build red5 from command line with ant. Run "ant dist"
>>> 4. Create a directory for the built red5, say /red5
>>> 5. Copy the contents of dev/red5/dist to /red5
>>> 6. Run it to ensure it works
>>> 7. Open Eclipse and create a project a "java web enabled project"
>>> 8. Add /red5/red5.jar to your build libraries
>>> 9. Add any additional libraries from /red5/lib to your build libraries
>>> based on need.. like the spring libs for instance
>>> 10. Create a class that extends the application adapter
>>> 11. Create red5-web.xml in your WEB-INF directory for your project and
>>> modify as needed
>>> 12. Build
>>> 13. Deploy to /red5/webapps
>>> 14. Restart Red5 et voila!
>>>
>>> Paul
>>>
>>> On Tue, Jun 3, 2008 at 9:04 AM, Daniel Rossi <electroteque at gmail.com>
>>> wrote:
>>>
>>>>
>>>> On 04/06/2008, at 1:41 AM, Mondain wrote:
>>>>
>>>> We should make things easier, yes. But look at it this way.. when you
>>>> create a new web application do the Tomcat or Apache folks update their
>>>> build scripts to accommodate your app? Do you create your application under
>>>> their source tree? Of course not.
>>>> I suggest that you create a Jira ticket for "enhancement" and assign it
>>>> to me, I will make this easier.
>>>>
>>>>
>>>> No no. I can have a crack at this. I'm saying there is no suggestion how
>>>> to set such environment even in the docs. It's not really fair for someone
>>>> who doesn't understand java and crossing over from AS2/AS3 and doesn't know
>>>> how to do that themselves if they are checking things out from SVN. My bet
>>>> is everyone still does it this way if they are downloading the source.
>>>>
>>>> So if we compile red5 into dist and copy them over each time we update
>>>> into the external project, and update any overwritten configs, that is the
>>>> suggested thing to do ?
>>>>
>>>> I have some standalone projects which i copy over the red5.jar and
>>>> minimal jars which is the FLVRecorder and Red5Bench clients.
>>>>
>>>> If there is a way to link projects for debugging great. The problems I
>>>> can see are that changes to building webapps in the red5 source have to be
>>>> duplicated in something external. Everytime there is an update or red5 is
>>>> built, the configs and libs have to be copied over to the external project
>>>> where the custom webapps are etc.
>>>>
>>>> It does seem putting custom jars in the lib folder of the webapp does
>>>> not work, ant cannot find them so has to go into the common lib folder, the
>>>> same thing would become a problem if compiling in an external project
>>>> anyway.
>>>>
>>>> It does also seem none of the demo webapps do have custom jars in the
>>>> source folders , so my question still stands why its neccessary if there are
>>>> no jars there ?
>>>>
>>>> I'll put a ticket in anyway though this isn't affecting me as much, I'm
>>>> quite happy to continue as I am as I contribute to the project so i work
>>>> from the source project !!!
>>>>
>>>>
>>>>
>>>> Paul
>>>>
>>>> On Mon, Jun 2, 2008 at 7:13 PM, Daniel Rossi <electroteque at gmail.com>
>>>> wrote:
>>>>
>>>>> It does also look like I cannot put the jars into the webapp lib folder
>>>>> as ant does not look there. They have to go into the main one. I suggest
>>>>> there needs to be something to setup a seperate 'red5' eclipse project, and
>>>>> it also looks like the build file has to be duplicated in terms of the
>>>>> macrodefs for building the webapps etc. Something also needs to be setup so
>>>>> that red5 is compiled into the 'seperate project' so we can debug things. It
>>>>> sounds messy and I have no idea how to do this without alot of work involved
>>>>> each time I update red5 and recompile etc.
>>>>> On 03/06/2008, at 1:23 AM, Mondain wrote:
>>>>>
>>>>> -1
>>>>> Dont remove. This is in clean, to clean the directories so that stale
>>>>> libraries wont exist and cause issues with builds. When a "clean" is run
>>>>> there should not be any "dynamic" files outside of the "dist" folder.
>>>>>
>>>>> Webapps that are not part of the distro should not be under the red5
>>>>> directory.
>>>>>
>>>>> Paul
>>>>>
>>>>> On Mon, Jun 2, 2008 at 4:50 AM, Dominick Accattato <
>>>>> daccattato at gmail.com> wrote:
>>>>>
>>>>>> seems useless to me. +1
>>>>>>
>>>>>>
>>>>>> On Mon, Jun 2, 2008 at 7:25 AM, Daniel Rossi <electroteque at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> ok not a problem.
>>>>>>>
>>>>>>> On 02/06/2008, at 8:43 PM, Steven Gong wrote:
>>>>>>>
>>>>>>> I think it was there for some historic reasons. I remember the
>>>>>>> compiled files were originally placed inside webapps folder instead of dist
>>>>>>> so it is used to clear those files.
>>>>>>>
>>>>>>> +1 from me for removing it.
>>>>>>>
>>>>>>> On Mon, Jun 2, 2008 at 6:34 PM, Daniel Rossi <electroteque at gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Ok to remove it ? It's in the clean target.
>>>>>>>>
>>>>>>>> On 02/06/2008, at 8:23 PM, Steven Gong wrote:
>>>>>>>>
>>>>>>>> I can't figure out what it is there for?
>>>>>>>>
>>>>>>>> On Mon, Jun 2, 2008 at 5:52 PM, Daniel Rossi <
>>>>>>>> electroteque at gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi I am questioning if removing jars from the webapps source
>>>>>>>>> folders are neccessary as building red5 and webapps goes to the dist
>>>>>>>>> directory not the source directory. This bit of ant code is removing custom
>>>>>>>>> jars from my custom webapps and have to keep commenting it out.
>>>>>>>>> <delete includeemptydirs="true">
>>>>>>>>> <fileset dir="${webapps.dir}/" includes="**/*.jar"/>
>>>>>>>>> </delete>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Red5 mailing list
>>>>>>>>> Red5 at osflash.org
>>>>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Best Regards
>>>>>>>> Steven Gong
>>>>>>>>
>>>>>>>> InfraRed5 Red5 Consultant: http://www.infrared5.com,
>>>>>>>> steven at infrared5.com
>>>>>>>>
>>>>>>>> Red5 Developer: http://osflash.org/red5,
>>>>>>>> http://jira.red5.org/confluence/display/~steven/Home<http://jira.red5.org/confluence/display/%7Esteven/Home>
>>>>>>>>
>>>>>>>> Javaflash Project Founder and Maintainer:
>>>>>>>> http://osflash.org/javaflash
>>>>>>>> _______________________________________________
>>>>>>>> Red5 mailing list
>>>>>>>> Red5 at osflash.org
>>>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Red5 mailing list
>>>>>>>> Red5 at osflash.org
>>>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Best Regards
>>>>>>> Steven Gong
>>>>>>>
>>>>>>> InfraRed5 Red5 Consultant: http://www.infrared5.com,
>>>>>>> steven at infrared5.com
>>>>>>>
>>>>>>> Red5 Developer: http://osflash.org/red5,
>>>>>>> http://jira.red5.org/confluence/display/~steven/Home<http://jira.red5.org/confluence/display/%7Esteven/Home>
>>>>>>>
>>>>>>> Javaflash Project Founder and Maintainer:
>>>>>>> http://osflash.org/javaflash
>>>>>>> _______________________________________________
>>>>>>> Red5 mailing list
>>>>>>> Red5 at osflash.org
>>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> Red5 mailing list
>>>>>>> Red5 at osflash.org
>>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Dominick Accattato, CTO
>>>>>> Infrared5 Inc.
>>>>>> www.infrared5.com
>>>>>> _______________________________________________
>>>>>> Red5 mailing list
>>>>>> Red5 at osflash.org
>>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> It is difficult to free fools from the chains they revere. - Voltaire
>>>>> _______________________________________________
>>>>> Red5 mailing list
>>>>> Red5 at osflash.org
>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Red5 mailing list
>>>>> Red5 at osflash.org
>>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> It is difficult to free fools from the chains they revere. - Voltaire
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> Red5 at osflash.org
>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Red5 mailing list
>>>> Red5 at osflash.org
>>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>>
>>>>
>>>
>>>
>>> --
>>> It is difficult to free fools from the chains they revere. - Voltaire
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>>
>>> _______________________________________________
>>> Red5 mailing list
>>> Red5 at osflash.org
>>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>>
>>>
>>
>>
>> --
>> It is difficult to free fools from the chains they revere. - Voltaire
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>
>
> --
> It is difficult to free fools from the chains they revere. - Voltaire
>
--
It is difficult to free fools from the chains they revere. - Voltaire
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20080603/16b728cd/attachment-0001.html
More information about the Red5
mailing list