[
https://issues.apache.org/jira/browse/BUILDR-105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614496#action_12614496
]
Alexis Midon commented on BUILDR-105:
-------------------------------------
Hi Shane,
I don't really understand your issue. BUILDR-92 adds target/resources and
target/test/resources (mind the target parent dir) into the dependency list and
exclude them from sources because IDEA does not manage multiple output
directories. Doing so you don't get duplicates in your sources and classpaths
generated for tests or applications are valid. Let me know what I'm missing.
I attached a sample project with a Main class, and a unit test. Both of them
pick resources seamlessly when ran from IDEA.
Since Buildr 1.3 test/resources and test/classes are not merged by compile
task. At first it seems a shame, but on second thoughts and once your project
files are set up properly I really like it. It makes thing clearer.
Alexis
> Running applications in IDEA 7x impacted by recent patch
> --------------------------------------------------------
>
> Key: BUILDR-105
> URL: https://issues.apache.org/jira/browse/BUILDR-105
> Project: Buildr
> Issue Type: Bug
> Components: IDE
> Affects Versions: 1.3.1
> Environment: 1.3.2 prerelease
> Reporter: Shane Witbeck
> Attachments: proj-idea.zip
>
>
> The patch which was applied from
> https://issues.apache.org/jira/browse/BUILDR-92 impacts the ability to run
> applications in IDEA. Because the test/resources directory is added as a
> dependency to the main classpath running an application takes on test
> properties, etc. which are in test/resources.
> This seems to be a catch 22 scenario. If we remove test/resources from the
> main classpath, then tests will fail. If we keep it, then running an
> application takes on the test properties, etc.
> The only solution I can think of is to copy target/test/resources to
> target/test/classes?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.