Skip to content

Commit 9c66edf

Browse files
author
jossonsmith
committed
Add .htaccess to j2slib package, so the deployed j2slib will always won't
expire in short time.
1 parent d65866a commit 9c66edf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

sources/net.sf.j2s.lib/.htaccess

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<IfModule mod_expires.c>
2+
ExpiresActive on
3+
ExpiresDefault "access plus 5 years"
4+
</IfModule>

sources/net.sf.j2s.lib/build/build.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@
266266
target: j2s.pack.lib
267267
- - - - - - - - - - - - - - - - - -->
268268
<target name="j2s.pack.lib" depends="j2s.pack.core,j2s.pack.common,j2s.pack.error,pack.java.reflect,j2s.pack.swt">
269+
<copy file="${j2s.lib.dist}/../.htaccess" todir="${j2s.lib.dist}"/>
269270
<copy todir="${j2s.lib.dist}">
270271
<fileset dir="${j2s.ajax.bin}">
271272
<exclude name="**/*.clazz"/>

0 commit comments

Comments
 (0)