[sip-comm-dev] NetBeans issues


#1

I promised to review the netbeans support too many weeks ago, but have finally found a couple of hours of "spare time".

I am working with the latest source from the trunk, but expect my observations will also apply to alpha2.

The latest version of ide/nbproject/ (classpath last changed by damencho) allows me to clean and build the project successfully using the existing ide project targets.

I can also run the full set of project unit tests, although I don't have enough development accounts to test all the protocols. I am satisfied this facility is still OK because I can limit my testing.properties to a subset that runs without errors.

So far, every source file I have opened has displayed the "green square" that means all the includes have been resolved from the source classpath.

The build.xml still has the ability to run a single test using "ant test -Dtest.name=slick_name" from a command prompt. However, the special netbeans target that should perform the same function seems to have disappeared. (I have modified my project.xml to restore the function, but not yet committed the change.)

The special build.xml target "debug-selected-file" still exists. I have modified my project.xml to restore the ide action which allows you to debug a test class (not yet committed).

I cannot spare a lot of time at the moment, so if anyone can help me work more quickly I would be grateful for information. Here are the issues that are giving me trouble:-

1. The two files /ide/nbproject/ide-file-targets.xml and ide-targets.xml do not seem to be active. They look as if someone used the netbeans Generate wizard to produce these files, but it does not seem to me that they have been "wired" into the project.xml file. Am I right in suspecting they are currently redundant?

2. I can (with my modifed ide actions) debug a ServiceLick (e.g. gibberish or protocol). I can set a breakpoint in the start method and step through it with the debugger. It makes no difference whether I ask to debug the ServiceLick itself, or an individual Test class.

When I set a breakpoint in one of the individual tests, e.g. gibberish.TestAccountInstallation.setup() or gibberish.TestAccountInstallation.testInstallAccount()
the debugger does not stop and so the test runs to completion.

Is anyone successfully debugging the test suites with netbeans?

Brian

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net


#2

Have you set debuging source for the project ?

···

On 11/22/07, Brian Burch <brian@pingtoo.com> wrote:

I promised to review the netbeans support too many weeks ago, but have
finally found a couple of hours of "spare time".

I am working with the latest source from the trunk, but expect my
observations will also apply to alpha2.

The latest version of ide/nbproject/ (classpath last changed by
damencho) allows me to clean and build the project successfully using
the existing ide project targets.

I can also run the full set of project unit tests, although I don't have
enough development accounts to test all the protocols. I am satisfied
this facility is still OK because I can limit my testing.properties to a
subset that runs without errors.

So far, every source file I have opened has displayed the "green square"
that means all the includes have been resolved from the source classpath.

The build.xml still has the ability to run a single test using "ant test
-Dtest.name=slick_name" from a command prompt. However, the special
netbeans target that should perform the same function seems to have
disappeared. (I have modified my project.xml to restore the function,
but not yet committed the change.)

The special build.xml target "debug-selected-file" still exists. I have
modified my project.xml to restore the ide action which allows you to
debug a test class (not yet committed).

I cannot spare a lot of time at the moment, so if anyone can help me
work more quickly I would be grateful for information. Here are the
issues that are giving me trouble:-

1. The two files /ide/nbproject/ide-file-targets.xml and ide-targets.xml
do not seem to be active. They look as if someone used the netbeans
Generate wizard to produce these files, but it does not seem to me that
they have been "wired" into the project.xml file. Am I right in
suspecting they are currently redundant?

2. I can (with my modifed ide actions) debug a ServiceLick (e.g.
gibberish or protocol). I can set a breakpoint in the start method and
step through it with the debugger. It makes no difference whether I ask
to debug the ServiceLick itself, or an individual Test class.

When I set a breakpoint in one of the individual tests, e.g.
gibberish.TestAccountInstallation.setup() or
gibberish.TestAccountInstallation.testInstallAccount()
the debugger does not stop and so the test runs to completion.

Is anyone successfully debugging the test suites with netbeans?

Brian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net