Ticket #49 (closed enhancement: fixed)

Opened 1 year ago

Last modified 2 months ago

Validate XML config files during the build

Reported by: schst Assigned to: mikey
Priority: minor Milestone: 0.7.0
Component: Build System Version: SVN-trunk
Keywords: Cc:

Description

The XmlLint task of Phing could be used to validate all of the available XML configuration files.

This will allow improved error reporting and avoids launching a misconfigured application.

Change History

05/27/07 22:51:07 changed by schst

  • owner changed from mikey to schst.

05/27/07 22:51:13 changed by schst

  • status changed from new to assigned.

11/28/07 15:42:19 changed by mikey

  • milestone set to 0.5.0.

12/18/07 18:50:29 changed by mikey

I took a look at the XmlLint task of Phing and think that it is not suited for the target we want to achieve here. Using the Phing task would require an additional XML Schema definition which is bad for two points:

  1. For XJConf configuration files we already have the definitions in their own XML files. Adding schema definitions will double the amount of work when adding new tags.
  2. XJConf configuration definitions can be extended by the user. We have no safe way of including guesses about this in our schema definitions.

As our XML files are mainly for XJConf I propose another solution:

  1. All XJConf definition files and configuration files delivered as -dist files should be checked with integration tests as it is already done for the majority of this files.
  2. Create a new Phing task that allows checking XJConf configuration files created by the user against the definition files by ensuring that reading the files with the appropriate classes delivered by Stubbles does not throw an exception.

12/25/07 22:27:03 changed by schst

  • owner deleted.
  • status changed from assigned to new.

Will probably not be implemented by me.

12/25/07 22:41:40 changed by mikey

  • owner set to mikey.

01/11/08 10:11:44 changed by mikey

  • milestone changed from 0.5.0 to 0.6.0.

02/26/08 01:19:32 changed by mikey

  • milestone changed from 0.6.0 to 0.7.0.

03/03/08 14:52:43 changed by mikey

  • status changed from new to assigned.

03/03/08 16:44:26 changed by mikey

With r1395 a new base interface net::stubbles::lang::stubInitializer was introduced. Next step is to write a phing task that can execute a configurable list of net::stubbles::lang::stubInitializer instances.

03/03/08 21:23:05 changed by mikey

Added a new task that executes a configured list of net::stubbles::lang::stubInitializer instances with r1397. Todo:

  • rewort starwriter task to be compatible with stubInitClassLoader task in order to enable the new test-initializers target in the stubbles build file
  • test new test-initializers target in release

03/24/08 01:21:23 changed by mikey

The feature is now enabled with r1456. It still has to be tested within a release.

03/27/08 15:43:05 changed by mikey

  • status changed from assigned to closed.
  • resolution set to fixed.

We will not support this for releases as the project structure of the application is somewhat hard to predict.