Class JavaCompileCommand

java.lang.Object
com.gophers.services.helpers.JavaCompileCommand
All Implemented Interfaces:
CompileCommand

public class JavaCompileCommand extends Object implements CompileCommand
The JavaCompileCommand class handles compiling Java files in a specific directory.
  • Constructor Details

    • JavaCompileCommand

      public JavaCompileCommand(String submissionDirectory)
      Constructs a JavaCompileCommand with the given submission directory.
      Parameters:
      submissionDirectory - the directory containing Java files to compile
  • Method Details

    • compile

      public boolean compile()
      Compiles all Java files in the submission directory.
      Specified by:
      compile in interface CompileCommand
      Returns:
      true if compilation was successful, false otherwise