18.04.2013 Views

Dissertaç ˜ao de Mestrado Mestrado em Engenharia Informática Jo ...

Dissertaç ˜ao de Mestrado Mestrado em Engenharia Informática Jo ...

Dissertaç ˜ao de Mestrado Mestrado em Engenharia Informática Jo ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1. INTRODUCTION 1.2. Probl<strong>em</strong> Description<br />

Listing 1.2: Eclipse configuration file excerpt<br />

<br />

<br />

<br />

<br />

[mysqld]<br />

#<br />

# * Basic Settings<br />

#<br />

Listing 1.3: MySQL configuration file excerpt<br />

user = mysql<br />

pid-file = /var/run/mysqld/mysqld.pid<br />

socket = /var/run/mysqld/mysqld.sock<br />

port = 3306<br />

MySQL<br />

The MySQL [Mic09b] configuration files (Listing 1.3) are in a format similar to the INI file<br />

format (ahead in Section 1.3). A MySQL configuration file impl<strong>em</strong>ents parameters formed as id<br />

- separator - value, where the separator is the ‘=’ character; comments which are text lines starting<br />

with the ‘#’ character; and blocks i<strong>de</strong>ntified by an initial hea<strong>de</strong>r and which may contain multiple<br />

parameters and/or comments.<br />

PostgreSQL<br />

The PostgreSQL [Gro09b] configuration files (Listing 1.4) are an amalgam of parameters and<br />

comments. A parameter is formed as id - separator - value, where the separator is the ‘=’ charac-<br />

ter and the value may be a keyword or a string <strong>de</strong>limited by the apostrophe character as the<br />

value. A comment may appear anywhere in the file and is i<strong>de</strong>ntified by the ‘#’ character. Unlike<br />

the previous examples, the PostgreSQL configuration files do not impl<strong>em</strong>ent the block pattern,<br />

although there se<strong>em</strong>s to be a followed convention in which a set of parameters is prece<strong>de</strong>d by a<br />

comment, which is similar to a block.<br />

Mantis<br />

The Mantis PHP Bug Tracker [Gro09a] configuration file (Listing 1.5) impl<strong>em</strong>ents parameters of<br />

the form $ - key - separator - value, where the separator is the ‘=’ character and the value is a<br />

keyword or a string <strong>de</strong>limited by apostrophes or quotes. It also impl<strong>em</strong>ents comments, which<br />

are text lines that start with the ‘#’ character.<br />

6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!