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.4: PostgreSQL configuration file excerpt<br />

#-----------------------------------------------<br />

# CLIENT CONNECTION DEFAULTS<br />

#-----------------------------------------------<br />

datestyle = ’iso, mdy’<br />

timezone = unknown # actually, <strong>de</strong>faults to TZ<br />

#timezone_abbreviations = ’Default’<br />

# --- database variables ---------<br />

Listing 1.5: Mantis configuration file excerpt<br />

# set these values to match your setup<br />

$g_hostname = "localhost";<br />

$g_db_username = "mantisdbuser";<br />

$g_webmaster_<strong>em</strong>ail = ’webmaster@example.com’;<br />

$g_allow_file_upload = ON;<br />

1.2.4 Conclusion<br />

The VIRTU project usage scenarios also allowed us to conclu<strong>de</strong> that overall, configuration files<br />

either follow three formats:<br />

• Apache-like format;<br />

• INI-like format;<br />

• XML-like format.<br />

The Apache-like format is characterized by <strong>de</strong>fining parameters as key/value pairs separated<br />

by spaces or a similar character, blocks <strong>de</strong>limited by a hea<strong>de</strong>r and a footer, containing other<br />

patterns, and comments.<br />

The INI-like format <strong>de</strong>fines parameters as key/value pairs separated by an equal, space or a<br />

similar character, blocks <strong>de</strong>limited by a hea<strong>de</strong>r and comments.<br />

The XML-like format <strong>de</strong>fines blocks as XML el<strong>em</strong>ents <strong>de</strong>limited by a hea<strong>de</strong>r and a footer, if<br />

they contain other blocks, or a single tag if they do not contain other blocks, parameters as XML<br />

attributes contained in an XML tag, and comments.<br />

SmART should provi<strong>de</strong> built-in support for these three configuration file categories, seen<br />

as most of the configuration files fit in one of these categories. However, the tool must also be<br />

extensible to support new configuration file formats.<br />

7

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

Saved successfully!

Ooh no, something went wrong!