karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Pieber <anpie...@gmail.com>
Subject Re: debug karaf itests
Date Fri, 16 Nov 2012 05:29:00 GMT
Hey Filippo,

Why do you add the KarafDistributionOption.debugConfiguration directly
to the exam KarafTestContainer? It would be enough adding the Option
to your own configuration. I'm not sure what I'm missing?

Kind regards,
Andreas

On Fri, Nov 16, 2012 at 6:25 AM, Andreas Pieber <anpieber@gmail.com> wrote:
> Hey Filippo,
>
> I'm not
>
> On Wed, Nov 14, 2012 at 9:33 PM, Filippo Balicchia <fbalicchia@gmail.com> wrote:
>> Hi,
>>
>> I'd like to debug karaf itests from eclipse, and i try with
>>
>> -> export KARAF_DEBUG = true
>> -> mvnDebug test
>>
>> but nothing...
>>
>> To do this I have add KarafDistributionOption.debugConfiguration to
>> KarafTestContainer.
>>
>> I don't use static import cause was a simple test
>>
>> +++ tooling/exam/container/src/main/java/org/apache/karaf/tooling/exam/container/internal/KarafTestContainer.java
>> @@ -101,7 +101,8 @@
>>                              systemProperty(RMI_NAME_PROPERTY).value(name),
>>                              invokerConfiguration,
>>                              systemProperty(EXAM_INJECT_PROPERTY).value("true"),
>> -
>> editConfigurationFileExtend("etc/system.properties",
>> "jline.shutdownhook", "true")
>> +
>> editConfigurationFileExtend("etc/system.properties",
>> "jline.shutdownhook", "true"),
>> +                            KarafDistributionOption.debugConfiguration()
>>                      ));
>>              target = new RBCRemoteTarget(name, registry.getPort(),
>> subsystem.getTimeout());
>>
>>
>>
>> with this change i can debug it from eclipse but
>> Could you tell me please if there is a smarter or a better way ?
>>
>> Thanks for help
>>
>> Regards
>>
>> --Filippo

Mime
View raw message