db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karan malhi <karan.ma...@gmail.com>
Subject Re: Run single TCK test?
Date Thu, 22 Sep 2005 18:43:45 GMT
Hi Matthew,

I dont use netbeans, but i found some stuff on mevenide website which 
might be useful to you:

"when running any of the debug goals, the IDE will attempt to attach the 
debugger to the process started by the goal. These properties can be 
used to disable or customize the automatic debugger attaching. (In the 
future the IDE should be also able to start a listening debugger and let 
the plugin connect to it.)

In case you create your own goals, completely avoiding the 
maven-mevenide-plugin, then please add a line starting with 
|[mevenide-debug-start]| into the output of the goal. The IDE is 
notified that way that it should start the attaching process."

Looking from the above it seems that you should add the line 
<echo>[mevenide-debug-start]</echo> as the first line in the goal you 
want to execute.

Hope this helps.


Karan Malhi

Matthew T. Adams wrote:

>I'm using NetBeans as my IDE for this stuff.  I found that if I use the
>NetBeans "Build" command, which is mapped to the Maven goal "jar:install", I
>build what I want (tck20 w/out installSchema).
>What I'm trying to do now is to run a single test within the IDE so that I
>can debug it.  I'm not having good luck with that.  NetBeans launches the
>goal mevenide:debug-artifact, which then chokes:
>[mevenide-debug-start] Starting the debugged application...    [echo]
>jvmargs=-Xdebug -Xnoagent -Djava.compiler=NONE
>File...... C:\Documents and
>Element... ant:java
>Line...... 122
>Column.... 73
>Classname must not be null.
>Total time: 11 seconds
>Finished at: Thu Sep 22 09:26:09 PDT 2005
>All of the debug jvmargs look good -- I don't know why I'm getting the
>"Classname must not be null" message.  I need to add the arg
>-Djdo.tck.cfglist=detach.list as well, but it should still run as is...
>Any ideas anyone?
>-----Original Message-----
>From: Craig Russell [mailto:Craig.Russell@Sun.COM] 
>Sent: Thursday, September 22, 2005 9:26 AM
>To: jdo-dev@db.apache.org
>Subject: Re: Run single TCK test?
>Hi Matthew, 
>On Sep 22, 2005, at 9:09 AM, Michelle Caisse wrote:
>Matthew T. Adams wrote:
>Yes, I only want to run installSchema once, unless I'm going to lunch or
>something while it runs.  I'd like to be able to build tck20, though,
>without running the installSchema target.  
>I think something got lost in translation. When you build tck20 for the
>first time, the target directory is created. This directory contains the log
>files, the database, class files, and enhanced classes. If you then
>runtck.jdori, it will use everything that's already built and won't do
>anything except repackage the enhanced classes. Specifically, it won't run
>If you want to do a clean build without installing schema, you can rm
>target/classes, target/enhanced and then runtck.jdori. That will rebuild the
>classes from source, enhance, and run the tests.
>Craig Russell
>Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
>408 276-5638 mailto:Craig.Russell@sun.com
>P.S. A good JDO? O, Gasp!

Karan Singh

View raw message