wood burning stoves 2.0*
The moose likes Distributed Java and the fly likes Ant task to rmic test class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Ant task to rmic test class?" Watch "Ant task to rmic test class?" New topic
Author

Ant task to rmic test class?

Marcelo Ruiz
Greenhorn

Joined: Dec 19, 2007
Posts: 25
I am working on a java project that MUST use rmic (so automatic stub generation provided by java 1.5+ is NOT an option).
As part of the developing process, I created several JUnit tests, and used the rmic ant task to create the stubs and skeletons as a post-compile task.
The problem I am facing is that rmic does not create stubs and skeletons for test classes. Is there any way I can achieve that?
I am posting a link with a tiny Netbeans project with classes with no body that shows my problem. I created an ant task call 'clean-and-compile-all' that does trigger the rmic ant task, but it is not working as I expect: it just creates the stubs and skeletons for the source directory, nothing for the classes implementing Remote that are in the test one.
I don't want to clutter my source code with test classes.
I will really appreciate if any of you can tell me what I am doing wrong here.

link: Netbeans project
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant task to rmic test class?
 
Similar Threads
Orion server and the magic of RMI?
RMI conformance
Confused about RMI
ant rmic task, and running out of stack space
Cant find my skeleton class file-Rmi Doubt(HFJ)