Package com.gophers.services.helpers
Class JavaCompileCommand
java.lang.Object
com.gophers.services.helpers.JavaCompileCommand
- All Implemented Interfaces:
CompileCommand
The JavaCompileCommand class handles compiling Java files in a specific
directory.
-
Constructor Summary
ConstructorsConstructorDescriptionJavaCompileCommand(String submissionDirectory) Constructs a JavaCompileCommand with the given submission directory. -
Method Summary
Modifier and TypeMethodDescriptionbooleancompile()Compiles all Java files in the submission directory.
-
Constructor Details
-
JavaCompileCommand
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:
compilein interfaceCompileCommand- Returns:
- true if compilation was successful, false otherwise
-