Statistics
| Revision:

svn-gvsig-desktop / tags / v2_0_0_Build_2011 / build / ant-tasks / eclipse-classpath.xsl @ 34095

History | View | Annotate | Download (879 Bytes)

1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
	xmlns:mvn="http://maven.apache.org/POM/4.0.0">
4

    
5
	<xsl:template match="/">
6
		<classpath xsl:exclude-result-prefixes='mvn #default'>
7
		<xsl:for-each select="mvn:project/mvn:build/mvn:plugins/mvn:plugin/mvn:configuration">
8
			<xsl:call-template name="config"/>
9
		</xsl:for-each>
10
		<xsl:for-each select="mvn:project/mvn:profiles/mvn:profile[mvn:id='se']/mvn:build/mvn:plugins/mvn:plugin/mvn:configuration">
11
			<xsl:call-template name="config"/>
12
		</xsl:for-each>
13
		</classpath>
14
	</xsl:template>
15
	
16
	<xsl:template name="config">
17
		<xsl:for-each select="mvn:additionalClasspathElements/mvn:additionalClasspathElement">
18
			<classpathentry xsl:exclude-result-prefixes='mvn #default' kind="lib" path="{.}"/>			
19
		</xsl:for-each>
20
	</xsl:template>
21

    
22
</xsl:stylesheet>