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:25:00 GMT
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