Commit Graph

284 Commits

Author SHA1 Message Date
Guenter Obiltschnig
df855c88b7 fixed GH #1462: AbstractConfiguration::getUInt does not parse hex numbers 2016-10-24 09:41:49 +02:00
Guenter Obiltschnig
5df2508986 XMLConfiguration default (and single-argument delimiter) constructor now loads an empty XML document with "config" root element to make the configuration usable without an additional call to load() or loadEmpty(). 2016-10-16 13:39:17 +02:00
Guenter Obiltschnig
80f95d7c16 add a load() overload to specify name pool size 2016-10-07 10:59:24 +02:00
Guenter Obiltschnig
ff1834eb76 added Poco::Util::MapConfiguration::copyTo() 2016-03-01 07:31:18 +01:00
Guenter Obiltschnig
8b4709155d fixed GH #1114: World-write permissions on files created by daemon. Default umask is now 027; other mask can be set with --umask command-line parameter 2016-02-27 21:17:39 +01:00
Guenter Obiltschnig
d4cdb91c01 respect POCO_NO_FORK_EXEC in ServerApplication 2015-09-29 14:32:30 +02:00
Guenter Obiltschnig
e25a17030d integrated CMake improvements from develop (GH #946) 2015-09-26 11:11:23 +02:00
Günter Obiltschnig
4f0b692d66 added project and solution files for VS2015 2015-08-01 10:29:32 +02:00
Gamadril
dc402085e8 Fixed issue #705 Error building with ENABLE_UTIL=ON and ENABLE_XML=OFF 2015-05-19 17:08:58 +02:00
Sascha Zelzer
10425a9556 Do not overwrite CMAKE_PREFIX_PATH in component config files.
This fixes problems when a project adds a directory to
CMAKE_PREFIX_PATH, then calls find_package(Poco ...) and afterwards
calls find_package() for another project located in one of the
directories of the original CMAKE_PREFIX_PATH variable.
2015-02-04 04:35:23 +01:00
Alex Fabijanic
74c24a3789 related to GH#705: Error building with ENABLE_UTIL=ON and ENABLE_XML=OFF 2015-02-02 00:00:26 -06:00
Pascal Bach
f778e67430 CMake: Improve installation and package generation
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2015-01-27 15:52:18 +01:00
Aleksandar Fabijanic
e7fb853c7d Merge pull request #665 from cryptoknight/Subsystems
Add getter for an Application's list of Subsystems
2015-01-08 18:32:14 -06:00
Scott Davis
240128b640 Add getter for an Application's list of Subsystems 2015-01-08 17:20:38 -05:00
Scott Davis
7b347ea592 Make WinRegistryKey easier to extend 2015-01-08 16:44:59 -05:00
Pascal Bach
97ea3ef483 CMake, WinCE: Make samples and tests compile under Windows CE 2014-12-21 16:23:35 +01:00
Pascal Bach
10ef2b2335 CMake: Remove WinDriver usage in tests
Add WinCEDriver to packages supporting it
2014-12-21 16:23:35 +01:00
Pascal Bach
e2538ac6e2 Add additional test for Poco::Util::Timer
Test scheduling with Timestamp and Clock

Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2014-12-17 10:50:40 +01:00
Guenter Obiltschnig
931a5a5252 Removing support for Visual Studio.NET 2003 and Visual Studio 2005 - it's time to say goodbye to the past 2014-12-15 11:05:13 +01:00
Günter Obiltschnig
c455631e45 WinRegistryConfiguration fix 2014-11-26 10:52:49 +01:00
Guenter Obiltschnig
f848f0db19 add test for c2edf4470f 2014-11-24 18:45:41 +01:00
Guenter Obiltschnig
c2edf4470f prevent re-schedule of cancelled TimerTask 2014-11-24 18:38:05 +01:00
Günter Obiltschnig
42c814cca4 enabled WinRegistryKey and WinRegistryConfiguration for WinCE 2014-11-24 15:30:33 +01:00
Günter Obiltschnig
bc0978d01e fixed GH #471: vs2010 release builds have optimization disabled
fixed GH #616: Visual Studio warning C4244
2014-11-20 21:22:52 +01:00
Guenter Obiltschnig
e6ea29c26e fixed GH #198: The application.configDir property is not always created. 2014-11-20 00:12:54 +01:00
Günter Obiltschnig
5f380f0b80 Merge pull request #574 from siemens/cmake
Cmake updates
2014-11-06 11:17:45 +01:00
Günter Obiltschnig
1db210e8b9 GH #575: fixed compile error if POCO_WIN32_UTF8 is not defined 2014-10-16 12:57:55 +02:00
Pascal Bach
b69fafb84c CMake: Create PocoConfig.cmake to make importable from other CMake projects
The generated PocoConfig.cmake can be used by other CMake projects using find_package.
2014-10-14 17:58:46 +02:00
Günter Obiltschnig
6fe2e4fb11 VS project files: do not share intermediate directory between projects in same folder 2014-10-06 13:51:49 +02:00
Günter Obiltschnig
1966ac9e24 make WinRegistryKey compile on pre-C++11 compilers 2014-09-19 19:58:09 +02:00
Guenter Obiltschnig
544229302e #538 prevent destructors from throwing exceptions 2014-09-19 09:46:49 +02:00
Hayk Karapetyan
8b75f229f6 unit tests and changes according to comments 2014-09-12 11:02:34 +04:00
Hayk Karapetyan
93ed40c785 WinRegistryKey::getInt64 failed to read QWORD type from the windows registry.
BINARY data type support for WinRegistryKey
2014-09-11 16:18:18 +04:00
Pascal Bach
7950001803 cmake: Cleanup CMakeLists.txt for all components
- Add missing CMakeLists.txt
- Use POCO_ macros to improve code structure in XCode/VisualStudio
- Better ODBC detection
- Remove unnecessary commented out code

The CMake documentation recommends explicitly listing source files, but because CMake is not the primary build system GLOB patterns are used for the moment.
2014-08-22 17:11:03 +02:00
Günter Obiltschnig
30bb18f394 added VS2013 project/solution files for Windows Embedded Compact 2013 2014-08-09 10:49:04 +02:00
Pascal Bach
d2af29d9ea cmake: Util cleanup
- replace tabs by spaces

Reviewed-by: Roger Meier <r.meier@siemens.com>
2014-07-10 09:15:07 +02:00
Pascal Bach
975c30faf0 Add CTests for all components 2014-06-17 11:30:03 +02:00
Kontinuation
ee2b99a9ba added array element update tests for JSONConfiguration 2014-05-23 22:32:32 +08:00
Kontinuation
5a07343bd6 Merge remote-tracking branch 'upstream/develop' into develop 2014-05-23 03:02:45 +08:00
Kontinuation
1b5f9cb079 style fixes 2014-05-23 02:38:57 +08:00
Kontinuation
3880f76d82 fixed array element updating problem in JSONConfiguration 2014-05-23 02:22:06 +08:00
Josh Blum
f442148670 poco: library install dirs per RUNTIME/LIBRARY/ARCHIVE
For a unix system, this commit implies no changes by default. However, the ${LIB_SUFFIX} convention was added so the build can be configured for a red-hat style installation which uses lib64 by specifying cmake -DLIB_SUFFIX=64

For a windows build (msvc), this commit will cause the .dll files to be installed in the bin/ path; import libraries .lib are still installed in the lib/ path. Installing dlls into the bin path is preferable because dlls must be in the executable %PATH% to be found at runtime, as there is not equivalent of a separate library path as there is on unix.
2014-05-21 14:16:34 -07:00
Guenter Obiltschnig
83b0f47ffb fixed GH# 398: PropertyFileConfiguration: input != output 2014-05-19 09:42:15 +02:00
Roger Meier
b0581433a7 LICENSE: add info about SPDX-License-Identifier usage and use it
fix: remove executable flag and change back to 100644 (was 100755)

Signed-off-by: Roger Meier <r.meier@siemens.com>
2014-05-14 08:38:09 +02:00
Roger Meier
628a06f718 LICENSE: add info about SPDX-License-Identifier usage and use it
Signed-off-by: Roger Meier <roger@bufferoverflow.ch>
2014-05-04 21:02:42 +02:00
Guenter Obiltschnig
e044d77717 Merge branch 'develop' of https://github.com/pocoproject/poco into develop 2014-04-23 13:30:51 +02:00
Guenter Obiltschnig
f8169eabac updated SDK in WEC2013 project files 2014-04-23 13:30:27 +02:00
Günter Obiltschnig
85873d02c9 re-generated VS2013 testsuite projects without MFC 2014-04-21 22:10:34 +02:00
Günter Obiltschnig
12c7bb562d re-generated vs100-vs120 project files 2014-04-21 10:50:51 +02:00
Günter Obiltschnig
b2ba1dfb74 -added Windows Embedded Compact 2013 support 2014-03-17 14:36:17 +01:00
Linquize
c2ca2ffb58 Build the libraries before their TestSuites
Fixes error LINK : fatal error LNK1104: cannot open file 'Poco*.lib'
2014-01-16 08:03:42 +08:00
Guenter Obiltschnig
70e116fda2 Poco::Util::Timer now uses Poco::Clock instead of Poco::Timestamp 2013-12-12 18:37:08 +01:00
Alex Fabijanic
1c732e9938 removed MFC dependencies (WinTestRunner) from test VS projects 2013-11-07 23:31:30 -06:00
Alex Fabijanic
4297d78621 VS 2013 projects/solutions 2013-11-05 23:11:28 -06:00
Guenter Obiltschnig
cdbebdf487 fixed GH# 262 2013-09-14 10:26:44 +02:00
Guenter Obiltschnig
448d4f3da3 Units.h fix 2013-07-25 13:23:56 +02:00
Günter Obiltschnig
c7f873eee8 added missing x64_vs90 project files, fixed Util x64 project files, fixed some warnings 2013-07-22 20:44:35 +02:00
Aleksandar Fabijanic
f1d92d5722 Merge pull request #212 from ptarabbia/develop
JSONConfiguration was missing from the vs90 project.
2013-06-04 04:53:38 -07:00
Patrice Tarabbia
9048d4e6d7 JSONConfiguration was missing from the vs90 project. 2013-06-04 06:51:18 -04:00
Aleksandar Fabijanic
4826523831 fixed few GH issues
- fixed GH #209: Poco::NumberFormatter double length
- fixed GH #204: Upgrade zlib to 1.2.8
- fixed GH #198: The "application.configDir" property is not always
created.
2013-06-03 23:45:06 -05:00
Aleksandar Fabijanic
dbe5a37106 fixed GH #141: Application::run() documentation/implementation discrepancy 2013-03-30 16:59:29 -05:00
Aleksandar Fabijanic
ad5361ede1 Util alignment with JSON changes 2013-03-28 23:49:52 -05:00
Aleksandar Fabijanic
4c593dba7a GH #134: Fixed problem in Util::Application with xml or inifile no config
GH #134: Fixed problem in Util::Application with xml or inifile no
config
2013-03-24 00:18:35 -05:00
aleks-f
9378680c0b Merge remote-tracking branch 'origin/ip-address-soo' into develop 2013-02-17 16:33:44 -06:00
Reto Schneider
6544af712a Fix documentation: OptionException gets thrown by a validator, not InvalidOptionException. 2013-02-03 18:17:55 +01:00
aleks-f
911f22508e Any SOO 2013-01-31 21:12:13 -06:00
aleks-f
76a7e2e716 GH56: Need a way to disable *_API macros with GCC
GH #56: Need a way to disable *_API macros with GCC
2013-01-13 10:31:21 -06:00
aleks-f
e60bcd413d added Application::commandPath() 2013-01-05 17:17:27 -06:00
aleks-f
7e8797fb5a GH #48: Need getArgs() accessor
GH #48: Need getArgs() accessor to Util::Application to retrieve
start-up arguments
2013-01-05 15:54:12 -06:00
alex
161ea4ec18 unbundled build fixes 2013-01-05 00:04:09 -06:00
aleks-f
ef9cda6666 GH #26: Cannot compile on gcc
GH #26: Cannot compile on gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 using
compiler flag pedantic
2012-12-12 23:02:20 -06:00
Mathäus Mendel
e3649153b8 Fixed build with CMake
Used CMAKE_DEBUG_POSTFIX instead LIB_EXT for library name decoration on debug builds (less intrusive and more flexible)
2012-12-08 15:54:38 -02:00
Aleksandar Fabijanic
6d2881ef34 Merge pull request #3 from RangelReale/mobilefixes
Android and iOS fixes
2012-12-02 20:28:22 -08:00
Mike Naquin
6d586537bb Add include guards for XMLConfiguration and JSONConfiguration in Poco::Util. This will prevent accidental linking of the XML and JSON libraries when enabled. 2012-11-14 10:34:27 -06:00
Mike Naquin
5f1d1b02e2 Add JSONConfiguration to Poco::Util::Application::loadConfiguration. 2012-11-14 10:31:52 -06:00
Guenter Obiltschnig
0472e955ba POCO_SERVER_MAIN now catches Poco::Exception and writes the displayText to stderr. 2012-11-13 20:29:53 +01:00
Rangel Reale
141a2c152c * use xcode-select to find correct paths for iOS build
* add iOS definitions for CMake
* ServerApplication on Android must use events instead of signals to wait for server termination.
2012-11-11 11:59:36 -02:00
Guenter Obiltschnig
c867a80520 line ending fixes 2012-11-11 11:28:44 +01:00
Guenter Obiltschnig
514566ecd7 removed .vmsbuild files, which are no longer maintained 2012-11-11 11:08:17 +01:00
Guenter Obiltschnig
8b91562dbd more line ending fixes 2012-11-11 11:07:27 +01:00
Guenter Obiltschnig
87d7739f3d removed .vcxproj.user files 2012-11-11 10:53:02 +01:00
Guenter Obiltschnig
ad28e2fed5 more line ending fixes 2012-11-11 10:25:35 +01:00
Guenter Obiltschnig
79eab26377 the great line endings cleanup 2012-11-11 09:57:01 +01:00
Guenter Obiltschnig
83af8a3be7 WinCE fixes 2012-10-15 09:41:38 +00:00
Guenter Obiltschnig
f5351b2f49 fixed 2012/64 project files 2012-10-14 14:55:49 +00:00
Guenter Obiltschnig
b90307c200 fixed vs2010 testsuite project files 2012-10-14 10:50:44 +00:00
Guenter Obiltschnig
d1e912ed46 fixed project files 2012-10-14 08:58:13 +00:00
Guenter Obiltschnig
2e9a313185 set WINVER to 0x501 2012-10-14 07:37:40 +00:00
Aleksandar Fabijanic
991fb4a31f FreeBSD modifications 2012-09-26 02:51:43 +00:00
Aleksandar Fabijanic
fb275a9a30 Visual Studio 2012 projects and solutions files 2012-09-25 05:35:44 +00:00
Aleksandar Fabijanic
d8397b9153 - VS2012: build/tests
- JSON: style and exceptions catch by ref fix
- NumberParser: case-insensitive hex parsing
- Dynamic::Var: const std::string& cast operator specialization (coaxing std::string ctor)
- LocalDateTime: strftime fix (buffer too small for full tz string, use %Z instead of %z - makes no difference on windows but is more portable)
- small buildwin.cmd vsvars32.bat call fix
2012-09-24 03:51:40 +00:00
Aleksandar Fabijanic
a77bfefd69 - SF#3560505: NetworkInterface's ::forIndex, etc. methods must select all
- Util::Win x64 ifdefs
- RowFromatter documentation correction
2012-08-22 01:18:33 +00:00
Aleksandar Fabijanic
71a055c81a SF#3522081: WinRegistryConfiguration unable to read REG_QWORD values 2012-08-21 03:15:38 +00:00
Aleksandar Fabijanic
2b2a362926 SF #3544720: AbstractConfigurator to support 64bit values 2012-08-21 02:42:57 +00:00
Aleksandar Fabijanic
7a50c8ee0a added tests from 1.4.4 (rev. 1918) 2012-08-19 02:02:49 +00:00
Aleksandar Fabijanic
47aadf0681 - SF# 3559325: Util Windows broken in non-Unicode
- port of rev. 1918 from 1.4.4 branch (fixed SF# 3519474)
- update VS 2010 Util projects with JSON
2012-08-19 01:42:38 +00:00
Aleksandar Fabijanic
d8bbcc08a7 add JSON to VS 71 and 80 projects 2012-08-18 23:46:01 +00:00
Marian Krivos
a00602dd37 cmake fixes for JSON adding 2012-07-31 06:44:40 +00:00
Aleksandar Fabijanic
acf820c46d VS 2008 project files and build fixes 2012-07-12 05:21:01 +00:00
Aleksandar Fabijanic
95c3e8871e Linux 64-bit and static build fixes (only Ubuntu build tested) 2012-07-07 16:03:21 +00:00
Franky Braem
b521d97102 Add removeRaw, create default JSON::Object in default ctor, trigger events when enabled. 2012-07-04 20:51:24 +00:00
Franky Braem
2f36abaa6d Make setInt, setBool, ... virtual to make it possible to override them 2012-07-04 20:49:56 +00:00
Franky Braem
77ca91b475 Add JSON 2012-07-04 20:48:53 +00:00
Franky Braem
c22c78c5ff Add JSONConfigurationTest 2012-07-04 20:47:59 +00:00
Aleksandar Fabijanic
9bdc08c9f0 - added POCO_ENABLE_CPP11 config define (default for VS >= 2010)
- added _WIN32_WINNT value detection up to Windows 7
- modified Util::Units to compile with VS 2010 (static_assert is standard in C++11)
2012-06-27 02:34:23 +00:00
Marian Krivos
114de565ff added cmake support 2012-06-26 12:37:02 +00:00
Aleksandar Fabijanic
378077f209 fix for tests that got broken with Int64 introduction 2012-06-17 21:39:26 +00:00
Marian Krivos
7eb7176397 SF:# 3522084 : AbstractConfiguration does not support 64-bit integers 2012-05-26 17:25:36 +00:00
Aleksandar Fabijanic
e5e3a57baf updated convertToRegFormat name to begin with lowercase and added test 2012-05-18 03:27:52 +00:00
Franky Braem
8b7c37a837 Add JSONConfiguration 2012-05-03 20:14:38 +00:00
Franky Braem
3c22203119 Add JSONConfiguration 2012-05-03 20:12:28 +00:00
Aleksandar Fabijanic
5a639074d9 change EOL to 'native' 2012-04-29 18:52:25 +00:00
Aleksandar Fabijanic
d75e68c027 new trunk (base for 1.5)
windows build only
2012-04-23 01:14:34 +00:00
Aleksandar Fabijanic
f9b60296f7 removing old trunk files 2012-04-23 00:43:14 +00:00
Guenter Obiltschnig
2ce14cafb5 added progen files 2012-04-20 15:33:17 +00:00
Marian Krivos
a002f13be2 trunk: updated standard VS2010 sln to include x64 support (all in one) 2012-02-11 12:13:15 +00:00
Marian Krivos
8b70c37260 trunk: sync from 1.4.3
make & cmake fixes
2012-02-04 17:03:09 +00:00
Marian Krivos
218b06621d trunk: split cmake debug/optimize build 2 2012-01-08 19:10:15 +00:00
Marian Krivos
b59d198396 cmake build system cleanup 2012-01-08 09:37:13 +00:00
Marian Krivos
7cb622a445 trunk: split cmake debug/optimize build 2012-01-07 13:45:03 +00:00
Marian Krivos
6268aa3865 backport changes from 1.4.3 branch 2012-01-07 11:06:14 +00:00
Marian Krivos
cc90b38ae5 changes (part 1) from 1.4.3 branch (XMLConfiguration delimiter, OptionProcessor) 2011-11-15 13:59:05 +00:00
Marian Krivos
97ec3f5bf6 backport SharedLibrary changes from 1.4.2-p1 2011-11-04 18:56:08 +00:00
Marian Krivos
bf4776bfd1 POCO_SERVER_MAIN : fix for mingw 2011-09-21 16:24:29 +00:00
Marian Krivos
eb266f8a57 Set cmake produced shared libraries numbering to standard scheme (trunk = 12)
Sync latest Foundation changes from 1.4.2
2011-09-15 08:31:51 +00:00
Marian Krivos
8aa4425690 cmake fixes 2011-09-14 18:22:50 +00:00
Marian Krivos
7e5c3a13d6 XML: complete merge from 1.4.2 2011-09-14 14:55:17 +00:00
Marian Krivos
0ac146cb9e cmake improvements: test and samples are from now disabled by default, you can enable this option with cmdline option to cmake: '-DENABLE_TESTS=1'
minimum required CMAKE version is 2.6 from now
2011-01-22 11:46:03 +00:00
Marian Krivos
861679e616 fix linker error with MINGW32 2011-01-15 17:32:00 +00:00
Marian Krivos
c5b2daa36c cmake build system fix - debug version of ther library was striped and vice versa 2009-08-26 12:26:22 +00:00
Guenter Obiltschnig
addc556949 integrated changes from 1.3.6 2009-06-17 06:52:25 +00:00
Guenter Obiltschnig
0336789662 integrated changes from 1.3.6 2009-06-17 06:47:38 +00:00
Guenter Obiltschnig
09fce4461e changes from 1.3.6 2009-06-17 06:45:14 +00:00
Guenter Obiltschnig
6fa5bcf09f poco-ification of Units header 2009-04-30 11:26:15 +00:00
Guenter Obiltschnig
35a948448c poco-ification of Units header 2009-04-30 11:24:30 +00:00
Guenter Obiltschnig
f9b389f65f poco-ification of Units header 2009-04-30 11:23:31 +00:00
Marian Krivos
1afd0a8328 bugfix #2781776 - cmake instals .svn directories 2009-04-27 19:22:30 +00:00
Guenter Obiltschnig
28461b8e1b fixed SF# 2765569: LoadConfiguration failing from current directory 2009-04-21 06:43:48 +00:00
Guenter Obiltschnig
457e24748d added Util::Timer 2009-04-14 10:47:37 +00:00
Guenter Obiltschnig
98eb0eb532 made XMLConfiguration fully writable 2009-04-08 13:08:34 +00:00
Guenter Obiltschnig
614c87b4be documentation improvements, gcc 4.3 warning fix 2009-04-02 13:01:07 +00:00
Guenter Obiltschnig
f517c1b083 fixed SF# 2679279: Handling of -- option broken 2009-03-10 15:14:46 +00:00
Marian Krivos
2c304d744d adaptation cmake scripts to current MinGW platform (exclude SSL/Crypto/MySQL/Apache/ODBC) 2009-02-22 19:58:27 +00:00
Guenter Obiltschnig
fa1658b23a integrated improvements from 1.3.4 (NumberFormatter::append(), DateTimeFormatter::append() 2009-02-21 10:59:58 +00:00
Marian Krivos
24e706aa2a added Data, Foundation, Net and Util samples + some global cmake fixes - second portion 2009-02-19 20:38:07 +00:00
Marian Krivos
129f21cc79 added Data, Foundation, Net and Util samples + some global cmake fixes 2009-02-19 20:35:03 +00:00
Marian Krivos
16cdb4b127 cmake runtime install support (headers+libs) 2009-02-18 20:47:32 +00:00
Marian Krivos
5b320c2894 Very basic but functional (at least on linux with gcc) support
for CMake build system
. 
It is strongly recomended to use out-of-source build to preserve
original Poco makefiles.

http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees

I have tested unix makefile generating and Eclipse CDT4 generating.

Supported are static/dynamic and debug/release targets. 
On now only core libs are included: CppUnit, Foundation,
Data, Data/SQLite, Util, Net and XML. But autodetection
of OpenSSL, MySQL and ODBC is working OK already.

CPack and CTest nor library install still doesn't work, only building.

This is only the start.
2009-02-15 15:49:19 +00:00
Guenter Obiltschnig
14a4c61355 - fixed SF# 2012050: Configuration key created on read access; - Poco::Util::WinRegistryKey now has a read-only mode; - Poco::Util::WinRegistryKey::deleteKey() can now recursively delete registry keys 2008-09-18 09:04:17 +00:00
Aleksandar Fabijanic
cb6b75b753 VS 71 projects 2008-08-14 13:28:18 +00:00