Bug 1292777

Summary: Stylesheet.css not found for javadoc generation
Product: [Fedora] Fedora Reporter: Raphael Groner <projects.rg>
Component: antAssignee: Michael Simacek <msimacek>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: akurtako, jaromir.capik, java-sig-commits, krzysztof.daniel, mizdebsk, mmatejov, msimacek, msrb, puntogil
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-01-05 21:56:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1208281    
Attachments:
Description Flags
build.log
none
root.log none

Description Raphael Groner 2015-12-18 10:22:19 UTC
Description of problem:
  [javadoc] Constructing Javadoc information...
  [javadoc] Creating destination directory: "/builddir/build/BUILD/mockito-1.10.19/target/javadoc/"
  [javadoc] Standard Doclet version 1.8.0_65
  [javadoc] Building tree for all the packages and classes...
  [javadoc] javadoc: error - java.io.FileNotFoundException: /builddir/build/BUILD/mockito-1.10.19/javadoc/stylesheet.css (No such file or directory) encountered while 
  [javadoc] performing copy.
  [javadoc] javadoc: error - /builddir/build/BUILD/mockito-1.10.19/javadoc/stylesheet.css (No such file or directory)
  [javadoc] Generating /builddir/build/BUILD/mockito-1.10.19/target/javadoc/serialized-form.html...
  [javadoc] Copying file StandardDocFile[file:/builddir/build/BUILD/mockito-1.10.19/javadoc/stylesheet.css] to file stylesheet.css...
  [javadoc] 2 errors

Version-Release number of selected component (if applicable):
ant-1.9.4-7.fc22.noarch

How reproducible:
yes

Steps to Reproduce:
1. fedpkg clone mockito ; cd mockito && fedpkg switch-branch f22
2. fedpkg scratch-build
3.

Actual results:
see error above

Expected results:
build package mockito works

Additional info:
Not sure if ant is the right component to blame.

Comment 2 Raphael Groner 2015-12-18 10:23:40 UTC
Created attachment 1107072 [details]
root.log

Comment 3 Raphael Groner 2015-12-18 14:56:03 UTC
This bug is reproducible in F22 only, but build works without this error in F23 and rawhide.

Comment 4 gil cattaneo 2015-12-22 15:59:30 UTC
for me it's not a problem
at least should be changed "stylesheetfile="javadoc/stylesheet.css"" with 
"additionalparam="-Xdoclint:none""
cause of many errors during javadoc task @ https://kojipkgs.fedoraproject.org//work/tasks/8578/12238578/build.log

Comment 5 Raphael Groner 2015-12-25 15:19:17 UTC
Gil, can you explain with more details what you write in comment #4, please?

Comment 6 Fedora Update System 2015-12-25 15:22:38 UTC
mockito-1.10.19-7.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-9e9b03cde3

Comment 7 gil cattaneo 2015-12-25 21:56:53 UTC
(In reply to Raphael Groner from comment #5)
> Gil, can you explain with more details what you write in comment #4, please?

javadoc/stylesheet.css should be considered as "optional" resources
and for remove some javadoc warning you can use additionalparam="-Xdoclint:none"
in place of of the stylesheetfile instruction

the build fails because of unavailable aqute-bnd executable (/usr/bin/bnd) not for the missing css file

  [javadoc] 2 errors
     [copy] Copying 1 file to /builddir/build/BUILD/mockito-1.10.19/target/javadoc/org/mockito
BUILD SUCCESSFUL
Total time: 6 seconds
+ pushd target
~/build/BUILD/mockito-1.10.19/target ~/build/BUILD/mockito-1.10.19
+ bnd wrap --output mockito-core-1.10.19.bar --properties ../conf/mockito-core.bnd --version 1.10.19 mockito-core-1.10.19.jar
/var/tmp/rpm-tmp.mirBfs: line 35: bnd: command not found

other issues with the latest changes in the spec file:
the NOTICE file should be considered as part of the package license
so it should be used for this the %license macro
e.g. %license LICENSE NOTICE

Comment 8 Fedora Update System 2015-12-29 00:56:22 UTC
mockito-1.10.19-7.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-9e9b03cde3

Comment 9 Fedora Update System 2015-12-30 20:55:17 UTC
mockito-1.10.19-7.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b87e13ba8a

Comment 10 Fedora Update System 2016-01-05 21:56:21 UTC
mockito-1.10.19-7.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2016-01-08 03:22:55 UTC
mockito-1.10.19-7.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.