Is Log4j 2 (version 2.4) support log4j2.properties Properties syntax? - log4j2

Based on a similar question. Is new version(2.4) of log4j support log4j2.properties configuration file? Can anyone give me an example of such implementation?

Yes, it does support .properties as of 2.4: https://logging.apache.org/log4j/2.0/manual/configuration.html#Properties
I would reference their example as it's fairly comprehensive.

Related

Annotating C++ code for generating swagger json/yaml

I know that there is a way to generate the client-side code from the swagger yaml with swagger-codegen, but is there a way to generate the swagger yaml with the C++ annotations similar to what can be done in Java.
There seem to be annotation libraries available for other languages e.g python C# (https://swagger.io/blog/api-development/swagger-annotation-libraries/) but I am not able to find any support for C++.
I don`t think so. As far as I know the Swagger Core Annotations are part of the Swagger Core Project, and in the documentation you can find:
Swagger Core is a Java implementation of the OpenAPI Specification.
Current version supports JAX-RS2.
Also the Prerequisites says:
You need the following installed and available in your $PATH:
Java 8
Apache maven 3.0.4 or greater
Jackson 2.4.5 or greater
Update:
I'm not quite sure if oatpp-swagger can fit your requirements.

wsdl generator for java code

Can someone please recommend me a good tool to generate wsdl from java code?
For JAX-WS, read this post JAX-WS's wsgen tool.
Most of the open source frameworks provide this feature. Below are two
Axis
CXF

Grails Auto-format Line wrap

I was trying to using Crtl+shift+F to format a groovy class in springsource suite tool. However, it doesn't split lines that are very long (more than 80 characters) as it does with java files.
I would appreciate if anybody could recommend me a tool for perform wrapping of lines in groovy files and generally grails projects.
Thanks in advance.
IntelliJ does a very nice job of formatting Groovy code. The free version of IntelliJ includes Groovy support, but not Grails support (last time I checked)
What version of STS are you using? We have recently fixed a few issues regarding formatting of Groovy code in the latest release of Groovy-Eclipse (2.1.1). The update site is here:
http://dist.springsource.org/release/GRECLIPSE/e3.6/
This should solve your problem, but if it doesn't, then I'd suggest raising a bug on the issue tracker:
http://jira.codehaus.org/browse/GRECLIPSE

Embedding Maven 3

Is there any sort of documentation on the topic, except of m2eclipse sources?
Thanks.
JBaruch.
To my knowledge, the documentation for Maven Embedder has still to be created (yes, the Maven+3.0.x page created by Jason does mention a link to the old documentation but Jason wrote later in MNG-3658 that the documentation has to be created).
I'm afraid your best options will be m2eclipse or NetBeans sources right now.

Do you know alternatives in Ant to generate project documentation?

I'm wondering are there more current and active alternative tools to the Apache Forrest product for project documentation that developers are using?. It seems to be stuck in v0.8 release since 2007.
I'm thinking about using the maven site via Ant to generate a HTML report with the various javadoc, pmd and findbug reports for my project. Just wondering what other developers are using out there.
maven can grenerate copious amounts of project documentation.
I'd point you to the maven documentation for this, but the maven documentation is, ironically, rubbish.
We generate most of our documentation from source using a new open source build system for Java called EBuild (features) that is a great alternative to Maven. You may have to adopt EBuild-specific conventions to make the most of that though.
There's some detailed articles on the deficiencies of Ant and also Maven on the site.

Resources