diff options
author | Paul Phillips <paulp@improving.org> | 2010-07-02 20:50:29 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-07-02 20:50:29 +0000 |
commit | 322e856f132c4ee8ac651848a041b693f830371b (patch) | |
tree | c49bf1cb826cad39633fdb558244cc9427a59e32 /src/compiler/scala/tools/nsc/plugins | |
parent | 78b419c329996995ba26b269583f8b375e3bfe8c (diff) | |
download | scala-322e856f132c4ee8ac651848a041b693f830371b.tar.gz scala-322e856f132c4ee8ac651848a041b693f830371b.tar.bz2 scala-322e856f132c4ee8ac651848a041b693f830371b.zip |
Routed all places in trunk which look for jar f...
Routed all places in trunk which look for jar files through the same
function, and then changed the default behavior to recognize jars even
if they don't have a *.jar extension by squinting at the first few bytes
of the file.
Closes #3000 (THE AMAZING TICKET 3000!), review by phaller.
Diffstat (limited to 'src/compiler/scala/tools/nsc/plugins')
-rw-r--r-- | src/compiler/scala/tools/nsc/plugins/Plugin.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/plugins/Plugin.scala b/src/compiler/scala/tools/nsc/plugins/Plugin.scala index 1b7e208334..49bbb12a9a 100644 --- a/src/compiler/scala/tools/nsc/plugins/Plugin.scala +++ b/src/compiler/scala/tools/nsc/plugins/Plugin.scala @@ -133,7 +133,7 @@ object Plugin { val alljars = (jars ::: (for { dir <- dirs if dir.isDirectory entry <- dir.toDirectory.files.toList sortBy (_.name) - if entry.extension == "jar" + if Path.isJarOrZip(entry) pdesc <- loadDescription(entry) if !(ignoring contains pdesc.name) } yield entry)).distinct |