Commit graph

2361 commits

Author SHA1 Message Date
hns
21117936ad * Make overloaded methods (href, renderskin, ...) overridable in JavaScript. 2006-11-20 10:58:34 +00:00
hns
d818de0d0a * Rewrite DocFunction to work with current Rhino 1.6 snapshot.
- TokenStream is no longer public, implement Parser.parseTokens()
  - Parse public nested methods in JS constructors
  - adapt to slightly changed sequence of returned tokens.
* Do not implement IPathElement in Server, Application and HelmaDoc classes.
  Implement the necessary methods in the manage application instead.
* Add DocResourceElement.getStartLine() method to get element's position
  within the containing resource
* Rename ScriptingEngine.getIntrospector() to getDoc() and declare DocApplication
  as return value.
2006-11-20 10:54:02 +00:00
hns
4e4cae0534 * Commit CVS snapshot from 2006-11-20 with added patch for Parser.parseTokens():
http://dev.helma.org/Wiki/Rhino+Bugs+%26+Patches/
2006-11-20 10:45:48 +00:00
hns
192f0b1df6 Checked apache-dom back in as it obviously is still needed.
Original log message was:
Apache DOM classes necessary for using and building
getHtmlDocument() functionality. Extracted from Xerces-J 2.0.1
2006-11-20 09:17:39 +00:00
hns
5ec24e7ba8 * Not needed anymore, replaced by TokenStreamInjector in rhino.jar 2006-11-15 15:49:24 +00:00
hns
bc8653a873 * Work on DocFunction to make it work with Rhino 1.6.
* Make DocFunction not a RuntimeException, and throw it only where needed.
* Add TokenStreamInjector class to rhino to make TokenStream publicly available
* Add StringUtils.splitLines()
2006-11-15 15:48:46 +00:00
hns
578ecb148b * Removing Apache DOM implementation, not needed anymore with modern JDKs. 2006-11-15 15:41:25 +00:00
hns
377752ae02 * Update to Rhino CVS snapshot from 2006/11/12 including the patches
from http://dev.helma.org/Wiki/Rhino+Bugs+%26+Patches/:
    - Rethrown exceptions rendered as [object Error]
    - Provide protected callback methods in Rhino debugger SwingGui
    - Bug in tail call optimization that cripples Rhino debugger
2006-11-13 16:24:22 +00:00
hns
a6c3cef342 * Make the debugger work, using a Rhino CVS snapshot with the
patch from http://dev.helma.org/Wiki/Rhino+Bugs+%26+Patches/
2006-11-13 09:48:26 +00:00
hns
ac544fe0dd * Update to Rhino CVS snapshot from 2006/11/12 including the patches
from http://dev.helma.org/Wiki/Rhino+Bugs+%26+Patches/
2006-11-13 09:46:28 +00:00
hns
9bd30b6a66 * Call onStart() directly in calling thread rather than in scheduler
to make sure it completed before the application gets mounted.
2006-11-08 13:31:02 +00:00
hns
dfd673e7b6 * Add log level info such as [INFO], [ERROR], [WARN] to log output.
* Add Logger.Entry class to avoid unnecessary String concatenation.
* Unify Logger classes code a little bit, making better use of inheritance.
* Run logger thread 3 times per second instead of 4 times.
* Add Javadoc comments and tags.
2006-10-31 14:57:55 +00:00
hns
cff3a556ee * Avoid "Error unsetting property JavaPackage on Global" message on code updates. 2006-10-17 12:02:45 +00:00
hns
cbcc04c1fb * Set/Get current RequestEvaluator explicitly via ThreadLocal
* Prevent NullpointerException when scripting engine is initialized
  from non-request-evaluator thread
  (merge from helma_1_5 branch)
2006-10-17 11:44:51 +00:00
hns
db45092717 * Implement code injection feature to RhinoEngine/Core to allow
app.addRepository() to immediately compile new resources.
  (merge from helma_1_5 branch)
