antlets/init/src module2properties.xsl,NONE,1.1 dummy.xml,NONE,1.1 xbuild.xml,1.5,1.6
[email protected] Wed, 03 Mar 2004 08:27:47 -0800
| Newsgroups | gmane.comp.krysalis.metamorphosis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/antlets/init/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20948/init/src
Modified Files:
xbuild.xml
Added Files:
module2properties.xsl dummy.xml
Log Message:
Read module.xml in init antlet (through xsl to ant build / import)
--- NEW FILE: module2properties.xsl ---
<?xml version="1.0"?>
<!--$Header: /cvsroot/metamorphosis/antlets/init/src/module2properties.xsl,v 1.1 2004/03/03 16:27:45 homeijer Exp $ -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:param name="project"/>
<xsl:output method="xml" indent="yes" encoding="UTF-8" />
<xsl:template match="/">
<project>
<xsl:if test="module/project">
<property name="project.src.dir">
<xsl:attribute name="value">
<xsl:value-of
select="module/project[@name=$project]/code[@type='java/plain']/@dir"/>
</xsl:attribute>
</property>
<property name="project.test.dir">
<xsl:attribute name="value">
<xsl:value-of
select="module/project[@name=$project]/test[@type='test/junit']/@dir"/>
</xsl:attribute>
</property>
<property name="project.documentation.dir">
<xsl:attribute name="value">
<xsl:value-of
select="module/project[@name=$project]/documentation[@type='xml/forrest']/@dir"/>
</xsl:attribute>
</property>
<property name="project.package">
<xsl:attribute name="value">
<xsl:value-of select="module/project[@name=$project]/package"/>
</xsl:attribute>
</property>
<property name="module.vendor">
<xsl:attribute name="value">
<xsl:value-of select="module/vendor"/>
</xsl:attribute>
</property>
</xsl:if>
</project>
</xsl:template>
</xsl:stylesheet>
--- NEW FILE: dummy.xml ---
<dummy>
</dummy>
Index: xbuild.xml
===================================================================
RCS file: /cvsroot/metamorphosis/antlets/init/src/xbuild.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** xbuild.xml 2 Mar 2004 21:16:39 -0000 1.5
--- xbuild.xml 3 Mar 2004 16:27:45 -0000 1.6
***************
*** 67,71 ****
semanticAttributes="true"
includeSemanticAttribute="true" />
!
<!-- The location of tools.jar, relative to the JAVA_HOME home. -->
<property name="tools.jar" value="${java.home}/../lib/tools.jar"/>
--- 67,71 ----
semanticAttributes="true"
includeSemanticAttribute="true" />
!
<!-- The location of tools.jar, relative to the JAVA_HOME home. -->
<property name="tools.jar" value="${java.home}/../lib/tools.jar"/>
***************
*** 97,102 ****
<mkdir dir="${temp.dir}"/>
!
!
<echo >
--- 97,117 ----
<mkdir dir="${temp.dir}"/>
!
! <!--
! Transform the module.xml to properties (if module.xml present)
! -->
! <dirname property="init.antlet.dir" file="${ant.file.init.antlet}"/>
! <property name="init-antlet:work.dir" value="${build.dir}/work"/>
!
! <!-- check module.xml -->
! <available file="./module.xml" property="module.xml" value="./module.xml"/>
! <property name="module.xml" value="${init.antlet.dir}/dummy.xml"/>
! <style basedir="."
! out="${init-antlet:work.dir}/module-properties.tmp.xml"
! in="${module.xml}"
! style="${init.antlet.dir}/module-properties.xsl">
! <param name="project" expression="${project.name}"/>
! </style>
! <import file="${init-antlet:work.dir}/module-properties.tmp.xml"/>
<echo >
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click