2 Replies Latest reply on Nov 5, 2013 3:36 PM by jbtao0007

    How to add packages under main/ only in ShrinkWrap?

    jbtao0007

      Hi,

       

      In my company, we have the same package hierarchy under main/ and test/. So, when I use plain addpackages(), it will fail because of recursive inclusion (the packages will include codes from both main/ and test/). So, how can I instruct ShrinkWrap to include packages only under main/?

       

      For instance, given the file structure as follows:

      src/main/

           one/package/MyClass.java

      src/test/

           one/package/MyClassTest.java

       

      how can I add the one.package only under main/ but not test/? Thank you very much.