Simplistic Java model classes for NGINX config files
- POJO style
- Read-Modify-Write
- Change only what is known, esp.:
- Don't change unknown tokens
- Don't change comments or whitespace
- This does not have to be perfect for whitespace between known expressions
- Validation
- To Be Fast
- Access to all aspects of the config
- Build config from scratch
- odiszapc/nginx-java-parser
- Doesn't retain empty lines
- Not typesafe
Anything between upstream
and server
directives will be moved after the last server
directive.
This kind of moving also happens to unknown expressions within known blocks.