This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes problem with ant, junit, NetBeans, Java, or me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "problem with ant, junit, NetBeans, Java, or me" Watch "problem with ant, junit, NetBeans, Java, or me" New topic
Author

problem with ant, junit, NetBeans, Java, or me

Charles Bradley
Greenhorn

Joined: Oct 04, 2009
Posts: 25
I see you have forums for ant, junit, and NetBeans. Rather than crosspost, I'll start here. I have a Java project underway, 15 classes so far, developed in NetBeans. About 12 have been thoroughly tested by junit tests constructed from skeletons provided by NetBeans. Now instructor says use ant to make the package to turn in. Just take this and make a few obvious tweaks. After some tweaking, I still can not get the tests to run. Error messages indicate that all the test programs are found. I think the problem lies in the line that begins <jvmarg in the following fragment from the supplied file, but I don't know what it is supposed to mean.



A pointer to the correct forum, or even an explanation would be great. Thanks.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It might make sense to include what's actually happening.
Charles Bradley
Greenhorn

Joined: Oct 04, 2009
Posts: 25
Here is the ant output, cut off after two of the tests.


... for about a dozen more, then


This file is unknown to me:
.Users.sam.Desktop.spell.config.configuration.properties
If I knew what it was supposed to contain, I probably could figure out a place to put that content.
Thanks.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It's probably supposed to contain JVM arguments--if you don't need any JVM args then you may not need the file at all.

http://ant.apache.org/manual/OptionalTasks/junit.html#nested
Charles Bradley
Greenhorn

Joined: Oct 04, 2009
Posts: 25
Commenting out the mysterious line allowed the tests to run. Thanks.

Now I'll take a detour to find out why the idea of "write once, run anywhere" is compatible with the JVM having arguments, and then I can go back to finding out why the test results from the ant script do not match the results when I run the test from within NetBeans. This is not a request for help; I might be back, but I need to do some research first. Thanks again.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38509
    
  23
Too difficult a question for "beginning". Moving.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: problem with ant, junit, NetBeans, Java, or me