Skip to content

Commit d94dfb0

Browse files
authored
Build simple-app.war correctly for system test (#1158)
1 parent d3fed9e commit d94dfb0

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
5+
<welcome-file-list>
6+
<welcome-file>/simple.html</welcome-file>
7+
</welcome-file-list>
8+
</web-app>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="ISO-8859-1"?>
2+
3+
<weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
4+
<context-root>/simple</context-root>
5+
</weblogic-web-app>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<html>
2+
<head>
3+
<title>Simple Application</title>
4+
</head>
5+
<body>
6+
<h1>Simple Application</h1>
7+
<p>This is the simple application.</p>
8+
</body>
9+
</html>
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/sh
22
#
3-
# Copyright (c) 2018, 2020, Oracle and/or its affiliates.
3+
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
44
#
55
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
66
#
77
projectDir=$(pwd)
88
archiveDir=${projectDir}/target/resources/archive
9-
rm -Rf $archiveDir
10-
mkdir -p $archiveDir/wlsdeploy/applications
11-
cd ../samples/docker-domain/simple-app
12-
jar cvf $archiveDir/wlsdeploy/applications/simple-app.war *
13-
cd $archiveDir
14-
jar cvf ../archive.zip *
9+
rm -Rf "$archiveDir"
10+
mkdir -p "$archiveDir"/wlsdeploy/applications
11+
cd "$projectDir"/src/test/resources/archive/simple-app || exit
12+
jar cvf "$archiveDir"/wlsdeploy/applications/simple-app.war ./*
13+
cd "$archiveDir" || exit
14+
jar cvf ../archive.zip ./*

0 commit comments

Comments
 (0)