Ejemplo n.º 1
0
  public static void createCorePackageJar(List<Instance> coreMembers, PackageVersion version)
      throws Exception {

    List<Instance> members = new ArrayList<>(coreMembers);
    members.addAll(UploadingPackage.getMembers());

    List<UploadedPackageMember> objs = createUploadPackageMembers(members, version);

    Database database = InvocationContext.get().getDatabase();

    database.insert(objs, DMLOperationType.THROW_ERRORS);

    prepareJAR(version, members);

    prepatePackageData(version, members);
  }