blob: f74cb8e0b6404aff8c19532edc1c5ce5ccbd8a67 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
-->
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 6.0//EN"
"https://struts.apache.org/dtds/struts-6.0.dtd">
<struts>
<constant name="foo" value="bar"/>
<!-- Linux/Unix (or Unix-like) Environment -->
<constant name="user" value="${env.USER}"/>
<constant name="home" value="Current HOME = ${env.HOME}"/>
<!-- Linux/Unix (or Unix-like) Environment -->
<!-- Windows (or Windows-like) Environment -->
<constant name="username" value="${env.USERNAME}"/>
<constant name="homedrive.homepath" value="Current HOMEDRIVE.HOMEPATH = ${env.HOMEDRIVE}${env.HOMEPATH}"/>
<!-- Windows (or Windows-like) Environment -->
<constant name="os" value="Current OS = ${os.name}"/>
<constant name="unknown" value="Unknown = ${env.UNKNOWN:default}"/>
<constant name="struts.devMode" value="${env.STRUTS_DEV_MODE:false}"/>
</struts>