ProgramHandlingUtil

Responsible for handling JAR unpacking and handling the temporary build directory.

class Object
trait Matchable
class Any

Value members

Concrete methods

def clean(): Unit

Removes all files in the temporary unpacking directory.

Removes all files in the temporary unpacking directory.

def extractSourceFilesFromArchive(sourceCodeDir: String, archiveFileExtensions: Set[String]): List[String]

Retrieve parseable files from archive types.

Retrieve parseable files from archive types.

def moveClassFiles(files: List[String]): List[String]

Inspects class files and moves them to the temp directory based on their package path.

Inspects class files and moves them to the temp directory based on their package path.

Value parameters:
files

the class files to move.

Returns:

the list of class files at their new locations.

def unzipArchive(zf: ZipFile, sourceCodePath: String): Try[Seq[String]]

Unzips a ZIP file into a sequence of files. All files unpacked are deleted at the end of CPG construction.

Unzips a ZIP file into a sequence of files. All files unpacked are deleted at the end of CPG construction.

Value parameters:
sourceCodePath

The project root path to unpack to.

zf

The ZIP file to extract.

Concrete fields

val TEMP_DIR: Path

The temporary directory used to unpack class files to.

The temporary directory used to unpack class files to.