Skip to content
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

Merged
merged 6 commits into from Jan 3, 2019

Conversation

Flanker32
Copy link
Member

Add serializer to serialize webapp configurations to pom, for webapp:config

@Flanker32 Flanker32 requested review from jdneo and andxu January 3, 2019 07:03
@codecov-io
Copy link

codecov-io commented Jan 3, 2019

Codecov Report

Merging #544 into develop will decrease coverage by 2.16%.
The diff coverage is 0%.

Impacted file tree graph

@@             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
Impacted Files Coverage Δ
...m/microsoft/azure/maven/webapp/utils/XMLUtils.java 0% <0%> (ø)
...ven/webapp/serializer/ConfigurationSerializer.java 0% <0%> (ø)
...n/webapp/serializer/V1ConfigurationSerializer.java 0% <0%> (ø)
...rosoft/azure/maven/webapp/WebAppConfiguration.java 0% <0%> (ø) ⬆️
...n/webapp/serializer/V2ConfigurationSerializer.java 0% <0%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 70becbc...ad58af5. Read the comment docs.

Copy link
Member

@jdneo jdneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Flanker32 Flanker32 merged commit 2342d67 into develop Jan 3, 2019
@Flanker32 Flanker32 deleted the config_serializer branch January 3, 2019 10:10
} else {
throw new MojoExecutionException(
String.format("Unknown value of <webContainer>. Supported values are %s.",
StringUtils.join(runtimeStackMap.keySet().toArray(), ",")));
Copy link
Contributor

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())) {
Copy link
Contributor

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) {
Copy link
Contributor

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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo coinfigRuntime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants