Feature #40

[ibatis] Extract XML file used by IBATIS from LSC jar

Added by Thomas Chemineau over 1 year ago. Updated about 1 year ago.

Status:Closed Start:31/03/2009
Priority:Normal Due date:
Assigned to:Jonathan Clarke % Done:

100%

Category:Core
Target version:1.1.0

Description

IBATIS uses XML files that described mapping between SQL fields and LDAP attributes. This files are embed into the compiled LSC-SAMPLE JAR file. It should be more useful to extract those files from the JAR file, so that configuration could be done easily without rebuild the project.

Could it be possible ? If not, explain why please :)

LSC-config-dir-etc.patch (11 KB) Jonathan Clarke, 17/04/2009 19:06

LSC-config-dir-etc-V1.1.patch (13.8 KB) Thomas Chemineau, 20/04/2009 10:27


Related issues

related to Bug #48: Configuration read error under Eclipse/Windows Closed 04/05/2009
related to Bug #108: Cannot change configuration directory Closed 08/07/2009

Associated revisions

Revision 202
Added by Jonathan Clarke over 1 year ago

Fixes #40. All configuration can now be read in a directory! Backwards compatible changes with config in JARs.

Revision 203
Added by Jonathan Clarke over 1 year ago

Some test files related to previous commit. References #40.

Revision 221
Added by Jonathan Clarke about 1 year ago

Further checking of configuration file location. References #40.

Revision 294
Added by Jonathan Clarke about 1 year ago

Provide configuration directory. Refs #40.

Revision 297
Added by Jonathan Clarke about 1 year ago

Refs #40. Improve reading from a configuration directory.

Revision 302
Added by Jonathan Clarke about 1 year ago

Refs #40. Factorize setting up configuration from a directory.

Revision 304
Added by Jonathan Clarke about 1 year ago

Refs #40. Add and update default configuration files

Revision 306
Added by Jonathan Clarke about 1 year ago

Refs #40. Remove quotes around path name, if necessary

Revision 308
Added by Jonathan Clarke about 1 year ago

Fixes #40. Generation now places files in the etc/ directory.

History

Updated by Jonathan Clarke over 1 year ago

  • File LSC-config-dir-etc.patch added
  • Category set to Core
  • Status changed from New to Assigned
  • Assigned to set to Thomas Chemineau
  • Target version set to 1.1.0

This is possible.

It requires using a configurable configuration directory, which is now implemented (see issue #23). Now, some changes to the code need to be done to make this possible, and backwards compatible.

Some work has been done, and the result is in the attached patch. Not finished, but here to followup. Remains to do:
- change generator to put generated sqlMap files in the sql-map-config.d dir
- change build.xml to create the sql-map-config.d dir
- test it all :)

Updated by Thomas Chemineau over 1 year ago

See some corrections :
- load locales ;
- fix some bugs when loading log4j.properties file.

Updated by Jonathan Clarke over 1 year ago

  • Status changed from Assigned to Feedback
  • % Done changed from 0 to 100

Applied in changeset r202.

Updated by Jonathan Clarke over 1 year ago

  • Status changed from Feedback to Assigned
  • Assigned to changed from Thomas Chemineau to Jonathan Clarke
  • % Done changed from 100 to 80

We still need to update the build scripts to place these files in the right directories - a target/etc directory, maybe?

Updated by Jonathan Clarke about 1 year ago

  • Status changed from Assigned to Feedback
  • % Done changed from 80 to 100

Applied in changeset r308.

Updated by Jonathan Clarke about 1 year ago

I have updated the doc to reflect this. There is probably still room for some improvement, but this now works. Also, old files can probably be removed from the lsc-sample now.

Updated by Jonathan Clarke about 1 year ago

  • Status changed from Feedback to Closed

Closing - all these files are now in the etc/ directory provided by lsc-sample.

Also available in: Atom PDF