diff options
author | prrvchr <prrvchr@gmail.com> | 2025-03-03 15:39:03 +0100 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2025-03-06 11:59:07 +0100 |
commit | f78397068fa7fd403046605fb37620fba7a76e63 (patch) | |
tree | ca1587ce1e4fad2ef4961ad86a7b5f9d80f79e5e /unodevtools/source/skeletonmaker/skeletonmaker.cxx | |
parent | f78a20ea166123c6891c06b50b6a2394e4fcae06 (diff) |
tdf#165580 uno-skeletonmaker provide passive registration
Change-Id: Ic347a68eb1a13923493d6efe6d911e7e705145a9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182436
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Diffstat (limited to 'unodevtools/source/skeletonmaker/skeletonmaker.cxx')
-rw-r--r-- | unodevtools/source/skeletonmaker/skeletonmaker.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/unodevtools/source/skeletonmaker/skeletonmaker.cxx b/unodevtools/source/skeletonmaker/skeletonmaker.cxx index e26dc2af0ac0..a026e962b75d 100644 --- a/unodevtools/source/skeletonmaker/skeletonmaker.cxx +++ b/unodevtools/source/skeletonmaker/skeletonmaker.cxx @@ -75,6 +75,10 @@ const char usageText[] = " add-in as well. Default is a minimal add-in component\n" " skeleton based on the configuration coming with the\n" " office since OO.org 2.0.4.\n" +" -pr specifies that the generated Java code skeleton use passive\n" +" --passive-registration registration. The methods __getComponentFactory() and\n" +" __writeRegistryServiceInfo() will not be created.\n" +" This option is not yet implemented for '--cpp' target language\n" " -o <path> path specifies an existing directory where the\n" " output files are generated to, only valid for\n" " sub-command 'component'. If path=stdout the generated\n" @@ -121,7 +125,7 @@ void printUsageAndExit(const char* programname, const char* version) SAL_IMPLEMENT_MAIN() { - const char* const version = "0.4"; + const char* const version = "0.5"; const char* const programname = "uno-skeletonmaker"; sal_uInt32 nCount = rtl_getAppCommandArgCount(); @@ -207,6 +211,11 @@ SAL_IMPLEMENT_MAIN() options.backwardcompatible = true; continue; } + if ( readOption( "pr", &nPos, arg) || + readOption( "passive-registration", &nPos, arg) ) { + options.passiveregistration = true; + continue; + } if ( readOption( "propertysetmixin", &nPos, arg) ) { options.supportpropertysetmixin = true; continue; |