• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Ant task to rmic test class?

 
Marcelo Ruiz
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic