2 Replies Latest reply on Apr 6, 2010 7:07 AM by meetoblivion

    Pulling classes from other archives

    meetoblivion

      Ok, so I know that arquillian currently has an issue w/ deployments that contain libraries and we cannot work around how they're deployed. However, I should still be able to include classes from those other archives in my test archive, right?

       

      I have the following in my test case

       

      return Archives.create("test.jar", JavaArchive.class)
                      .addPackages(true, ImageProxyServlet.class.getPackage(),
                          Image.class.getPackage(),
                          ImageDAO.class.getPackage(),
                          Executor.class.getPackage(),
                          ConfigBean.class.getPackage(),
                          CopyFile.class.getPackage())
                      .addClass(ConfiguredBy.class)
                      .addClass(PropertyProducer.class)

       

      now, everything is getting included in the test.jar except for the last two.  i tried adding by package as well.  the only difference is that they're in a different jar file.

       

      Thoughts?