Aladdin - Scala Bugtracking
[#1054] project: scala-doc priority: medium category: bug
submitter assigned to status date submitted
Nikolay Stephane fixed 2007-04-18 13:10:53.0
subject [contrib #428] Resource files still not found
code
Contrib 390 is marked as "Fixed in 2.4.0-final".  Using XP Pro SP2, I still see the error.

From Windows' Command Prompt:-

C:\...>scaladoc.bat -version
Scala compiler version 2.4.0-final -- (c) 2002-2007 LAMP/EPFL

C:\...>scaladoc.bat -d ../docs src/*.scala
error: Resource file 'style.css' not found
error: Resource file 'script.js' not found
two errors found


From ant:-
 [scaladoc] error: Resource file 'style.css' not found
 [scaladoc] error: Resource file 'script.js' not found
 [scaladoc] ...\build.xml:89: Document failed with 2 errors; see the documenter error output for details.
... (stacktrace)



From a cygwin prompt, this time running a nightly build:-

$ scaladoc -version
Scala compiler version 2.4.0.10647.20070410-031836 -- (c) 2002-2007 LAMP/EPFL

$ scaladoc -d ../docs  src/*.scala
Exception in thread "main" java.lang.Error: Resource file 'style.css' not found
	at scala.Predef$.error(Predef.scala:74)
	at scala.tools.nsc.doc.ModelFrames$$anonfun$11.apply(ModelFrames.scala:319)
	at scala.tools.nsc.doc.ModelFrames$$anonfun$11.apply(ModelFrames.scala:305)
	at scala.List.foreach(List.scala:699)
	at scala.tools.nsc.doc.ModelFrames$class.copyResources(ModelFrames.scala:305)
	at scala.tools.nsc.doc.DocDriver.copyResources(DocDriver.scala:6)
	at scala.tools.nsc.doc.DocDriver.process(DocDriver.scala:54)
	at scala.tools.nsc.Main$.process(Main.scala:65)
	at scala.tools.nsc.Main$.main(Main.scala:79)
	at scala.tools.nsc.Main.main(Main.scala)

what happened
Resource file 'style.css' not found
what expected successful execution
[back to overview]
Changes of this bug report
Nikolay  edited on  2007-04-18 13:11:52.0
contribution #428
Stephane  edited on  2007-04-18 17:11:09.0
Name of a resource is a '/'-separated path name ! Fixed in rev 10732.