[ 
https://issues.apache.org/jira/browse/BUILDR-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12620495#action_12620495
 ] 

Assaf Arkin commented on BUILDR-122:
------------------------------------

In the past, compile.sources would always include src/main/java, back when we 
only supported Java, so it was necessary to test for existence.  That's no 
longer true, and resources.source doesn't return src/main/resources either, 
unless it exists.

So assume that if compile.sources or resources.source return a path, that path 
is supposed to exist.  The sticky part is, as with apt, you may need to run a 
task to generate it.  Running that task from the eclipse task would work when 
you set the project up, but it could vanish if you run buildr clean (or even 
buildr build could remove it and fail to re-create it).


> eclipse task should not check for directory existence
> -----------------------------------------------------
>
>                 Key: BUILDR-122
>                 URL: https://issues.apache.org/jira/browse/BUILDR-122
>             Project: Buildr
>          Issue Type: Bug
>          Components: IDE
>    Affects Versions: 1.3.3
>         Environment: buildr trunk revision 682463
>            Reporter: Lacton
>            Priority: Minor
>         Attachments: BUILDR-122.spec.patch
>
>
> The eclipse task checks for source directories' existence when generating the 
> .classpath file. Source folders that get generated later (e.g., during the 
> build) are missing from the .classpath file.
> Proposed fix: remove the two "if File.exist? project.path_to(path)" lines in 
> the FileTask for '.classpath' in eclipse.rb.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to