forked from mikitex70/redmine_drawio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
embed2js.patch
51 lines (46 loc) · 1.91 KB
/
embed2js.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
diff --git a/etc/build/build.xml b/etc/build/build.xml
index 29035e5..a2e1ead 100644
--- a/etc/build/build.xml
+++ b/etc/build/build.xml
@@ -361,7 +361,7 @@
<target name="javac" depends="app" description="Java compilation">
<mkdir dir="${javac.dir}"/>
- <javac includeantruntime="false" srcdir="${src.dir}" excludes="**/EmbedServlet2.java" destdir="${javac.dir}">
+ <javac includeantruntime="false" srcdir="${src.dir}" destdir="${javac.dir}">
<classpath refid="javac.class.path" />
</javac>
<copy todir="${javac.dir}/META-INF">
diff --git a/src/main/java/com/mxgraph/online/EmbedServlet2.java b/src/main/java/com/mxgraph/online/EmbedServlet2.java
index cced6ae..6eca5ed 100644
--- a/src/main/java/com/mxgraph/online/EmbedServlet2.java
+++ b/src/main/java/com/mxgraph/online/EmbedServlet2.java
@@ -35,7 +35,7 @@ import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
-import com.google.appengine.api.utils.SystemProperty;
+//import com.google.appengine.api.utils.SystemProperty;
/**
* Servlet implementation class OpenServlet
@@ -79,7 +79,7 @@ public class EmbedServlet2 extends HttpServlet
{
if (lastModified == null)
{
- // Uses deployment date as lastModified header
+ /*// Uses deployment date as lastModified header
String applicationVersion = SystemProperty.applicationVersion.get();
Date uploadDate = new Date(Long
.parseLong(applicationVersion
@@ -88,12 +88,13 @@ public class EmbedServlet2 extends HttpServlet
DateFormat httpDateFormat = new SimpleDateFormat(
"EEE, dd MMM yyyy HH:mm:ss z", Locale.US);
- lastModified = httpDateFormat.format(uploadDate);
+ lastModified = httpDateFormat.format(uploadDate);*/
+ lastModified = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss z", Locale.US).format(new Date());
}
initLibraries(libraries);
}
-
+
/**
* Sets up collection of stencils
*/