[Windup-users] How to find import * ?

Gilles Bardouillet gilles.bardouillet at atos.net
Mon Jun 1 07:38:36 EDT 2015


Hi,

I'm creating some XML rules for a Websphere migration to JBoss, and i 
want to find all ibm imports in source code.

I added the following rule but it doesnt match imports with star at the 
end like :
*import com.ibm.icu.util.*;*

         <rule id="ImportIBM">
             <when>
                 <javaclass references="com.ibm.{*}">
                     <location>IMPORT</location>
                 </javaclass>
             </when>
             <perform>
                 <iteration>
                     <hint message="Migrate to Non IBM classes" />
                 </iteration>
             </perform>
         </rule>

Do you have any tip or is it a bug ?
Regards,
Gilles.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/windup-users/attachments/20150601/a50325de/attachment.html 


More information about the Windup-users mailing list