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

#379 Try with resources - net.sourceforge.cobertura.javancss.parser.… #380

Merged
merged 6 commits into from
Mar 8, 2019

Conversation

msiemczyk
Copy link

…ParseException: Encountered " ")" ") ""

Try resource block can have semicolon at the end of variable definition and not have another variable. Java compiler will allow one additional semicolon, but Cobertura throws exception because that code was broken when update for Java 7 was made.

#379

I few additional changes I didn't really mean to, but you can skip those during the merge if you want.

…s.parser.ParseException: Encountered " ")" ") ""

Try resource block can have semicolon at the end of variable definition and not have another variable. Java compiler will allow one additional semicolon, but Cobertura throws exception because that code was broken when update for Java 7 was made.

cobertura#379
@msiemczyk
Copy link
Author

Travis build was successful with my changes.

https://travis-ci.org/msiemczyk/cobertura/builds/405387073

…ndency.

- Updated Java version to 1.7.
- Restructured Maven projects in order to create easy to consume "cobertura.jar" Core Library.
- Moved web (coberturaFlush.war) files to it's own module, called cobertura-flush-war. This project build war package and contains only servlet class, test classes, and needed web.xml configuration.
- Moved final stand-alone tool creation to new cobertura-assembly module.  This maven (pom) project is only responsible for building tool's packge (in zip, tar, etc. format) that includes Cobertura Core library, Cobertura Flush Servlet WAR, and all needed dependencies as well as scripts, examples and (logback) logging configuration.
- Re-factored pom.xml to proper structure and inheritance.

Cobertura 2.1.1 uses slf4j binding logback-classic cobertura#36
mojohaus/cobertura-maven-plugin#36
@herenyi
Copy link

herenyi commented Jul 23, 2018

I have also fixed the ; problem with the try with resource in my pull request. Also in the javancss project. It's nice to see some action around the project. It would be nice to have a new version too... :)

@msiemczyk
Copy link
Author

Thanks @herenyi

@jmrozanec jmrozanec merged commit 89ce636 into cobertura:master Mar 8, 2019
@jmrozanec
Copy link
Member

@msiemczyk @herenyi @lewijw @dennisl thank you for contributing to Cobertura! 😄

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.

3 participants