Skip to content

Commit

Permalink
Merge pull request #467 from SWM-NM/dev
Browse files Browse the repository at this point in the history
[FIX] java code 파일명 및 경로 수정
  • Loading branch information
aj4941 authored Oct 17, 2023
2 parents 49dd7c0 + 54898df commit 09a032e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM openjdk:17-oracle
ARG JAR_FILE=build/libs/*.jar
COPY ${JAR_FILE} app.jar

COPY src/resources/codes/temp.cpp /codes/temp.cpp
COPY src/resources/codes/temp.py /codes/temp.py
COPY src/resources/codes/Main.java /codes/Main.java
COPY src/main/resources/codes/temp.cpp /codes/temp.cpp
COPY src/main/resources/codes/temp.py /codes/temp.py
COPY src/main/resources/codes/temp.java /codes/temp.java

ENTRYPOINT ["java","-jar","/app.jar"]
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Service;
import swm_nm.morandi.domain.testDuring.dto.TempCode;
import swm_nm.morandi.domain.testInfo.entity.AttemptProblem;
import swm_nm.morandi.domain.testInfo.entity.Tests;
import swm_nm.morandi.domain.testRecord.repository.AttemptProblemRepository;

import javax.annotation.PostConstruct;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.IntStream;

@Service
Expand All @@ -38,7 +34,7 @@ public void initTempCodeInitializer() {
languages = List.of("Python", "Cpp", "Java");
String pythonCode = readCodeFromFile("codes/temp.py");
String cppCode = readCodeFromFile("codes/temp.cpp");
String javaCode = readCodeFromFile("codes/Main.java");
String javaCode = readCodeFromFile("codes/temp.java");
codeLists = List.of(pythonCode, cppCode, javaCode);
}

Expand Down
File renamed without changes.

0 comments on commit 09a032e

Please sign in to comment.