Buildr/Eclipse Hate Each Other
Adam Young
ayoung at redhat.com
Thu Mar 18 14:09:52 UTC 2010
Since you are hating on Maven...something to which I can relate...let me
state that we should put all source files in the same tree to begin
with, and then exempt things, as opposed to the Maven way of making a
zilling subdirs. I mean really do we need:
proxy/src/main/humdedum/java/myjavacode/goesinto/anothersubdir/belowthis/com.....
I mean, if JUnit can find all of its tests to execute, can't we find all
of the JUnit tests to remove? OK, maybe that is a bit much, but you get
the idea.
We chose builder because we didn't want to do Maven. If that is the
decision, lets make it stick: get rid of the dumb Maven ideas.
Simplify the source tree.
On 03/17/2010 07:46 PM, Jesus M. Rodriguez wrote:
> On Wed, Mar 17, 2010 at 6:15 PM, Jesus M. Rodriguez<jesusr at redhat.com> wrote:
>
>> I copied src/main/resources/META-INF to src/test/resources/META-INF
>> to see if that would help. buildr copied it to the expected location:
>> target/resources/META-INF, but it still isn't found. Oddly the
>> target/*/resources directories are added to the classpath when
>> running the unit test as seen here: http://pastie.org/874555
>>
> On my way out I had an epiphany while talking to Justin. The problem
> isn't that it can't find persistence.xml it is that when hibernate does find it
> it assumes that the directory is the root so it thinks target/test/resources
> is where it should find the persistent classes. I saw this when trying to get
> it to deploy in JBoss. This is why copying it to target/classes makes it
> work and why having src/main/resources readded in eclipse makes it work
> too because persistence.xml ends up where? that's right target/classes :)
>
> So where do we go from here? We could put back the custom test changes
> we did in buildfile to get the tests to work again in buildr, and possibly post
> process the .classpath to make sure src/main/resources goes to the default
> location of the eclipse project OR we could figure out how to get eclipse to
> copy it as well.
>
> jesus
> _______________________________________________
> candlepin mailing list
> candlepin at lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/candlepin
>
More information about the candlepin
mailing list