File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
core/src/main/python/wlsdeploy/tool/create Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,7 @@ class DomainTypedef(object):
28
28
__domain_typedefs_location = os .path .join (os .environ .get ('WLSDEPLOY_HOME' ), 'lib' , 'typedefs' )
29
29
__domain_typedef_extension = '.json'
30
30
31
- __wild_card_suffix = '%%'
32
- __wild_card_suffix_len = len (__wild_card_suffix )
31
+ JRF_TEMPLATE_REGEX = "^(.*jrf_template[0-9._]*\\ .jar)|(Oracle JRF WebServices Asynchronous services)$"
33
32
34
33
def __init__ (self , program_name , domain_type ):
35
34
"""
@@ -95,12 +94,16 @@ def get_domain_type(self):
95
94
"""
96
95
return self ._domain_type
97
96
98
- def domain_type_is_jrf (self ):
97
+ def is_jrf_domain_type (self ):
99
98
"""
100
- Determine if the tool is running with domain type JRF or RestrictedJRF.
101
- :return : True if running with domain type JRF or RestrictedJRF.
99
+ Determine if this is a JRF domain type by checking for the JRF extension template.
100
+ This returns False for the Restricted JRF domain type.
101
+ :return: True if the JRF template is present
102
102
"""
103
- return self .get_domain_type () == 'JRF' or self .get_domain_type () == 'RestrictedJRF'
103
+ for template in self .get_extension_templates ():
104
+ if re .match (self .JRF_TEMPLATE_REGEX , template ):
105
+ return True
106
+ return False
104
107
105
108
def domain_type_has_jrf_resources (self ):
106
109
"""
You can’t perform that action at this time.
0 commit comments