diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-28 20:32:07 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2016-09-28 20:32:07 -0400 |
commit | 8bd15f12236a6ce3d65952dbcbfc1d25e7a73e32 (patch) | |
tree | a8e7cf7b65fce32fb95714a4a49b928db817ef01 /stage2 | |
parent | 1694dd3bc3cd407c3784080d38778030385ae758 (diff) | |
download | cbt-8bd15f12236a6ce3d65952dbcbfc1d25e7a73e32.tar.gz cbt-8bd15f12236a6ce3d65952dbcbfc1d25e7a73e32.tar.bz2 cbt-8bd15f12236a6ce3d65952dbcbfc1d25e7a73e32.zip |
Use correct main method for Dottydoc - the java interface
and work around the fact that the main method is not static (huh?)
Diffstat (limited to 'stage2')
-rw-r--r-- | stage2/plugins/Dotty.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/stage2/plugins/Dotty.scala b/stage2/plugins/Dotty.scala index c6acbcd..5700e4d 100644 --- a/stage2/plugins/Dotty.scala +++ b/stage2/plugins/Dotty.scala @@ -83,9 +83,10 @@ class DottyLib( logger.lib("creating docs for source files "+args.mkString(", ")) redirectOutToErr{ runMain( - "dotty.tools.dottydoc.DottyDoc", + "dotty.tools.dottydoc.api.java.Dottydoc", args, - dottyDependency.classLoader(classLoaderCache) + dottyDependency.classLoader(classLoaderCache), + fakeInstance = true // this is a hack as Dottydoc's main method is not static ) } } |