Commit Graph

1548 Commits

Author SHA1 Message Date
32af02b32f Allow usage of system rhino wrt fdo#42977
It is done the same way the beanshell is handled.
Currently it can't be enabled by default as internal version has
patched-in debug interface.
We can choose two paths, rewrite the code to the new rhino debug
interface or just strip the current one out.

Change-Id: I48af18c635816db8269f13a649b62e9c454ee1e6
2012-05-06 12:52:55 +02:00
0815a87c0c Do not check for beanshell if not needed
Do not install the benashell/javascript stuff if they are not actually
bult.
Build rhino only when required by javascript extension.

Change-Id: Icc378524008389af35631c64a1a0288eb4f271be
2012-05-05 12:15:38 +02:00
b1c3e8ae28 make gbuild the default assumption of build.pl
this removes dmake completely out of the build for migrated modules
build.pl now assumes modules to be gbuild, unless there is a
prj/dmake file

Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-29 03:50:46 +02:00
03511802da Change implementation names of script providers...
...that are no longer bundled extensions.  Otherwise, old user data where these
were still recorded as bundled extensions could cause execeptions at start up
about duplicate implementations.
2012-04-26 16:07:11 +02:00
2ac2e013be Typo in service name
...detected now that the default service manager XContentEnumerationAccess
no creates its own XServiceInfo instances.
2012-04-26 16:07:11 +02:00
eae0f40bba Bump extension version after changing to passive registration
...otherwise, if it is bundled, its per-user data is not regenerated, leading
to inconsistencies.
2012-04-26 08:34:12 +02:00
2abba84aa7 Replace css macro with namespace for nicer namespacing 2012-04-21 05:53:30 +02:00
5f93dc708a Fix another extra parenthesis 2012-04-18 22:51:44 +02:00
a4f4e51304 use gb_Helper_make_url here 2012-04-12 20:22:21 +02:00
e4fb171d3a Replaced a few equal calls with == 2012-04-08 19:24:00 +02:00
c923f7d2c2 gbuild: "use" vs. "add":
Naming convention for gbuild methods:
- "add" is used for stuff that is logically a part of the target
  (i.e. not registered at the Module, but defined in the target's makefile)
- "use" is used for stuff that is logically a different target
  (i.e. it is registered at the Module, has it's own makefile, may be
  in a different module than the target)
2012-04-08 01:05:52 +02:00
d6bc02f8c4 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator 2012-04-06 20:03:42 +02:00
743f22045c Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\)) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 15:07:41 +02:00
8a01ee6243 Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operator
Pattern used:

find . -name "*.cxx" -exec sed -i 's/\( *\)\(else if\|if\) *( *\([^!()|&]*\)\.equalsAsciiL( *RTL_CONSTASCII_STRINGPARAM *( *\([^)]*\) ) *) *)$/\1\2 ( \3 == \4 )/' \{\} \;
2012-04-06 14:30:05 +02:00
13ff4059a8 .html files don't need executable bits 2012-03-23 21:58:19 +01:00
30a29aa6f1 README files don't need executable bits 2012-03-23 21:58:17 +01:00
78fa09a6e1 .csv files don't need executable bits 2012-03-23 21:58:17 +01:00
9429bbb0c4 .component files don't need executable bits 2012-03-23 21:58:14 +01:00
dc1b917cda .gif files don't need executable bits 2012-03-23 21:58:14 +01:00
d7aacb8461 .hrc files don't need executable bits 2012-03-23 21:58:14 +01:00
c65ae8762b Improve error reporting 2012-03-23 17:34:22 +01:00
8087d5389f Java new cannot return null 2012-03-23 16:20:17 +01:00
4b6988b432 Improve error reporting 2012-03-23 16:20:17 +01:00
0b9fda25f3 fdo#46102: Fix Java script examples after gbuild'ification
...they contained no class files anymore, due to missing gb_Jar_set_packageroot
calls.  However, those calls only work for subdirectories, i.e., the example
.java files need to be put into a package (I chose
org.libreoffice.example.java_scripts) for all of them).  This in turn required
adaption of the parcel-descriptor.xml files; not sure what the logicalname
entries there are good for if anything -- the macro names at "Tools - Macros -
Run Macro..." now unfortunately(?) contain the fully qualified paths for the
HelloWorld, HighlightText, and MemoryUpdate examples.  There are additional
examples at scripting/examples/java/ that apparently do not get packaged (but I
adapted them anyway).
2012-03-23 16:20:17 +01:00
dd6c4f4db1 fdo#46102: Load Java scripts with class loaders that actually find them
ScriptMetaData.createURL produces weird URLs (ending in "/ucb/", and potentially
still containing vnd.sun.star.expand: prefix) that are apparently good for
loading documents for editing via UCBStreamHandler, but cannot meaningfully be
passed to a URLClassLoader.

