Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-9810

JarListHandler does not close opened jars

    XMLWordPrintableJSON

Details

    Description

      try {
      	JarFile jar = new JarFile(f);
      	Manifest manifest = jar.getManifest();
      	String assemblerClass = null;
      
      	if (manifest != null) {
      		assemblerClass = manifest.getMainAttributes().getValue(PackagedProgram.MANIFEST_ATTRIBUTE_ASSEMBLER_CLASS);
      		if (assemblerClass == null) {
      			assemblerClass = manifest.getMainAttributes().getValue(PackagedProgram.MANIFEST_ATTRIBUTE_MAIN_CLASS);
      		}
      	}
      	if (assemblerClass != null) {
      		classes = assemblerClass.split(",");
      	}
      }
      

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              chesnay Chesnay Schepler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: