jvanzyl 02/03/30 12:06:23
Added: src/dvsl/update v1-v2.dvsl
Log:
The transformation that will change a v1 project descriptor to a
v2 project descriptor.
-> Adding <version> as per dlr's suggestion
-> Moving toward source references in JUnit <batchtest>
Nothing set in stone yet, take a look and see what you think.
Revision Changes Path
1.1 jakarta-turbine-maven/src/dvsl/update/v1-v2.dvsl
Index: v1-v2.dvsl
===================================================================
## -----------------------------------------------------------------------
## Transform a v1 project descriptor into a v2 project descriptor.
## -----------------------------------------------------------------------
## Summary of changes:
##
## 1. Add <version> to the project.xml file. The v1 descriptors lacked
## this element.
##
## 2. Source references are now used in the JUnit <batchtest> instead
## of class references.
## -----------------------------------------------------------------------
#match ("project")
<version>2</version>
$context.applyTemplates("unitTestClassEntries")
#end
#match ("unitTestClassEntries")
<unitTestEntries>
$context.applyTemplates("unitTestClassEntry")
</unitTestEntries>
#end
#match ("unitTestClassEntry")
<unitTestEntry>
$toolbox.strings.replace($context.node,'.class','.java')
</unitTestEntry>
#end
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>