Issue Details (XML | Word | Printable)

Key: MJAVADOC-210
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Brett Porter
Reporter: John Casey
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 2.x Javadoc Plugin

Unit tests fail on OS X

Created: 31/Jul/08 04:36 PM   Updated: 01/Aug/08 07:33 AM   Resolved: 01/Aug/08 07:33 AM
Return to search
Component/s: None
Affects Version/s: 2.5
Fix Version/s: 2.5

Time Tracking:
Not Specified

File Attachments: 1. Text File build.log (11 kB)
2. Text File MJAVADOC-210.patch (6 kB)
3. Text File MJAVADOC-210_new.patch (5 kB)
4. Text File org.apache.maven.plugin.javadoc.JavadocReportTest.txt (0.8 kB)

Environment:
Betelgeuse:maven-javadoc-plugin jdcasey$ mvn -v
JDK 1.4
2.0.9
--> Command was: /Users/jdcasey/apps/maven/apache-maven-2.0.9/bin/mvn -v
Maven version: 2.0.9
Java version: 1.4.2_16
OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"

Java Home: /System/Library/Frameworks/JavaVM.framework/Versions/1.4/Home
Issue Links:
Related
 


 Description  « Hide

I'm attaching the build console output and surefire output file for the failing unit test.



Benjamin Bentmann added a comment - 31/Jul/08 05:42 PM

IIRC, Mac has no tools.jar but a similar thing named classes.jar which is already part of the bootstrap class path I believe. So I coded up this patch. I have no Mac box to test it, so it's all up to you John. If it works, I leave it to Vincent to do a final review and maybe apply.


Benjamin Bentmann made changes - 31/Jul/08 05:42 PM
Field Original Value New Value
Attachment MJAVADOC-210.patch [ 36246 ]

Vincent Siveton added a comment - 31/Jul/08 06:44 PM

John, could you zip your target dir?


Vincent Siveton added a comment - 01/Aug/08 05:58 AM

Thanks Benjamin! I modified your patch to make getToolsJar() always returns tools.jar (win unix) or classes.jar (mac) based on [1].
John, could you review this patch since I have no QA env that uses Mac?

[1] http://developer.apple.com/documentation/Java/Conceptual/Java14Development/02-JavaDevTools/JavaDevTools.html#//apple_ref/doc/uid/TP40001884-208117


Vincent Siveton made changes - 01/Aug/08 05:58 AM
Attachment MJAVADOC-210_new.patch [ 36259 ]
Vincent Siveton made changes - 01/Aug/08 05:59 AM
Fix Version/s 2.5 [ 14120 ]
Brett Porter made changes - 01/Aug/08 07:23 AM
Assignee Brett Porter [ brettporter ]
Benjamin Bentmann made changes - 01/Aug/08 07:30 AM
Link This issue is related to MNGFAQ-73 [ MNGFAQ-73 ]
Brett Porter made changes - 01/Aug/08 07:33 AM
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]