diff options
author | Juergen Schmidt <jsc@openoffice.org> | 2002-11-20 15:20:29 +0000 |
---|---|---|
committer | Juergen Schmidt <jsc@openoffice.org> | 2002-11-20 15:20:29 +0000 |
commit | a634061cb9349ddba60cc4ed52f767e1a8950815 (patch) | |
tree | beb0c71b4acb9d91a2bf309b405c0ea6f8c6d427 /codemaker | |
parent | 37cb6612952ab215d89a088e6c45b203121d52ad (diff) |
#105422# using osl_getCommandLineArgs for rdb input files
Diffstat (limited to 'codemaker')
-rw-r--r-- | codemaker/source/cppumaker/cppuoptions.cxx | 13 | ||||
-rw-r--r-- | codemaker/source/javamaker/javaoptions.cxx | 13 |
2 files changed, 18 insertions, 8 deletions
diff --git a/codemaker/source/cppumaker/cppuoptions.cxx b/codemaker/source/cppumaker/cppuoptions.cxx index ec9ab831306d..cdc10ec15ab5 100644 --- a/codemaker/source/cppumaker/cppuoptions.cxx +++ b/codemaker/source/cppumaker/cppuoptions.cxx @@ -2,9 +2,9 @@ * * $RCSfile: cppuoptions.cxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: dbo $ $Date: 2002-07-31 12:46:38 $ + * last change: $Author: jsc $ $Date: 2002-11-20 16:17:48 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,7 +61,9 @@ #include <stdio.h> #include <string.h> -#include "cppuoptions.hxx" +#include "cppuoptions.hxx" +#include "osl/thread.h" +#include "osl/process.h" using namespace rtl; @@ -328,7 +330,10 @@ sal_Bool CppuOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile) } } else { - m_inputFiles.push_back(av[i]); + OUString system_filepath; + OSL_VERIFY( osl_Process_E_None == osl_getCommandArg( i-1, &system_filepath.pData ) ); + m_inputFiles.push_back(OUStringToOString(system_filepath, osl_getThreadTextEncoding())); +// m_inputFiles.push_back(av[i]); } } } diff --git a/codemaker/source/javamaker/javaoptions.cxx b/codemaker/source/javamaker/javaoptions.cxx index 0f045b88136d..4311c08faed6 100644 --- a/codemaker/source/javamaker/javaoptions.cxx +++ b/codemaker/source/javamaker/javaoptions.cxx @@ -2,9 +2,9 @@ * * $RCSfile: javaoptions.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: dbo $ $Date: 2002-07-31 12:46:43 $ + * last change: $Author: jsc $ $Date: 2002-11-20 16:20:29 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,7 +61,9 @@ #include <stdio.h> #include <string.h> -#include "javaoptions.hxx" +#include "javaoptions.hxx" +#include "osl/process.h" +#include "osl/thread.h" using namespace rtl; @@ -249,7 +251,10 @@ sal_Bool JavaOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile) } } else { - m_inputFiles.push_back(av[i]); + OUString system_filepath; + OSL_VERIFY( osl_Process_E_None == osl_getCommandArg( i-1, &system_filepath.pData ) ); + m_inputFiles.push_back(OUStringToOString(system_filepath, osl_getThreadTextEncoding())); +// m_inputFiles.push_back(av[i]); } } } |