[ 
https://issues.apache.org/jira/browse/BUILDR-190?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Antoine Toulme resolved BUILDR-190.
-----------------------------------
    Resolution: Fixed
      Assignee: Antoine Toulme

The spec has been in for some time:

  it 'should allow supressing compilation' do
    write 'src/main/java/package/Test.java', 'class Test {}'
    define 'foo' do
      compile.sources.clear
    end
    project('foo').compile.invoke
    Dir['target/classes/*'].should be_empty
  end

Closing.

> make it easy / efficient to include / exclude source patterns from compilation
> ------------------------------------------------------------------------------
>
>                 Key: BUILDR-190
>                 URL: https://issues.apache.org/jira/browse/BUILDR-190
>             Project: Buildr
>          Issue Type: Wish
>    Affects Versions: 1.3.2
>            Reporter: Ittay Dror
>            Assignee: Antoine Toulme
>             Fix For: 1.5
>
>
> I have cases where there are source files that should not be compiled (and 
> yet it is desired to keep them in scm). 
> i can use FileList inside the project definition (assign to compile.sources), 
> but then it means the files are scanned during the definition phase (where 
> afterwards this project's build may not be invoked)
> it would be nice if compile.sources could be a proc (or contain proc) that is 
> evaluated only before compilation



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to