[
https://issues.apache.org/jira/browse/BUILDR-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645025#action_12645025
]
Assaf Arkin commented on BUILDR-203:
------------------------------------
That's interesting. When I run Dir["**/*"] on my home directory (which is
huge), it takes forever and a day. But when I run
Dir["src/main/java/**/*.{class}"], which is what applies_to would do, it takes
no time at all. Since there's no src/main/java directory to begin with, there
are no files to glob inside that path. I wonder why the Windows implementation
would be different.
> Compiler guessing very inefficient
> ----------------------------------
>
> Key: BUILDR-203
> URL: https://issues.apache.org/jira/browse/BUILDR-203
> Project: Buildr
> Issue Type: Bug
> Components: Compilers
> Affects Versions: 1.3.2
> Reporter: Ittay Dror
> Fix For: 1.3.4
>
>
> Buildr::Compiler::Base#applies_to? uses Dir.glob to scan the source tree for
> files matching the compiler's extension. This effectively scans all the files
> under that directory.
> Since guess_compiler is called for each defined project (in
> CompileTask#associate_with), files for all projects are scanned, not just for
> the project that is about to be built.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.