lams_tool_example

  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
LDEV-2839: Convert custom ExportPortOutput and ProgressOutput tags to plain JSP pages.

These tags call include themselves recursivly what causes errors in JSP precompilation process. This is a know bug (JBAS-7496) of JBoss 5.1, fixed in JBoss 7.

These tags were used only in lams_learning, so after conversion they were left only there. They were removed from all other projects.

  1. … 102 more files in changeset.
LDEV-2839: Make JSP precompilation task independent of schemaexport.classpath Ant variable which does not exist and is not needed in all projects.

  1. … 26 more files in changeset.
LDEV-2839: Simplify choosing files for WAR with precompiled JSPs. Current solution creates unnecessary tree of empty directories where JSPs were located. The advantage is that special directories in Tools like Wiki (wikiling plugin) or Videorecorder (previewImages and recordings) do not need to be listed explicitly for compilation which allows generic Ant task for Tools and other projects.

  1. … 26 more files in changeset.
LDEV-2839: Allow JSP precompilation in Example Tool.

LDEV-2839: Add missing methods in Example Tool, do some cleaning.

LDEV-2823: Add properties that select whether standalone or embedded MySQL should be used for LAMS run and/or build.

Make all Tools use MXJ connectors if needed.

Make Tool Deployer usage lighter - libraries are not copied to Tools but they are referenced from a single spot.

Copy MXJ connectors from "mysql_embedded" project if needed.

  1. … 50 more files in changeset.
LDEV-2577

The new CKEditor does not have Java Integration library (yet). We have been

using it to:

a) get the tag library to create our own tag <lams:FCKeditor>

But the new CKEditor uses AJAX to get the contents, so the library is

not needed anymore.

The references to it has been deleted from every tool.

FCKEditor.tag has been rewritten to use the new syntax.

b) get a FCKEditor internal file manager by a Connector from the jar

The new CKEditor does not provide a file manager - the license became

commercial and the whole thing became a separate project, CKFinder.

There were alternatives suggested on the web:

jasfinder - http://sourceforge.net/projects/jasfinder/support

kcfinder - http://kcfinder.sunhater.com/

some other - http://www.miguelmanchego.com/2009/gestor-de-archivos-ckeditor/

but we have already nicely integrated with the old file manager. This page:

http://jacek-kromski.jogger.pl/2009/09/25/integracja-ckeditor-z-przegladarka-plikow-z-fckeditor/

in polish says how to use the file manager from the old FCKEditor.

The steps that have to be done:

- download the new CKEditor

- download the old FCKEditor

- copy the filemanager to ckeditor directory

- in the file browser/default/frmresourceslist.html, line 92 (with SetUrl call) needs to be replaced to:

window.top.opener.CKEDITOR.tools.callFunction( window.top.document.CKEditorFuncNum, fileUrl, '' );

- in the file browser/default/browser.html add in line 80:

document.CKEditorFuncNum = GetUrlParam( 'CKEditorFuncNum');

FCKeditor has been used in version 2.6.6, the last one before switching to CKEditor project.

Changes required to use newer version of Java Integration library

for FCKEditor so it was upgraded to the latest (for FCKEditor, because one for CKEditor does not exist) version 2.6.

This also required the Prototype to be upgraded to the latest 1.6.1.

The CKEditor code also needed to be changed, so if another upgrade to a newer version occurs, we need to remember to repeat these steps:

http://cksource.com/forums/viewtopic.php?f=5&t=15750

It says:

/ckeditor/plugins/link/dialogs/link.js

Changes

label:a.lang.common.target,'default':'notSet' --> label:a.lang.common.target,'default':'_blank'

label:a.lang.link.targetFrameName,'default':'' --> label:a.lang.link.targetFrameName,'default':'_blank'

It is also worth mentioning that if you include the ckeditor.js file twice in the same page, sometimes it causes trouble, thus detection in the CKEditor.tag files.

    • -10
    • +23
    ./web/WEB-INF/tags/HTMLEditor.tag
  1. … 1093 more files in changeset.
LDEV-2174:

Merged "context.tool" and "context.central" due to Locator inheritance bug in Spring.

Removed redundant Quartz Scheduler.

  1. … 26 more files in changeset.
LDEV-2174: Added shared context support to Example Tool.

file exampleApplicationContext.xml was initially added on branch lams2_3_spring_jboss_tune.

file applicationContext.xml was initially added on branch lams2_3_spring_jboss_tune.

    • -0
    • +0
    ./web/WEB-INF/applicationContext.xml
LDEV-2111 Upgraded FCKEditor to version 2.6.4 and FCKEditor.java (taglibs) to 2.4.1

  1. … 39 more files in changeset.
LDEV-1912 set session timeout programmatically according to lams' UserInactiveTimeout value via a servlet listener rather than hard coding to 120 mins (in some webapps, no session timeout was specified at all).

  1. … 34 more files in changeset.
LDEV-1134: Adding more support for the tool output based branching. Added a couple of simple tool output definitions for MCQ and Forum and added a class to the core to help tools create the tool output definitions (OutputDefinitionFactory), which required a change to MessageService. Also added the call to the core tool service to support calling the tools for their output definitions and new method call to ToolContentManager, requiring a change to all tools.

  1. … 20 more files in changeset.
Added context application and classpath columns

added in a property to each tool's buiild.properties for the language packe package

  1. … 12 more files in changeset.
All tools their update script to the deploy dir when the creat-tool-package task is called

  1. … 10 more files in changeset.
adding a minServerversionNumber field to deploy.xml when create-tool-package is called for all tools

  1. … 11 more files in changeset.
Changing the minimum server version number in all the tool's build.xml to 2.0.200612051427, (lams-2.0)

  1. … 11 more files in changeset.
Added in a flag hideTool in all the tool's build.properties

  1. … 20 more files in changeset.
Fixed problem which arose when deploy-tools is called. The generated deploy.xml was pointing to the wrong sql scripts, the problem originated in the build.xml of the tools, now fixed

my bad

  1. … 11 more files in changeset.
Changing the tool's build.xml to copy the .jar and .war to the build/deploy folder, and updates the deploy.xml to point to these files

  1. … 10 more files in changeset.
Changing the build.xml of all the tools so the generated deploy.xml points to the sql scripts in the build/deploy/sql folder instead of the db/sql folder

  1. … 11 more files in changeset.
Changes to build, so the tool deployer can put the tool_version in the deploy.xml when the tool is build.

Now, the tool_version in tool_insert.sql must be replaced by @tool_version@, and the actual tool version goes in the buld.properties under tool.version

  1. … 12 more files in changeset.
Changes made to all tools, so they should be made in the example tool

Changes to build, so the tool deployer can put the tool_version in the deploy.xml when the tool is build.

Now, the tool_version in tool_insert.sql must be replaced by @tool_version@, and the actual tool version goes in the buld.properties under tool.version

  1. … 5 more files in changeset.
Changes made to all tools, so they should be made in the example tool

Changes to build, so the tool deployer can put the tool_version in the deploy.xml when the tool is build.

Now, the tool_version in tool_insert.sql must be replaced by @tool_version@, and the actual tool version goes in the buld.properties under tool.version

  1. … 1 more file in changeset.
(This was changed in all the other tools, so should also be changed for the example tool) Changing build.xml "deploy-tool" target to separate the compilation and deploy processess. This will be used later for debian packaging

Version number update for RC2

  1. … 9 more files in changeset.
Updated version number to RC1

  1. … 38 more files in changeset.
Updated address of FSF in copyright statement

  1. … 781 more files in changeset.