Skip to content

Commit 9e9c63e

Browse files
author
Neha Pawar
committed
THIRDEYE-599 : Add support for ratio of metrics to thirdeye-reporting
RB=566800 R=kgopalak,gbrandt,dpatel A=gbrandt
1 parent 3b7f355 commit 9e9c63e

28 files changed

+5
-5
lines changed

thirdeye/thirdeye-reporting/src/main/java/com/linkedin/thirdeye/reporting/api/ReportEmailCssSpec.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import java.io.File;
44
import java.io.IOException;
55
import java.io.InputStream;
6+
import java.io.InputStreamReader;
7+
import java.net.URL;
68

79
import org.apache.commons.io.IOUtils;
810

9-
import com.linkedin.thirdeye.reporting.ThirdEyeReportingApplication;
10-
1111
public class ReportEmailCssSpec {
1212

1313
private String timeTitleStyle;
@@ -191,9 +191,9 @@ public String getAnomalyCell3() {
191191
private String loadCss(String cssFile) throws IOException {
192192

193193
String css = null;
194-
ClassLoader classLoader = Thread.class.getClassLoader();
195-
InputStream is = classLoader.getResourceAsStream("assets/css/" + cssFile);
196-
194+
//InputStream is = ClassLoader.getSystemResourceAsStream("assets/css/" + cssFile);
195+
URL resource = getClass().getClassLoader().getResource(cssFile);
196+
InputStream is = resource.openStream();
197197
try {
198198
css = IOUtils.toString(is);
199199
} finally {

0 commit comments

Comments
 (0)