2006-10-16 13:45:53 +00:00
hns
58e9431da1 * Simplify return statement, removing local variable. 2006-10-16 13:12:24 +00:00
hns
3e7c260787 * Convert file name to absolute path in constructor to work around java.io.File glitches.
Fixes bug 488 <http://helma.org/bugs/show_bug.cgi?id=488>
2006-09-27 14:09:11 +00:00
hns
2108be3807 * Use extensionId/prototype name instead of just the prototype name if a filter
refers to the prototype column. Fixes bug 484 <http://helma.org/bugs/show_bug.cgi?id=484>
2006-09-27 13:24:11 +00:00
hns
df7c3e0c86 * Copy over updated keyMap in update(). 2006-08-25 18:51:16 +00:00
hns
59d38d2ea8 * Update to Rhino CVS snapshot from 2006-08-21 to fix JavaBean property bug in 1.6R3
(see <https://bugzilla.mozilla.org/show_bug.cgi?id=343976#c4>)
2006-08-21 10:19:39 +00:00
zumbrunn
dc9e49c665 Changed version numbers to 1.6.x 2006-08-19 06:56:47 +00:00
hns
ebfbdae001 * Use getFunctionName(), functionName field isn't accessible anymore. 2006-08-18 20:12:09 +00:00
hns
e5033685db * Update Rhino to 1.6R3.
* Remove old Rhino 1.5 classes, make Helma debugger subclass Rhino 1.6 classes
  (not fully functional yet, needs patches to Rhino debugger).
* Make helma.doc.DocFunction compile with Rhino 1.6 by introducing intermediary
  DockenStream class that proxies TokenStream using java reflection.
2006-08-18 20:09:37 +00:00
hns
fc37ba8cb3 * Try to delete work/src before copying over files. 2006-08-18 14:59:38 +00:00
hns
89dfbbdaa1 * Update version info to 1.5.2 2006-08-18 14:41:20 +00:00
hns
9def07d6e9 * Omit parent lookup in getParent() for transient nodes. 2006-08-16 11:41:08 +00:00
hns
f779decdfc * Minor code improvement in write() method. 2006-08-16 11:05:26 +00:00
hns
736769cc80 * Fix terrible guaranteed nullpointer exception bug. 2006-08-11 18:00:38 +00:00
hns
47b101827a * Clean up and unify DbMapping constructors a bit.
* Make typename, app, and props fields final.
* Issue prominent warnings if parent proto can't be resolved or
  relational extended type doesn't have a _prototype mapping.
* Determine in update() if this is a relational mapping or not.
2006-08-10 21:28:58 +00:00
hns
5924f93f81 * Issue a prominent warning if parent can't be resolved using a prototype's _parent setting 2006-08-10 21:23:49 +00:00
hns
c32fec5dde * Make root _parent info in type.properties case insensitive. 2006-08-10 21:19:20 +00:00
hns
6022d616b5 * Add better error logging to getParent()
* Add checks for underscore property name before persisting/marking dirty in setNode()
* Extract underscore property name check into isPersitableProperty() method
2006-08-10 20:01:09 +00:00
hns
8c4273631d * Do not register newly created root nodes with the node cache as this may cover
actual root nodes stored in a relational database.
2006-08-10 15:16:01 +00:00
hns
33d59c0c59 * Check if _prototype is set in type.properties before appending proto clauses to queries. 2006-08-09 19:36:51 +00:00
hns
9a6757f75b * Two fixes for case insensitive maps in containsKey() and get(). 2006-08-09 11:04:29 +00:00
hns
16eca87022 * Implement both ETag and Last-Modified based conditional requests as some browsers
(e.g. Safari) don't seem to support ETags for embedded images and stuff.
2006-08-09 10:24:31 +00:00
hns
9491159dbb * Add comment to Properties keyMap field 2006-08-09 09:57:05 +00:00
hns
d47a2de6ff * Implement new case insensitive mapping that uses an in-between key lookup
table and preserves capitalization of property keys.
2006-08-09 09:55:24 +00:00
hns
4ee8b35d80 * Store property to relation mapping with lower case property name as
ResourceProperties will preserve key capitalization from now on.
2006-08-09 09:52:10 +00:00
hns
56f83cb75b * From Manfred's last patch for bug 468:
- Factor out repetitive SQL query building tasks into DbMapping.appendCondition()
  - Implement automatic extended prototype filter for collections
  - add prototype ids, but with simplified implementation (be agnostic
    about numeric ids vs. prototype names)
* Rewrite relational node insertion code
* Make better use of DbColumn class wherever possible
* Minor code improvements throughout the place
2006-08-08 15:37:09 +00:00
zumbrunn
37f26241c4 increased version number to 1.5.1 2006-08-07 13:49:14 +00:00
hns
2c2e9fbbb5 * Remove READONLY attribute from native HopObject methods. 2006-08-04 08:31:41 +00:00
hns
f5b90c23f1 Cumulative patch:
* Factor out invokeOnInit() method from Node.init() in order to implement onInit() invocation
  for the embedded database.
* Make properties starting with an _underscore transient in the embedded database,
  mirroring the behaviour of the object relational storage.
* Keep filter.additionalTables from being included in prefetchNode() queries, fixing bug 472.
* Some minor code cleanup and simplification.
2006-07-29 12:01:52 +00:00
hns
21be4d8651 * Add -h $HELMA_HOME to helma command line arguments. 2006-07-24 18:08:13 +00:00
hns
69cad60e86 * Keep in mind that repository list may grow while we're looping over it in checkRepositories().
Use a hashmap instead of a long[] to track last scan times. (fixes bug 470)
2006-07-24 14:57:49 +00:00
hns
9405046ee5 * Consolidate location for launcher.jar to HELMA_INSTALL (bug 471) 2006-07-24 13:44:15 +00:00
hns
e85a87f8d2 * Update to jakarta commons-fileupload 1.1.1. 2006-06-21 08:55:03 +00:00
hns
ddb6119b4d * Update to jakarta commons-io 1.2. 2006-06-21 08:54:44 +00:00
hns
83dd1e7c1f * Make sure we do not remove HopObject constructors if they aren't referenced during
global code compilation anymore. Fixes bug 464 <http://helma.org/bugs/show_bug.cgi?id=464>
2006-06-19 18:58:38 +00:00
hns
6a96d0c7a0 * Implement getResource() and getResources() for scripted java objects. 2006-06-19 13:56:57 +00:00