File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "Ant task to rmic test class?" Watch "Ant task to rmic test class?" New topic

Ant task to rmic test class?

Marcelo Ruiz

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:
subject: Ant task to rmic test class?
It's not a secret anymore!