[jbosstools-dev] Automatic setting of validators
Alexey Kazakov
akazakov at exadel.com
Wed Jun 22 13:59:30 EDT 2011
IMO this is a good idea to exclude the target folder but it's not so easy.
Eclipse, WTP, JBT use different kinds of validators. They (validators)
may implement IValidatorJob (WST Validator v1), AbstractValidator (WST
Validator v2), IValidator (JBoss KB validation framework based on WST
Validator v1), and so on. There is no common API for all the validators
to add such excluding rules.
We could use Eclipse/WTP API to add such rules where it's possible and
we also could create a new interface for all our validators to have API
to add excluding rules.
On 06/21/2011 04:33 PM, Fred Bricon wrote:
> Hi guys,
>
> I would like to automatically exclude the target folder from all the
> validators in Eclipse.
> Basically, I would do something like (I'm making the method names up):
>
> for (Validator v : getAllValidators()) {
> if (v.isCustomizable()&& !hasMavenExcludeGroup(v)) {
> addMavenExcludeGroup(v)
> }
> }
>
> a Maven Exclude Group would have 2 rules : nature=Maven, Folder=target
>
> Does it make sense? Anyone has any pointers on how to do that?
> Also, what would be the best way to apply such thing? On plugin start?
> Clicking on a button in the Maven preferences? both?
>
> Thx in avance,
>
> Fred Bricon
>
>
> _______________________________________________
> jbosstools-dev mailing list
> jbosstools-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
More information about the jbosstools-dev
mailing list