Sun, 31 Dec 2017 17:43:39 +0100
user friendly error pages for codes 404, 403 and 500
0 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
3
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
2 | <!-- |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
3 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
4 | |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
5 | Copyright (c) 2006, 2016 Oracle and/or its affiliates. All rights reserved. |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
6 | |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
7 | Oracle and Java are registered trademarks of Oracle and/or its affiliates. |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
8 | Other names may be trademarks of their respective owners. |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
9 | |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
10 | The contents of this file are subject to the terms of either the GNU |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
11 | General Public License Version 2 only ("GPL") or the Common |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
12 | Development and Distribution License("CDDL") (collectively, the |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
13 | "License"). You may not use this file except in compliance with the |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
14 | License. You can obtain a copy of the License at |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
15 | http://www.netbeans.org/cddl-gplv2.html |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
16 | or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
17 | specific language governing permissions and limitations under the |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
18 | License. When distributing the software, include this License Header |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
19 | Notice in each file and include the License file at |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
20 | nbbuild/licenses/CDDL-GPL-2-CP. Oracle designates this |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
21 | particular file as subject to the "Classpath" exception as provided |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
22 | by Oracle in the GPL Version 2 section of the License file that |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
23 | accompanied this code. If applicable, add the following below the |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
24 | License Header, with the fields enclosed by brackets [] replaced by |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
25 | your own identifying information: |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
26 | "Portions Copyrighted [year] [name of copyright owner]" |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
27 | |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
28 | If you wish your version of this file to be governed by only the CDDL |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
29 | or only the GPL Version 2, indicate your decision by adding |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
30 | "[Contributor] elects to include this software in this distribution |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
31 | under the [CDDL or GPL Version 2] license." If you do not indicate a |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
32 | single choice of license, a recipient has the option to distribute |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
33 | your version of this file under either the CDDL, the GPL Version 2 or |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
34 | to extend the choice of license to its licensees as provided above. |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
35 | However, if you add GPL Version 2 code and therefore, elected the GPL |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
36 | Version 2 license, then the option applies only if the new code is |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
37 | made subject to such option by the copyright holder. |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
38 | |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
39 | Contributor(s): |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
40 | --> |
0 | 41 | <project default="-deploy-ant" basedir="."> |
3
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
42 | <target name="-init" if="deploy.ant.enabled"> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
43 | <property file="${deploy.ant.properties.file}"/> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
44 | <tempfile property="temp.module.folder" prefix="tomcat" destdir="${java.io.tmpdir}"/> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
45 | <unwar src="${deploy.ant.archive}" dest="${temp.module.folder}"> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
46 | <patternset includes="META-INF/context.xml"/> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
47 | </unwar> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
48 | <xmlproperty file="${temp.module.folder}/META-INF/context.xml"/> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
49 | <delete dir="${temp.module.folder}"/> |
0 | 50 | </target> |
3
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
51 | <target name="-check-credentials" if="deploy.ant.enabled" depends="-init"> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
52 | <fail message="Tomcat password has to be passed as tomcat.password property."> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
53 | <condition> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
54 | <not> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
55 | <isset property="tomcat.password"/> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
56 | </not> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
57 | </condition> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
58 | </fail> |
0 | 59 | </target> |
3
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
60 | <target name="-deploy-ant" if="deploy.ant.enabled" depends="-init,-check-credentials"> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
61 | <echo message="Deploying ${deploy.ant.archive} to ${Context(path)}"/> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
62 | <taskdef name="deploy" classname="org.apache.catalina.ant.DeployTask" |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
63 | classpath="${tomcat.home}/server/lib/catalina-ant.jar"/> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
64 | <deploy url="${tomcat.url}/manager" username="${tomcat.username}" |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
65 | password="${tomcat.password}" path="${Context(path)}" |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
66 | war="${deploy.ant.archive}"/> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
67 | <property name="deploy.ant.client.url" value="${tomcat.url}${Context(path)}"/> |
0 | 68 | </target> |
3
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
69 | <target name="-undeploy-ant" if="deploy.ant.enabled" depends="-init,-check-credentials"> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
70 | <echo message="Undeploying ${Context(path)}"/> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
71 | <taskdef name="undeploy" classname="org.apache.catalina.ant.UndeployTask" |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
72 | classpath="${tomcat.home}/server/lib/catalina-ant.jar"/> |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
73 | <undeploy url="${tomcat.url}/manager" username="${tomcat.username}" |
acf54d3fa1d1
switched to tomcat 8.5 (should be developed this way for maximum compatibility)
mike@uapl02
parents:
0
diff
changeset
|
74 | password="${tomcat.password}" path="${Context(path)}"/> |
0 | 75 | </target> |
76 | </project> |