New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add serializer to serialize webapp configurations to pom #544
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #544 +/- ##
===========================================
- Coverage 41.33% 39.16% -2.17%
===========================================
Files 67 71 +4
Lines 2383 2515 +132
Branches 309 327 +18
===========================================
Hits 985 985
- Misses 1327 1459 +132
Partials 71 71
Continue to review full report at Codecov.
|
...-webapp-maven-plugin/src/main/java/com/microsoft/azure/maven/webapp/WebAppConfiguration.java
Outdated
Show resolved
Hide resolved
...aven-plugin/src/main/java/com/microsoft/azure/maven/webapp/configuration/RuntimeSetting.java
Outdated
Show resolved
Hide resolved
...aven-plugin/src/main/java/com/microsoft/azure/maven/webapp/configuration/RuntimeSetting.java
Outdated
Show resolved
Hide resolved
...gin/src/main/java/com/microsoft/azure/maven/webapp/serializer/V1ConfigurationSerializer.java
Outdated
Show resolved
Hide resolved
...gin/src/main/java/com/microsoft/azure/maven/webapp/serializer/V2ConfigurationSerializer.java
Outdated
Show resolved
Hide resolved
...gin/src/main/java/com/microsoft/azure/maven/webapp/serializer/V1ConfigurationSerializer.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
} else { | ||
throw new MojoExecutionException( | ||
String.format("Unknown value of <webContainer>. Supported values are %s.", | ||
StringUtils.join(runtimeStackMap.keySet().toArray(), ","))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
toArray is not needed?
final DOMElement resourceRootNode = new DOMElement("resources"); | ||
for (final Resource resource : resources) { | ||
final DOMElement resourceNode = new DOMElement("resource"); | ||
if (StringUtils.isNotEmpty(resource.getFiltering())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a private util method to check and create
resourceNode.add(XMLUtils.createSimpleElement("directory", resource.getDirectory())); | ||
} | ||
|
||
if (resource.getIncludes() != null && resource.getIncludes().size() > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a private util method to check and create
PricingTierEnum.getPricingTierStringByPricingTierObject(webAppConfiguration.getPricingTier()), | ||
configurationElement); | ||
|
||
coinfigRuntime(webAppConfiguration, configurationElement); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo coinfigRuntime
Add serializer to serialize webapp configurations to pom, for webapp:config