ronin.java

class ronin.java.Jar(command=None, manifest=None)

Bases: ronin.executors.ExecutorWithArguments

Java Jar creation executor.

The phase inputs are “.class” files. The phase output is a “.jar” file.

Parameters:
  • command (str or FunctionType) – jar command; defaults to the context’s java.jar_command
  • manifest (str or FunctionType) – absolute path to manifest file
disable_manifest()
preserve_paths()
store_only()
class ronin.java.JavaClasses(project, phase_name)

Bases: ronin.extensions.Extension

Java classes generated by another phase.

Usable only with a Jar executor.

Parameters:
apply_to_executor_java_jar(executor)
apply_to_phase(phase)
class ronin.java.JavaCompile(command=None, classpath=[])

Bases: ronin.executors.ExecutorWithArguments

Java compile executor.

The phase inputs are “.java” source files. The phase outputs are “.class” files.

Parameters:
  • command (str or FunctionType) – javac command; defaults to the context’s java.javac_command
  • classpath ([str or FunctionType]) – initial classpath
add_classpath(value)
enable_debug()
ronin.java.configure_java(javac_command=None, jar_command=None)

Configures the current context’s Java support.

Parameters:
  • javac_command (str or FunctionType) – javac command; defaults to “javac”
  • jar_command (str or FunctionType) – jar command; defaults to “jar”