I have no idea how netbeans works, but here's what I did with Eclipse to do
some debugging and some minor hacking. I ran the full build and created a
WAR from the 'weblogger' app. I then just imported the WAR into Eclipse,
which created a web project that I could then deploy to any server. I just
dropped a 'roller-custom.properties' file in that projects resources folder,
which Eclipse build and deploys to the 'WEB-INF/classes' folder. To get
things working quickly, I used derbry by dropping it into the 'WEB-INF/lib'
folder (before creating WAR) along with the javax.mail JAR. At that point I
could run a server and debug it. From there, I just extracted the
'roller-web.jar' code into a second project and removed the JAR from the web
project and made the web project dependant on the 'roller-web' project. Then
I could hack up the roller web code as desired.
-Nathan
On Tue, Jun 10, 2008 at 2:54 PM, Java Web Development <
[EMAIL PROTECTED]> wrote:
> I've played around with Roller in the past but this is my first time trying
> to implement a new feature. I'm working with Netbeans 6.1 and have to
> admit
> the little bit of ant I learned years ago isn't helping me.
>
> Right now, to test my changes, I modified the
> trunk/apps/weblogger/build.xml
> to split up dist into dist-build and dist so that I don't have to build the
> war file if I don't want to. (Saves some time)
>
> I added a context.xml for the embedded tomcat server in netbeans which
> points to webapps/build. I set the context to reloadable but I get SEVERE:
> Error listenerStart which prevents it from restarting. So I have to then
> restart tomcat.
>
> What I want to be able to do is set up a target that will undeploy,
> dist-build then redeploy with one click on the context menu. Also to be
> able
> to do the same to debug the webapp.
>
> It seems like things are there I just need to define some custom properties
> like ${staging} but it's not clear to me where to do this.
>
> I'm working with the sources I got from subversion a couple of days ago.
>
> One more question, is there a page that describes how to submit patches?
> This would be my first contribution back to an OS project that I didn't
> start. I'm almost done and I'd be able to get up to speed with roller
> faster
> if I could use the integrated debugger.
>
> Thanks
>
>
>