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 | 5736257367533d684311b38aee5c22646fb274fa (patch) | |
tree | 53d541373028b21e3c3be5e42cc00c179b7ece08 /codemaker | |
parent | a5b725bcdc62047c3546a82470887b07921381ca (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 f87c15ada..7155ab686 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 904c48564..d72ca783a 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]); } } } |