Skip to content

Commit 5225515

Browse files
Merge branch 'master' into WDT-Support-for-1411
2 parents 97502aa + cc711c3 commit 5225515

File tree

310 files changed

+3161
-1659
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

310 files changed

+3161
-1659
lines changed

Jenkinsfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pipeline {
44
alwaysPull true
55
reuseNode true
66
image 'phx.ocir.io/weblogick8s/wdt/jenkinsslave:wls12213'
7-
args '--user jenkins:oracle'
7+
args '-u jenkins -v /var/run/docker.sock:/var/run/docker.sock'
88
}
99
}
1010

@@ -26,9 +26,9 @@ pipeline {
2626
'''
2727
}
2828
}
29-
stage ('Test') {
29+
stage ('Verify') {
3030
steps {
31-
sh 'mvn -Dunit-test-wlst-dir=${WLST_DIR} test'
31+
sh 'mvn -Dunit-test-wlst-dir=${WLST_DIR} -Dmw_home=${ORACLE_HOME} verify'
3232
}
3333
post {
3434
always {

LICENSE.txt

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2-
Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
1+
Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
32

4-
The Universal Permissive License (UPL), Version 1.0
3+
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
54

65
Subject to the condition set forth below, permission is hereby granted to any
76
person obtaining a copy of this software, associated documentation and/or data
@@ -11,28 +10,29 @@ licensable by each licensor hereunder covering either (i) the unmodified
1110
Software as contributed to or provided by such licensor, or (ii) the Larger
1211
Works (as defined below), to deal in both
1312

14-
(a) the Software, and
15-
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file
16-
if one is included with the Software (each a “Larger Work” to which
17-
the Software is contributed by such licensors), without restriction,
18-
including without limitation the rights to copy, create derivative
19-
works of, display, perform, and distribute the Software and make,
20-
use, sell, offer for sale, import, export, have made, and have sold
21-
the Software and the Larger Work(s), and to sublicense the foregoing
22-
rights on either these or other terms.
13+
(a) the Software, and
14+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
15+
one is included with the Software (each a "Larger Work" to which the Software
16+
is contributed by such licensors),
17+
18+
without restriction, including without limitation the rights to copy, create
19+
derivative works of, display, perform, and distribute the Software and make,
20+
use, sell, offer for sale, import, export, have made, and have sold the
21+
Software and the Larger Work(s), and to sublicense the foregoing rights on
22+
either these or other terms.
2323

2424
This license is subject to the following condition:
2525
The above copyright notice and either this complete permission notice or at
26-
a minimum a reference to the UPL must be included in all copies or substantial
27-
portions of the Software.
26+
a minimum a reference to the UPL must be included in all copies or
27+
substantial portions of the Software.
2828

2929
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
3030
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
3131
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
3232
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
3333
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
35-
THE SOFTWARE.
34+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35+
SOFTWARE.
3636

3737
===== The Antlr4 License Statement =====
3838

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Many organizations are using WebLogic Server, with or without other Oracle Fusio
1616
- [Model Names](#model-names)
1717
- [Model Semantics](#model-semantics)
1818
- [Declaring Named MBeans to Delete](#declaring-named-mbeans-to-delete)
19+
- [Using Multiple Models](#using-multiple-models)
1920
- [Administration Server Configuration](site/admin_server.md)
2021
- [Model Security](site/security.md)
2122
- [Modeling Security Providers](site/security_providers.md)
@@ -236,6 +237,13 @@ In this example, the managed server ```obsoleteServer``` will be deleted, and ``
236237
ListenPort: 9005
237238
```
238239

240+
If the name of the item requires quotation marks, the exclamation point should be inside the quotation marks:
241+
242+
```yaml
243+
Server:
244+
'!obsolete-server':
245+
```
246+
239247
This feature can also remove items that were created by WebLogic Server templates. For example, the base template creates a default security realm called ```myrealm```. If a user chooses to declare a custom realm, ```myrealm``` is no longer needed. In this example, ```myrealm``` will be deleted, and the custom realm ```newrealm``` will be created, and declared as the default realm:
240248

241249
```yaml
@@ -293,6 +301,54 @@ topology:
293301
ListenPort: 10000
294302
```
295303

304+
If variable properties are used in element names, such as ```@@PROP:my-server@@```, the names in both models will be resolved and matching elements will be merged.
305+
306+
#### Multiple Models and Delete Notation
307+
308+
A named element using [delete notation](#declaring-named-mbeans-to-delete) will completely replace an element with a matching name and no delete notation in a previous model. For example, if Model 1 looks like:
309+
```yaml
310+
topology:
311+
Server:
312+
m1:
313+
ListenPort: 7000
314+
Notes: "Server 1"
315+
```
316+
and Model 2 looks like:
317+
```yaml
318+
topology:
319+
Server:
320+
!m1:
321+
```
322+
The resulting model would be:
323+
```yaml
324+
topology:
325+
Server:
326+
!m1:
327+
```
328+
329+
Similarly, an element without delete notation will completely replace an element with a matching name that has delete notation in a previous model. For example, if Model 1 looks like:
330+
```yaml
331+
topology:
332+
Server:
333+
!m1:
334+
```
335+
and Model 2 looks like:
336+
```yaml
337+
topology:
338+
Server:
339+
m1:
340+
ListenPort: 7000
341+
Notes: "Server 1"
342+
```
343+
The resulting model would be:
344+
```yaml
345+
topology:
346+
Server:
347+
m1:
348+
ListenPort: 7000
349+
Notes: "Server 1"
350+
```
351+
296352
## Downloading and Installing the Software
297353

298354
The Oracle WebLogic Server Deploy Tooling project repository is located at [`https://github.com/oracle/weblogic-deploy-tooling`](https://github.com/oracle/weblogic-deploy-tooling). Binary distributions of the `weblogic-deploy.zip` installer can be downloaded from the [GitHub Releases page](https://github.com/oracle/weblogic-deploy-tooling/releases). To install the software, simply unzip the `weblogic-deploy.zip` installer on a machine that has the desired versions of WebLogic Server installed. After being unzipped, the software is ready to use, just set the `JAVA_HOME` environment variable to point to a Java 7 or higher JDK and the shell scripts are ready to run.

core/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
3-
Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
3+
Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
44
The Universal Permissive License (UPL), Version 1.0
55
-->
66
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

core/src/main/antlr4/oracle/weblogic/deploy/json/JSON.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
33
* The Universal Permissive License (UPL), Version 1.0
44
*
55
* Credits:

core/src/main/antlr4/oracle/weblogic/deploy/yaml/Yaml.g4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
33
* The Universal Permissive License (UPL), Version 1.0
44
*/
55
grammar Yaml;

core/src/main/java/oracle/weblogic/deploy/aliases/AliasException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
3-
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
2+
* Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
3+
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
*/
55
package oracle.weblogic.deploy.aliases;
66

core/src/main/java/oracle/weblogic/deploy/aliases/TypeUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
3-
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
2+
* Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
3+
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
*/
55
package oracle.weblogic.deploy.aliases;
66

core/src/main/java/oracle/weblogic/deploy/aliases/VersionException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
3-
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
2+
* Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
3+
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
*/
55
package oracle.weblogic.deploy.aliases;
66

core/src/main/java/oracle/weblogic/deploy/aliases/VersionUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
3-
* Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
2+
* Copyright (c) 2017, 2019, Oracle Corporation and/or its affiliates. All rights reserved.
3+
* Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
44
*/
55
package oracle.weblogic.deploy.aliases;
66

0 commit comments

Comments
 (0)