You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by AndyG <an...@orprovision.com> on 2013/06/03 12:37:20 UTC
Default include exclude order should be exclude-include
Pulled my hair out on this the other day until I realized what was missing.
https://issues.apache.org/jira/browse/OPENEJB-2030
Shall I commit, or is there a reason for it to be the other way round, which
doesn't make sense considering these are the defaults:
openejb.deployments.classpath.include="" //include nothing
openejb.deployments.classpath.exclude=".*" //exclude everything
--
View this message in context: http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Default include exclude order should be exclude-include
Posted by Jean-Louis MONTEIRO <je...@gmail.com>.
Is there somebody talking about beers here?
If so, I'm also one of them ;)
JLouis
2013/6/7 Romain Manni-Bucau <rm...@gmail.com>
> np, i looked for it a moment the first time and David is the guy we need to
> pay a beer ;)
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/6/7 AndyG <an...@orprovision.com>
>
> > Thanks Romain, you're on top of everything! If I ever get to meet I'll be
> > sure to get you a beer
> >
> >
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663534.html
> > Sent from the OpenEJB Dev mailing list archive at Nabble.com.
> >
>
--
Jean-Louis
Re: Default include exclude order should be exclude-include
Posted by Romain Manni-Bucau <rm...@gmail.com>.
np, i looked for it a moment the first time and David is the guy we need to
pay a beer ;)
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/6/7 AndyG <an...@orprovision.com>
> Thanks Romain, you're on top of everything! If I ever get to meet I'll be
> sure to get you a beer
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663534.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
Re: Default include exclude order should be exclude-include
Posted by AndyG <an...@orprovision.com>.
Thanks Romain, you're on top of everything! If I ever get to meet I'll be
sure to get you a beer
--
View this message in context: http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663534.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Default include exclude order should be exclude-include
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Andy, just commit it here https://cms.apache.org/tomee/publish
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/6/7 AndyG <an...@orprovision.com>
> What do I need to do to get the site to update from the svn repo? Thought a
> commit would trigger it.
>
> Andy.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663529.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
Re: Default include exclude order should be exclude-include
Posted by AndyG <an...@orprovision.com>.
What do I need to do to get the site to update from the svn repo? Thought a
commit would trigger it.
Andy.
--
View this message in context: http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663529.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Default include exclude order should be exclude-include
Posted by AndyG <an...@orprovision.com>.
It is fine by me. Now I know what needs to be configured. I don't want to
break any existing functionality.
I will include some more relevant info in the docs that may help others
facing the same issue.
--
View this message in context: http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663457.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Default include exclude order should be exclude-include
Posted by Romain Manni-Bucau <rm...@gmail.com>.
committed it (revert of the default value + quartz-2 exclusion)
if we change it i'd like it to be for another release since it will
probably break some apps/tests and we'll really need to rewrite the
exclusion logic to be more efficient
Is it ok this way or do we need something better right now Andy?
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/6/3 Romain Manni-Bucau <rm...@gmail.com>
> hmm, think we should revert it,
>
> it generally leads to scanning far more than needed (71 jars vs 3 in a
> simple test).
>
> If your issue was the quartz one we can simply get a better exclusion
> (quartz-2. instead of quartz- should be enough to fix it)
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/6/3 AndyG <an...@orprovision.com>
>
>> We do, which is why I was expecting the one line include to override it -
>> which IMHO it should, without having to add the explicit order property to
>> correct it.
>>
>> I've committed, we'll see if it's a problem on the box - Working fine here
>> now.
>>
>>
>>
>> --
>> View this message in context:
>> http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663423.html
>> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>>
>
>
Re: Default include exclude order should be exclude-include
Posted by Romain Manni-Bucau <rm...@gmail.com>.
hmm, think we should revert it,
it generally leads to scanning far more than needed (71 jars vs 3 in a
simple test).
If your issue was the quartz one we can simply get a better exclusion
(quartz-2. instead of quartz- should be enough to fix it)
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/6/3 AndyG <an...@orprovision.com>
> We do, which is why I was expecting the one line include to override it -
> which IMHO it should, without having to add the explicit order property to
> correct it.
>
> I've committed, we'll see if it's a problem on the box - Working fine here
> now.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663423.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
Re: Default include exclude order should be exclude-include
Posted by AndyG <an...@orprovision.com>.
We do, which is why I was expecting the one line include to override it -
which IMHO it should, without having to add the explicit order property to
correct it.
I've committed, we'll see if it's a problem on the box - Working fine here
now.
--
View this message in context: http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663423.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Default include exclude order should be exclude-include
Posted by Jean-Louis MONTEIRO <je...@gmail.com>.
Guess we automatically exclude it.
2013/6/3 Romain Manni-Bucau <rm...@gmail.com>
> isn't it only because our exclusions exclude "quart-"? If so configuring
> our exclusions could be easier.
>
> That said you can commit your fix, if it doesn't make our build failling
> that's ok IMO, if the build fail we need to look if it is because our code
> or not (to avoid regression)
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/6/3 AndyG <an...@orprovision.com>
>
> > I think it should be explicit.
> >
> > No parameter = scan
> >
> > Include = include just this/these and no scan, just ignore exclude
> > parameter
> > (warn the user if set).
> >
> > Exclude = exclude this/these and only scan if include is empty
> >
> > However, to quickly resolve the issue based on the current defaults I
> > really
> > think that the order exclude-include should also be the default because
> > 'just' adding openejb.deployments.classpath.include=.*quartz-ra.*
> currently
> > does nothing (because the exclude then removes it) and it's not obvious
> > why.
> >
> > Andy.
> >
> >
> >
> > --
> > View this message in context:
> >
> http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663420.html
> > Sent from the OpenEJB Dev mailing list archive at Nabble.com.
> >
>
--
Jean-Louis
Re: Default include exclude order should be exclude-include
Posted by Romain Manni-Bucau <rm...@gmail.com>.
isn't it only because our exclusions exclude "quart-"? If so configuring
our exclusions could be easier.
That said you can commit your fix, if it doesn't make our build failling
that's ok IMO, if the build fail we need to look if it is because our code
or not (to avoid regression)
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/6/3 AndyG <an...@orprovision.com>
> I think it should be explicit.
>
> No parameter = scan
>
> Include = include just this/these and no scan, just ignore exclude
> parameter
> (warn the user if set).
>
> Exclude = exclude this/these and only scan if include is empty
>
> However, to quickly resolve the issue based on the current defaults I
> really
> think that the order exclude-include should also be the default because
> 'just' adding openejb.deployments.classpath.include=.*quartz-ra.* currently
> does nothing (because the exclude then removes it) and it's not obvious
> why.
>
> Andy.
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663420.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>
Re: Default include exclude order should be exclude-include
Posted by AndyG <an...@orprovision.com>.
I think it should be explicit.
No parameter = scan
Include = include just this/these and no scan, just ignore exclude parameter
(warn the user if set).
Exclude = exclude this/these and only scan if include is empty
However, to quickly resolve the issue based on the current defaults I really
think that the order exclude-include should also be the default because
'just' adding openejb.deployments.classpath.include=.*quartz-ra.* currently
does nothing (because the exclude then removes it) and it's not obvious why.
Andy.
--
View this message in context: http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418p4663420.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Re: Default include exclude order should be exclude-include
Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi Andy,
both have their failling tests. basically when you include something you
want it included and when you exclude something you want it excluded
(stupid sentence but that's the point).
I think inclusion is more important than exclusion since you explicitely
say what you want in.
That's said we could probably find something more clever than simple ex-in
or in-ex
wdyt?
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/6/3 AndyG <an...@orprovision.com>
> Pulled my hair out on this the other day until I realized what was missing.
>
> https://issues.apache.org/jira/browse/OPENEJB-2030
>
> Shall I commit, or is there a reason for it to be the other way round,
> which
> doesn't make sense considering these are the defaults:
>
> openejb.deployments.classpath.include="" //include nothing
> openejb.deployments.classpath.exclude=".*" //exclude everything
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/Default-include-exclude-order-should-be-exclude-include-tp4663418.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>