2 Replies Latest reply on Jun 3, 2010 3:40 AM by pskopek

    Archives class not in the API anymore

    pskopek

      The class org.jboss.shrinkwrap.api.Archives has been removed from the API and code samples in http://community.jboss.org/wiki/shrinkwrap are still using it.

      I would suggest change to latest API (1.0.0-alpha-10) and use:

       

      JavaArchive archive = ShrinkWrap.create(JavaArchive.class, "my.jar");
      

       

      instead of

       

      JavaArchive archive = Archives.create("my.jar", JavaArchive.class);
      
        • 1. Re: Archives class not in the API anymore
          alrubinger

          Thanks for the note, Peter; I'll have a look at the Wiki tomorrow.  In fact, most of the docs there are now out-of-date.

           

          We're currently gunning to lock down the API into a backwards-compatible state in 1.0.0-beta-1.  From there, we'll be shifting focus into documentation and other promotions before going GA.

           

          Also: if you'd like to beat me to the punch and change up any docs yourself, we've adopted the Wiki format for just that reason.  Anyone can contribute.

           

          S,

          ALR

          • 2. Re: Archives class not in the API anymore
            pskopek

            Andrew,

             

            I fixed the wiki in terms of using ShrinkWrap instead of Archives.

            Looking forward to 1.0.0-beta-1 ;-)

             

            Peter