[
https://issues.apache.org/jira/browse/BUILDR-203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12645070#action_12645070
]
Ittay Dror commented on BUILDR-203:
-----------------------------------
yes, if there's no src/main/java, it will take no time at all.
but the scenario is that there are N java projects, now, since guess_compiler
is called after each of these projects are called, all their source directories
will be scanned. the overhead is particularly large if i only invoke
projectN:build
> 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.