Skip to content

Commit

Permalink
LPS-82189 Configure JBoss and Wildfly to use the Java 8 compiler duri…
Browse files Browse the repository at this point in the history
…ng JSP compilation
  • Loading branch information
alee8888 authored and brianchandotcom committed Jun 9, 2018
1 parent 2a5ddc0 commit a02f6b8
Showing 1 changed file with 25 additions and 16 deletions.
41 changes: 25 additions & 16 deletions build-dist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1392,6 +1392,20 @@ this task.
<replacetoken><![CDATA[enable-welcome-root="true"]]></replacetoken>
<replacevalue><![CDATA[enable-welcome-root="false"]]></replacevalue>
</replace>

<replace
file="${app.server.jboss.instance.dir}/configuration/standalone.xml"
>
<replacetoken><![CDATA[<subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false">]]></replacetoken>
<replacevalue>
<![CDATA[
<subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false">
<configuration>
<jsp-configuration development="true" source-vm="1.8" target-vm="1.8" />
</configuration>
]]>
</replacevalue>
</replace>
</then>
<elseif>
<equals arg1="${app.server.jboss.version}" arg2="7.1.0" />
Expand All @@ -1406,7 +1420,7 @@ this task.
<echo append="true" file="${app.server.jboss.bin.dir}/standalone.conf">${line.separator}<![CDATA[JAVA_OPTS="$JAVA_OPTS -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true ${java.security.config} -Djboss.as.management.blocking.timeout=480 -Duser.timezone=GMT -Xmx1024m -XX:MaxMetaspaceSize=512m"]]></echo>

<replace
file="${app.server.jboss.dir}/standalone/configuration/standalone.xml"
file="${app.server.jboss.instance.dir}/configuration/standalone.xml"
>
<replacetoken><![CDATA[<subsystem xmlns="urn:jboss:domain:security:2.0">
<security-domains>]]></replacetoken>
Expand All @@ -1433,6 +1447,15 @@ this task.
<replacetoken><![CDATA[<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>]]></replacetoken>
<replacevalue><![CDATA[<!--<file name="welcome-content" path="${jboss.home.dir}/welcome-content"/>-->]]></replacevalue>
</replace>

<replace
file="${app.server.jboss.dir}/standalone/configuration/standalone.xml"
>
<replacetoken><![CDATA[<jsp-config/>]]></replacetoken>
<replacevalue>
<![CDATA[<jsp-config development="true" source-vm="1.8" target-vm="1.8" />]]>
</replacevalue>
</replace>
</then>
</elseif>
</if>
Expand Down Expand Up @@ -1461,20 +1484,6 @@ this task.
</replacevalue>
</replace>

<replace
file="${app.server.jboss.instance.dir}/configuration/standalone.xml"
>
<replacetoken><![CDATA[<subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false">]]></replacetoken>
<replacevalue>
<![CDATA[
<subsystem xmlns="urn:jboss:domain:web:2.2" default-virtual-server="default-host" native="false">
<configuration>
<jsp-configuration development="true" source-vm="1.8" target-vm="1.8" />
</configuration>
]]>
</replacevalue>
</replace>

<chmod
perm="a+x"
>
Expand Down Expand Up @@ -3490,7 +3499,7 @@ this task.
>
<replacetoken><![CDATA[<jsp-config/>]]></replacetoken>
<replacevalue>
<![CDATA[<jsp-config development="true" />]]>
<![CDATA[<jsp-config development="true" source-vm="1.8" target-vm="1.8" />]]>
</replacevalue>
</replace>

Expand Down

0 comments on commit a02f6b8

Please sign in to comment.