Package ghidra.util
Class GhidraJarBuilder
- java.lang.Object
-
- ghidra.util.GhidraJarBuilder
-
- All Implemented Interfaces:
GhidraLaunchable
public class GhidraJarBuilder extends java.lang.Object implements GhidraLaunchable
-
-
Constructor Summary
Constructors Constructor Description GhidraJarBuilder()
GhidraJarBuilder(java.util.List<java.io.File> rootDirs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllModules()
void
addExcludedFileExtension(java.lang.String excludedExtension)
void
addFileFilter(java.io.FileFilter filter)
boolean
addModule(java.lang.String name)
void
addModuleToJar(ApplicationModule module)
void
buildJar(java.io.File outputFile, java.io.File extraBinDir, TaskMonitor monitor)
void
buildSrcZip(java.io.File outputFile, TaskMonitor monitor)
java.util.List<ApplicationModule>
getAllModules()
java.util.List<ApplicationModule>
getExcludedModules()
java.util.List<ApplicationModule>
getIncludedModules()
ApplicationModule
getModule(java.lang.String name)
boolean
isModuleIncluded(java.lang.String moduleName)
void
launch(GhidraApplicationLayout layout, java.lang.String[] args)
Entry point for buildGhidraJar.bat.static void
main(java.lang.String[] args)
Entry point for 'gradle buildGhidraJar'.void
removeAllProcessorModules()
boolean
removeModule(java.lang.String name)
void
setExcludeHelp(boolean excludeHelp)
void
setMainClass(java.lang.String mainClass)
-
-
-
Method Detail
-
getAllModules
public java.util.List<ApplicationModule> getAllModules()
-
getIncludedModules
public java.util.List<ApplicationModule> getIncludedModules()
-
removeAllProcessorModules
public void removeAllProcessorModules()
-
getExcludedModules
public java.util.List<ApplicationModule> getExcludedModules()
-
getModule
public ApplicationModule getModule(java.lang.String name)
-
isModuleIncluded
public boolean isModuleIncluded(java.lang.String moduleName)
-
addAllModules
public void addAllModules()
-
addModule
public boolean addModule(java.lang.String name)
-
removeModule
public boolean removeModule(java.lang.String name)
-
addFileFilter
public void addFileFilter(java.io.FileFilter filter)
-
addExcludedFileExtension
public void addExcludedFileExtension(java.lang.String excludedExtension)
-
addModuleToJar
public void addModuleToJar(ApplicationModule module)
-
setExcludeHelp
public void setExcludeHelp(boolean excludeHelp)
-
setMainClass
public void setMainClass(java.lang.String mainClass)
-
buildJar
public void buildJar(java.io.File outputFile, java.io.File extraBinDir, TaskMonitor monitor) throws java.io.IOException, CancelledException
- Throws:
java.io.IOException
CancelledException
-
buildSrcZip
public void buildSrcZip(java.io.File outputFile, TaskMonitor monitor) throws java.io.IOException, CancelledException
- Throws:
java.io.IOException
CancelledException
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
Entry point for 'gradle buildGhidraJar'.- Throws:
java.io.IOException
-
launch
public void launch(GhidraApplicationLayout layout, java.lang.String[] args) throws java.io.IOException
Entry point for buildGhidraJar.bat.- Specified by:
launch
in interfaceGhidraLaunchable
- Parameters:
layout
- The application layout to use for the launch.args
- The arguments passed through by theGhidraLauncher
.- Throws:
java.io.IOException
-
-