Re: [Rife-users] importing RIFE examples into Netbeans 4.1
Hi Eddy, NetBeans 5.0 RC1 was released yesterday with further improvements and bug fixes, namely the ability to deploy/consume web services without the Sun Application Server container and support for additional application servers. So, it will be silly to give up on this great IDE. Besides, the final release of NetBeans 5.0 is due later this month. Of course you shouldn't give up on NetBeans, it's one of the better IDEs out there. If someone tells you different, just nod and move on. We all have our preferences, and luckily there are the alternatives available to satisfy most of them. I think that the NetBeans plugin infrastructure and the graph plugin are very promising. If I even get the time, I'll start playing with it. I have used different post-4.0 versions of NetBeans to create web applications with RIFE, but surprise myself by constantly finding new ways of doing certain things better. I will briefly describe how I configure my project to ease development with the RIFE framework. It would be great if you would blog about this on rifers.org. Do you want me to setup an account for you? This is very useful information for the whole community. (2) What directory structure does RIFE expect for a Java project? Is it as rigid as wanting a WEB-INF/classes directory under the project root, or can I organise files differently? I think the reason why rep, elements, templates and sites (the main RIFE configuration folders) fall under the root source folder is to simplify deployment. However, these can be placed anywhere as long as Ant tasks are set up to look in the correct locations. Actually the main reason is to easily and clearly find them. By having them under src and not somewhere in WEB-INF/classes inside a web root directory, they're also much more easily accessible. Under NetBeans, such locations are specified in the project properties. NetBeans also allows you to specify your source folders, so the trick is to create another one for RIFE configuration files. This can be done in three simple steps. 1. Create a folder called rife under src (which is the default source folder for NetBeans projects). 2. Add src/rife as a source folder and label it RIFE Configuration. 3. Move rep, elements, templates and sites under src/rife so that they now appear as packages in the Project window. Please see the screenshot for the final layout. By doing this, I managed to make RIFE configuration files less invasive. My source code, unit tests and RIFE files are completely separated and easier to manage. Let me know what you think about this. I will try and contribute this to the wiki when I have some free time. Great! Please do contribute it to the wiki and blog about it afterwards. Any information on javablogs.com about RIFE is good for the adoption and the credibility of RIFE. Since NetBeans is blogged about a lot too, this might attracts a few people to help out adding plugins or other RIFE/NetBeans related goodies. Thanks for these tips! -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] importing RIFE examples into Netbeans 4.1
Geert Bevin wrote: Hmm, so this seems to not be possible with a freeform ant project? Eddy Young wrote: Geert Bevin wrote: Actually I have a question about RIFE and NetBeans. How do you set a project up so that the libraries it has have their sources linked to it? Also, how do you link to javadocs to them? You use the Library Manager (under the Tools menu) to define a new library (globally accessible by all projects) specifying the jar/folder, source and javadocs. Then, you edit the project properties and specify it as a required library. I don't think it does. But it makes sense as free-from Ant projects will come in a gazillion shapes, and there is no way NetBeans will be able to tackle all of those. Try creating a new NetBeans project with existing sources. Then, it is easy to add your custom Ant tasks. Anyway, I find it easier to work with existing source rather than existing Ant scripts when dealing with non-NetBeans code. Eddy -- http://coding.mu http://priscimon.com/blog ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] importing RIFE examples into Netbeans 4.1
Eddy Young wrote: Geert Bevin wrote: Hmm, so this seems to not be possible with a freeform ant project? [snip] I don't think it does. But it makes sense as free-from Ant projects will come in a gazillion shapes, and there is no way NetBeans will be able to tackle all of those. Try creating a new NetBeans project with existing sources. Then, it is easy to add your custom Ant tasks. Anyway, I find it easier to work with existing source rather than existing Ant scripts when dealing with non-NetBeans code. I forgot to add that NetBeans build.xml is very well structured, allowing overriding the default tasks. This is very useful if you want to add your own Ant tasks. Eddy -- http://coding.mu http://priscimon.com/blog ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] importing RIFE examples into Netbeans 4.1
Ok, thanks, I'll keep that in mind when I play with it again. Eddy Young wrote: Geert Bevin wrote: Hmm, so this seems to not be possible with a freeform ant project? Eddy Young wrote: Geert Bevin wrote: Actually I have a question about RIFE and NetBeans. How do you set a project up so that the libraries it has have their sources linked to it? Also, how do you link to javadocs to them? You use the Library Manager (under the Tools menu) to define a new library (globally accessible by all projects) specifying the jar/folder, source and javadocs. Then, you edit the project properties and specify it as a required library. I don't think it does. But it makes sense as free-from Ant projects will come in a gazillion shapes, and there is no way NetBeans will be able to tackle all of those. Try creating a new NetBeans project with existing sources. Then, it is easy to add your custom Ant tasks. Anyway, I find it easier to work with existing source rather than existing Ant scripts when dealing with non-NetBeans code. Eddy -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] importing RIFE examples into Netbeans 4.1
On Fri, 2006-01-13 at 15:06 +, Eddy Young wrote: Eddy Young wrote: Geert Bevin wrote: Hmm, so this seems to not be possible with a freeform ant project? [snip] I don't think it does. But it makes sense as free-from Ant projects will come in a gazillion shapes, and there is no way NetBeans will be able to tackle all of those. Try creating a new NetBeans project with existing sources. Then, it is easy to add your custom Ant tasks. Anyway, I find it easier to work with existing source rather than existing Ant scripts when dealing with non-NetBeans code. I forgot to add that NetBeans build.xml is very well structured, allowing overriding the default tasks. This is very useful if you want to add your own Ant tasks. It is well-structured and don't get me wrong that's cool, but it's still an IDE build file. So I prefer to let the IDE manage it's build script and I'll manage mine. :) The biggest problem that I see with Netbeans is it's library manager. While it's interesting it it's own light, it really breaks a standard practice of a lot of businesses/open source projects: Keep libs in the source control repository. Granted you can still have your libs there, but you can't attach source to them unless you add your lib to the Library Manager and go wacky there. If the library manager was tied to each project I'd be fine, but it's workspace/application -wide. Eddy I'm using Netbeans more and more these days, so how others build their RIFE apps with it is incredibly interesting. Thanks for the info and keep coding. :) -- JR ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] importing RIFE examples into Netbeans 4.1
I am new to RIFE, and find it a potentially very useful framework for developing applications. I have spent a day or so working through the user's guide and trying out some of the examples. They run successfully, but I am very confused by the directory structure which is very different from that of other apps I have developed and used within the Netbeans environment. The major difficulty for me is the duplication of files, and the difficulty of knowing which copy to edit! For example, it took me a while to work out how to get the friends example running - I edited the datasources.xml file to set up my postgresql connection and wondered why when the application ran it was still looking for a database called rife which didn't exist. The answer was that I had to edit the copy under WEB-INF/classes/rep, not the one under src/rep which seemed to perform no useful function! I have been experimenting with trying to create the examples such as 01_helloworld from scratch within a more familiar directory structure, but this hasn't been successful. I just get Tomcat errors about the resource being unavailable. I suspect this is because RIFE is expecting a certain directory structure and I haven't created it. My questions are: (1) is anyone else using the Netbeans IDE successfully (I note that Eclipse and one other commercial IDE have plugins, but I don't really understand what these do)? Or do I just have to abandon Netbeans altogether? (2) What directory structure does RIFE expect for a Java project? Is it as rigid as wanting a WEB-INF/classes directory under the project root, or can I organise files differently? I hope someone can help me with these newbie issues! With thanks, David Herbert. ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] importing RIFE examples into Netbeans 4.1
David Herbert wrote: [snip] (1) is anyone else using the Netbeans IDE successfully (I note that Eclipse and one other commercial IDE have plugins, but I don't really understand what these do)? Or do I just have to abandon Netbeans altogether? I am. I follow the popular adage, don't fight the system. In this case, I just follow RIFE's directory structure and it works well under NetBeans. I know it's strange that the folders appear as packages under src, but it's only a minor inconvenience. (2) What directory structure does RIFE expect for a Java project? Is it as rigid as wanting a WEB-INF/classes directory under the project root, or can I organise files differently? If you modify your scripts to look for the XML files in a different location then copy those to the correct places at deployment, that should work. I hope someone can help me with these newbie issues! Don't fight the system. ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users