jira-importer commented on issue #538: URL: https://github.com/apache/maven-javadoc-plugin/issues/538#issuecomment-2957334176
**[Mark Proctor](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mdproctor)** commented Please replace the existing method with these two new methods: /** * Method to get the path of the doclet artifacts used in the -docletpath option. * * Either docletArtifact or doclectArtifacts can be defined and used, not both, docletArtifact * takes precedence over doclectArtifacts. docletPath is always appended to any result path * definition. * * @return the path to jar file that contains doclet class file separated with a colon (:) * on Solaris and a semi-colon (;) on Windows * @throws MavenReportException */ private String getDocletPath() throws MavenReportException { StringBuffer path = new StringBuffer(); if ( !isDocletArtifactEmpty( docletArtifact ) ) { path.append( getArtifactAbsolutePath( docletArtifact ) ); } else if ( docletArtifacts != null ) { for ( int i = 0; i < docletArtifacts.length; i++ ) { if ( !isDocletArtifactEmpty( docletArtifacts[i] ) ) { path.append( getArtifactAbsolutePath( docletArtifacts[i] ) ); if ( i < docletArtifacts.length - 1 ) { path.append( File.pathSeparator ); } } } } if ( !StringUtils.isEmpty( docletPath ) ) { path.append( docletPath ); } if ( StringUtils.isEmpty( path.toString() ) ) { getLog().warn( "No docletpath option was found. Please review <docletpath/> or <docletArtifact/>" + " or <doclets/>." ); } return path.toString(); } private boolean isDocletArtifactEmpty(DocletArtifact docletArtifact) { if ( docletArtifact == null ) { return true; } return ( StringUtils.isEmpty( docletArtifact.getGroupId() ) && StringUtils.isEmpty( docletArtifact.getArtifactId() ) && StringUtils.isEmpty( docletArtifact.getVersion() ) ) ; } -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
