Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I worked (programatically, for a project) with a lot of config files from many *nix projects like Apache's, Squid's, smtpd's, ldap's, PAM's etc. etc. I have come to realise there is deffinetly NOT a common format (grammar) but instead each project defines his own ad-hoc format and implements it's own custom parser. No common specification.</p> <p>So the aproach on *nix projects <a href="http://en.wikipedia.org/wiki/Configuration_file" rel="nofollow noreferrer">config files</a> si not "use the parser library" but rather "write your own parser".</p> <p>There are however projects that try to stick to some sort of standard. Most common amog theese is the <a href="http://en.wikipedia.org/wiki/INI_file" rel="nofollow noreferrer">.ini file format</a> (originated on OS/2 and windows) or <a href="http://projects.gnome.org/gconf/" rel="nofollow noreferrer">GConf file format</a>, for theese you may find readily <a href="https://stackoverflow.com/questions/190629/what-is-the-easiest-way-to-parse-an-ini-file-in-java">available</a> parsers.</p> <p>Apache (read a-patch-e, as in made from many patches) is in the free-form class. It started with a <code>var value</code> format then, after a lot of "patching", added a warty-xmlish grammar for specifing scope and context of config vars. </p> <ul> <li>If you just tweak parts of the config file, probably your best approach would be to scan the file looking for your desired config vars and then work with the file locally. </li> <li>If however you need to config the whole file, better make a Java parser based on the C one.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload