Buildr/Eclipse Hate Each Other

Adam Young ayoung at redhat.com
Fri Mar 19 00:49:30 UTC 2010


How can buildr fetch the sources associated with the jar files?  Not 
being able to debug through the resteasy stuff is starting to bug me, 
and I really wouldrather not fetch them all by hand.


On 03/18/2010 03:32 PM, Jesus M. Rodriguez wrote:
> BTW if there is a better way to change a string inline in a file with ruby,
> feel free to let me know. I tried something Dmitri sent me but that didn't
> do what I wanted from the buildfile. So I cheated used a temp file.
>
> jesus
>
>
> On Thu, Mar 18, 2010 at 3:25 PM, Jesus M. Rodriguez<jmrodri at gmail.com>  wrote:
>    
>> On Thu, Mar 18, 2010 at 2:42 PM, Bryan Kearney<bkearney at redhat.com>  wrote:
>>      
>>>> I can actually agree with this, though I won't make the change just yet :)
>>>> Even if I simplify the tree, I don't think it will solve the CLI vs
>>>> eclipse
>>>> issue we are having.
>>>>
>>>>          
>>> I would prefer we hold off on this until the "Do we need this to build in
>>> Koji" discussion.
>>>
>>> -- bk
>>>
>>>
>>>        
>> I held off on the 'reorging the tree', but I have a 'hack' to fix the original
>> buildr vs eclipse .classpath problem.
>>
>> So here's a summary of what I did:
>>
>> 1) moved all non .java files from src/test/java to src/test/resources
>> 2) removed filter('src/test/java').exclude('*.java').into('target/test/classes').run
>>    from buildfile
>> 3) added a fixeclipse task to the buildfile which removes the output from
>>    src/main/resources, this allows persistence.xml to be copied to the default
>>   project output location of target/classes
>>
>>   So when we add new deps simply run: buildr eclipse fixeclipse
>>
>> Yes a total freakin kludge, but it works :) I think a better way would be
>> if I could depend on the eclipse task from fixeclipse or if I could tap into
>> the eclipse task and 'enhance' it. But I couldn't figure that out, so I went
>> with the path of least resistance.
>>
>> After running buildr eclipse fixeclipse you should be able to run tests from the
>> command line using buildr test and from within eclipse without having to do the
>> hokey pokey.
>>
>> Now moving on to my OTHER task :)
>>
>> jesus
>>
>>      
> _______________________________________________
> candlepin mailing list
> candlepin at lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/candlepin
>    




More information about the candlepin mailing list