It is unclear to me how the Java script provider shall ever have found the
script jars in the past.
2012-03-23 16:20:17 +01:00
788a19ceff scripting: don't need x bits for these 2012-03-23 15:37:23 +01:00
91d60be7ee fdo#46102: Fix scripting jar manifests after gbuild'ification 2012-03-22 23:28:37 +01:00
2a1171929e chmod -x 2012-03-21 13:00:45 +02:00
84b3f7b345 gbuild: get rid of realpath in gb_Foo_set_include 2012-03-10 21:23:20 +01:00
660e4481a4 Avoid temporary rtl::OUString
in scripting / sdext / starmath / stoc / svtools / svx
2012-02-28 01:55:00 +09:00
c16bc82637 s/interpreters/scripting/ 2012-02-27 16:51:56 +02:00
4c737b6470 Decouple disabling of scripting (BASIC &co) from OS being iOS 2012-02-27 10:06:22 +02:00
8361d62aa9 expand and remove dcsssf macro 2012-02-21 20:56:57 +01:00
3006397439 Prefer equalsIgnoreAsciiCaseAsciiL(RTL_CONSTASCII_STRINGPARAM("..."))
to equalsIgnoreAsciiCaseAscii("...")
2012-02-21 01:07:21 +09:00
64e1ae0f55 Added READMEs for modules which used to be in libs-core 2012-02-08 06:37:16 +01:00
c857dff7fc switch to include-based build rather than sourced-based build 2012-02-05 19:34:05 -06:00
81cf9f5099 Bypass building BASIC and scripting related modules for iOS
Any LO-based app distributed through the App Store can't have
scripting or extendability anyway.

Sure, this will break the build elsewhere because of missing headers.
No big deal, I will take care of that eventually. It isn't as if there
would anybody else building for iOS anyway, as far as I know. If there
is, please make yourself heard.
2012-01-27 22:43:58 +02:00
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
aab14cb9fb fix prefix of command line switches (-- instead of -) 2012-01-11 19:25:45 +01:00
fffd541c3e Fix for fdo43460 Part XXIX getLength() to isEmpty()
Part XXIX
Modules
sax, scaddins, sccomp, scripting
2012-01-05 22:05:45 -02:00
8cc98837d3 catch exception by constant reference 2011-12-25 15:09:58 +09:00
6a8f6c4b13 Removed extra semicolons 2011-12-15 16:38:50 +00:00
dcfd4beb21 childs -> children 2011-12-08 11:32:41 +02:00
2acd8fbac9 in modules, when we have a env we are in stage gbuild 2011-12-07 15:53:06 +01:00
d73e574d8a move reconfigure into gbuild 2011-11-29 17:25:14 +01:00
c0bed9c72e remove precompiled_xxx.hxx/cxx 2011-11-27 18:07:55 -06:00
3f2ff54778 remove pch from the include list 2011-11-27 15:24:45 -06:00
d843e92c73 remove include of pch header from scripting 2011-11-27 13:20:34 -06:00
992757cc5e remove pre-compiled header support in gbuild and gbuildified module 2011-11-27 11:49:38 -06:00
f2f0dbd273 make gbuild makefiles run independant of pwd again 2011-11-25 12:04:40 +01:00