Skip to content

Commit

Permalink
LPS-26151 resin 4.0.26
Browse files Browse the repository at this point in the history
  • Loading branch information
igr authored and brianchandotcom committed Mar 20, 2012
1 parent 94edbdf commit ae47f15
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app.server.properties
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
## Resin
##

app.server.resin.version=4.0.23
app.server.resin.version=4.0.26
app.server.resin.dir=${app.server.parent.dir}/resin-${app.server.resin.version}
app.server.resin.bin.dir=${app.server.resin.dir}/bin
app.server.resin.classes.global.dir=${app.server.resin.dir}/ext-lib
Expand Down
18 changes: 6 additions & 12 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -650,24 +650,18 @@ set JAVA_OPTS=-Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Djonas.felix
</then>
</if>

<loadfile property="resin.xml.content" srcfile="${app.server.dir}/conf/resin.xml" />
<loadfile property="resin.properties.content" srcfile="${app.server.dir}/conf/resin.properties" />

<antelope:stringutil string="${resin.xml.content}" property="resin.xml.content.index">
<antelope:stringutil string="${resin.properties.content}" property="resin.properties.content.index">
<indexof string="-Dfile.encoding=UTF-8" fromindex="0" />
</antelope:stringutil>

<if>
<equals arg1="${resin.xml.content.index}" arg2="-1" />
<equals arg1="${resin.properties.content.index}" arg2="-1" />
<then>
<replace file="${app.server.dir}/conf/resin.xml">
<replacetoken><![CDATA[</http>]]></replacetoken>
<replacevalue><![CDATA[</http>
<jvm-arg>-Dfile.encoding=UTF-8</jvm-arg>
<jvm-arg>-Djava.net.preferIPv4Stack=true</jvm-arg>
<jvm-arg>-Duser.timezone=GMT</jvm-arg>
<jvm-arg>-Xmx1024m</jvm-arg>
<jvm-arg>-XX:MaxPermSize=256m</jvm-arg>]]></replacevalue>
<replace file="${app.server.dir}/conf/resin.properties">
<replacetoken><![CDATA[# jvm_args : -Xmx2048m -XX:MaxPermSize=256m]]></replacetoken>
<replacevalue><![CDATA[jvm_args : -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m]]></replacevalue>
</replace>
</then>
</if>
Expand Down

0 comments on commit ae47f15

Please sign in to comment.