File: testProperties.cpp

package info (click to toggle)
log4shib 1.0.9-3~bpo7%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports-sloppy
  • size: 4,244 kB
  • sloc: cpp: 4,767; sh: 4,210; ansic: 818; makefile: 268
file content (13 lines) | stat: -rw-r--r-- 308 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "Properties.hh"
#include <iostream>
#include <fstream>

int main(int argc, char** argv) {
    log4shib::Properties properties;
    std::string inFile = (argc > 1) ? argv[1] : "log4shib.properties";  
    std::ifstream in(inFile.c_str());

    properties.load(in);
    properties.save(std::cout);
}