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 getUnpackingDir: Path

Returns the temporary directory used to unpack and analyze projects in. This allows us to lazily create the unpacking directory.

Returns the temporary directory used to unpack and analyze projects in. This allows us to lazily create the unpacking directory.

Returns:

the path pointing to the unpacking directory.

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): List[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.