code: public static EnterpriseArchive packageJars(LibertyServer server, String dir, EnterpriseArchive ear, String... jarFiles) throws Exception {
          String baseDir = DIR_PUBLISH + server.getServerName() + "/" + dir + "/";
          for (String jarFile : jarFiles) {
              JavaArchive jar = ShrinkWrap.createFromZipFile(JavaArchive.class, new File(baseDir + jarFile));
              ear.addAsLibrary(jar);
          }
          return ear;
      }
docs: /*