|
|
|
@ -126,12 +126,14 @@ module ShixunsHelper
|
|
|
|
|
challenge_program_name = []
|
|
|
|
|
shixun.challenges.map(&:exec_path).each do |exec_path|
|
|
|
|
|
challenge_program_name << "\"#{exec_path}\""
|
|
|
|
|
logger.info("----mirror_name: #{shixun.main_mirror_name.try(:first)}")
|
|
|
|
|
if shixun.main_mirror_name.try(:first) == "Java"
|
|
|
|
|
if exec_path.nil? || exec_path.split("src/")[1].nil?
|
|
|
|
|
source = "\"\""
|
|
|
|
|
else
|
|
|
|
|
source = "\"#{exec_path.split("src/")[1].split(".java")[0]}\""
|
|
|
|
|
end
|
|
|
|
|
logger.info("----source: #{source}")
|
|
|
|
|
source_class_name << source.gsub("/", ".") if source.present?
|
|
|
|
|
elsif shixun.main_mirror_name.try(:first) == "C#"
|
|
|
|
|
if exec_path.nil? || exec_path.split(".")[1].nil?
|
|
|
|
|