DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5241>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5241

JUnit task appears to be started before Javac has ended

           Summary: JUnit task appears to be started before Javac has ended
           Product: Ant
           Version: 1.4.1
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


testsuite test using the junit task.

When I execute the tasks step by step they work just fine.

so 
        ant     compilepackage  // compiles the source files including the unit 
tests.
and
        ant     testpackage             // starts up the unit tests.

So this works fine.

When I use
        ant     testpackage

Ant smoothly starts executing the compilepackage target, but my unit test fails 
(Apparently because the file AllTests.class which I use to group my tests does 
not exist. But that file certainly should exist since it should be created by 
the compilepackage target.

So to summarize the problem:

The JUnit task appears to be started before the files that should be created by 
the preceding Javac task are created. 

Either
        JUnit starts looking for the files it needs before the Javac task has 
ended. 
Or
        The files aren't visible at the moment JUnit starts ( in this case this 
would be an NT-related problem)

Are there any known workarounds ? 

Kind regards,
Sven.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to