public string Compile() { string command = "docker exec " + this._containerOpenjdkName + " javac " + this._filePathInContainer; string output = CommandPrompt.ExecuteCommand(command); return(output); }
public string Run() { var newFilePath = this._filePathInContainer.Substring(0, this._filePathInContainer.Length - 2) + "exe"; string command = "docker exec " + this._containerMonoName + " mono " + newFilePath; string output = CommandPrompt.ExecuteCommand(command); return(output); }
public string Run() { var path = this._filePathInContainer.Substring(1, this._filePathInContainer.Length - 1).Split('/'); var classPath = "/" + path[0]; var fileName = path[1].Substring(0, path[1].Length - 5); string command = "docker exec " + this._containerOpenjdkName + " java -classpath " + classPath + " " + fileName; string output = CommandPrompt.ExecuteCommand(command); return(output); }