gtri / orafile Goto Github PK
View Code? Open in Web Editor NEWJava for dealing with Oracle SQL*Net .ora files
License: Apache License 2.0
Java for dealing with Oracle SQL*Net .ora files
License: Apache License 2.0
From #3:
To create reproduceable testcases we had to sort the nodes (no problem if you stick to List<> when manipulating the datastructure).
Empty parameters should be shown as "" - if you leave them blank, Oracle uses the default value instead.
To create reproduceable testcases we had to sort the nodes (no problem if you stick to List<> when manipulating the datastructure).
See code https://gist.github.com/RLieske/8542554 (I kept the differences small to ease integration).
The parser handles escaped quotes in strings (e.g. (KEY = "val\"ue")
), so the renderer should output them that way.
Hi,
you are using System.lineSeparator() in your code which is a Java 7 method. But the maven-compiler-plugin is configured to use 1.6.
Currently we can parse but not format into the .ora file format.
The formatting is actually the easier direction, but I just haven't done it because I have no need for that functionality right now.
The renderer should be configurable among these options:
See issue #9.
There is a method to add new nodes to the tree. It would be good, to also have the functionality to delete nodes (matching some criteria, like node.getName().equals(criteria)
).
The node should be removed from both list
and map
.
Move this repo to https://github.com/gtri/
I'll also add a config option to OrafileRenderer
to set it explicitly, so you can opt out of platform-specific behavior without having to change a system property.
From #3:
Empty parameters should be shown as "" - if you leave them blank, Oracle uses the default value instead.
If you add the following line (note: it should be two backslashes, I just had to enter 4 to make it look like that)
ADR_BASE_LISTENER = "C:\Oracle"
to render-test.ora, the testcase testRender() will fail, because the backslashes are doubled (you get 4 when rendering).
can you extend the visibility of the following constructors & methods:
- OrafileRenderer(boolean sortByKey)
so one can write
return new OrafileRenderer(sortByKey).renderFile(this.tns);
instead of
return new OrafileRenderer().sortByKey(sortByKey).renderFile(this.tns);
- List OrafileRenderer.defs(OrafileDict dict)
just in case some other sort order is requested
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.