Apache OpenOffice (AOO) Bugzilla – Issue 11547
Command line support enhancement for any Runtime
Last modified: 2003-06-13 11:34:37 UTC
Need to enhance command line support so any Runtime can use it, not just Java and Beanshell. Propose the following to enable the creation of a parcel descriptor and it's deployment for any Runtime. Command line flags to be added: -n <logical name - required> -l <Optional language - defaults to Java> -f <Optional function name - defaults to logical name if not specified> -p <Optional language specific properties, needed to run the script, one or more name=value pairs, separated by ; > -t <Optional target = User, Share or office document, if not specified parcel_descriptor will be created but the script will NOT be deployed>
Went through the current options for the CommandLineTools class and the new requirements with John and the following are the enhancements to the options we are going to support: Generation of Script Parcels ====================== -g [parcel dir] If the parcel dir is not specified will try the current directory. [-l lang[=extension[;extension2]]] Add possibility to specify the extension supported for this language to be used by the ExtensionFinder implementation of the MethodFinder interface [-p name=value[;name2=value2]] Allows you to specify a list of name value pairs which will be added to the languagedepprops element in the parcel-descriptor.xml file -v Allows you to request verbose feedback on the generation process. Parcel Deployment =============== java CommandLineTools -d <parcel> <target> Same as before The automatic generation of the parcel-descriptor.xml file will be changed as follows: -l specified? parcel-descriptor.xml result exists? none no Error message none yes Generate parcel.sxp -l language no Generate parcel descriptor + sxp -l language yes Generate parcel descriptor + sxp These changes will need to be documented so adding the requires_documentation flag.
Clarification on table: The automatic generation of the parcel-descriptor.xml file will be changed as follows: -l specified? parcel-descriptor.xml result exists? none no Error message none yes Generate .sxp using existing parcel descriptor -l language no Generate parcel descriptor + .sxp -l language yes Overwrite existing parcel descriptor + Generate .sxp These changes will need to be documented so adding the requires_documentation flag.
This is now fixed as per comments.
verified fixed, can deploy beanshell, javascript and java scripts to OpenOffice.org and StarOffice. SFrameworkInstall ed0.3 rc4. Closing issue