Feature #40
[ibatis] Extract XML file used by IBATIS from LSC jar
| 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 :)
Associated revisions
Fixes #40. All configuration can now be read in a directory! Backwards compatible changes with config in JARs.
Some test files related to previous commit. References #40.
Further checking of configuration file location. References #40.
Provide configuration directory. Refs #40.
Refs #40. Improve reading from a configuration directory.
Refs #40. Factorize setting up configuration from a directory.
Refs #40. Add and update default configuration files
Refs #40. Remove quotes around path name, if necessary
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
- File LSC-config-dir-etc-V1.1.patch added
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.