summaryrefslogtreecommitdiff
path: root/codemaker/source/javamaker/javaoptions.cxx
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2002-07-31 11:46:45 +0000
committerDaniel Boelzle <dbo@openoffice.org>2002-07-31 11:46:45 +0000
commit73d9da9960f1fd6ebe7b940a35f0e3749f632098 (patch)
treeb45f60ca4eadad984bc77967c8b262b4c56b29dc /codemaker/source/javamaker/javaoptions.cxx
parentcbb31d5d908190e2852797a36922a081a7935fc5 (diff)
#101918# supporting -X option now
Diffstat (limited to 'codemaker/source/javamaker/javaoptions.cxx')
-rw-r--r--codemaker/source/javamaker/javaoptions.cxx35
1 files changed, 32 insertions, 3 deletions
diff --git a/codemaker/source/javamaker/javaoptions.cxx b/codemaker/source/javamaker/javaoptions.cxx
index b0b6b92a482a..0f045b88136d 100644
--- a/codemaker/source/javamaker/javaoptions.cxx
+++ b/codemaker/source/javamaker/javaoptions.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: javaoptions.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2002-02-21 11:41:39 $
+ * last change: $Author: dbo $ $Date: 2002-07-31 12:46:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -186,6 +186,34 @@ sal_Bool JavaOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile)
m_options["-T"] = OString(s);
}
break;
+
+ case 'X': // support for eXtra type rdbs
+ {
+ if (av[i][2] == '\0')
+ {
+ if (i < ac - 1 && av[i+1][0] != '-')
+ {
+ i++;
+ s = av[i];
+ } else
+ {
+ OString tmp("'-X', please check");
+ if (i <= ac - 1)
+ {
+ tmp += " your input '" + OString(av[i+1]) + "'";
+ }
+
+ throw IllegalArgument(tmp);
+ }
+ } else
+ {
+ s = av[i] + 2;
+ }
+
+ m_extra_input_files.push_back( s );
+ break;
+ }
+
default:
throw IllegalArgument("the option is unknown" + OString(av[i]));
break;
@@ -232,7 +260,7 @@ sal_Bool JavaOptions::initOptions(int ac, char* av[], sal_Bool bCmdFile)
OString JavaOptions::prepareHelp()
{
OString help("\nusing: ");
- help += m_program + " [-options] file_1 ... file_n\nOptions:\n";
+ help += m_program + " [-options] file_1 ... file_n -Xfile_n+1 -Xfile_n+2\nOptions:\n";
help += " -O<path> = path describes the root directory for the generated output.\n";
help += " The output directory tree is generated under this directory.\n";
help += " -T<name> = name specifies a type or a list of types. The output for this\n";
@@ -242,6 +270,7 @@ OString JavaOptions::prepareHelp()
help += " -B<name> = name specifies the base node. All types are searched under this\n";
help += " node. Default is the root '/' of the registry files.\n";
help += " -nD = no dependent types are generated.\n";
+ help += " -X<file> = extra types which will not be taken into account for generation.\n";
help += prepareVersion();
return help;