aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNicola Ken Barozzi <nicolaken@apache.org>2002-04-16 16:49:38 +0000
committerNicola Ken Barozzi <nicolaken@apache.org>2002-04-16 16:49:38 +0000
commit474af27ea46d96a74a29de18308f4e607ebbe8d3 (patch)
treea2f4f2addc0d53fd949531d832343d15f17ef780 /tools
parent7de0dbc84b687e3075ae61b4570330db69564149 (diff)
downloadpoi-474af27ea46d96a74a29de18308f4e607ebbe8d3.tar.gz
poi-474af27ea46d96a74a29de18308f4e607ebbe8d3.zip
Use Jakarta Commons Sandbox project JJar to get the cents directly from
the krysalis.org/jars repository when needed. It downloads the cents that are specified in the properties.xml when the corresponding jar is not available at all. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352428 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'tools')
-rw-r--r--tools/antipede/build.xtarget47
-rw-r--r--tools/antipede/lib/jjar.jarbin0 -> 37598 bytes
-rw-r--r--tools/antipede/resources/stylesheets/getcent.xsl77
-rw-r--r--tools/cents/antidote.cent.jarbin225970 -> 0 bytes
-rw-r--r--tools/cents/centipede.cent.jarbin38529 -> 0 bytes
-rw-r--r--tools/cents/checkstyle.cent.jarbin197381 -> 0 bytes
-rw-r--r--tools/cents/forrest.cent.jarbin1630000 -> 0 bytes
-rw-r--r--tools/cents/jdepend.cent.jarbin49583 -> 0 bytes
-rw-r--r--tools/cents/junit.cent.jarbin165247 -> 0 bytes
-rw-r--r--tools/cents/umldoclet.cent.jarbin21845 -> 0 bytes
-rw-r--r--tools/cents/xmldoclet.cent.jarbin129976 -> 0 bytes
11 files changed, 112 insertions, 12 deletions
diff --git a/tools/antipede/build.xtarget b/tools/antipede/build.xtarget
index a0392f741f..6b040aaf20 100644
--- a/tools/antipede/build.xtarget
+++ b/tools/antipede/build.xtarget
@@ -31,7 +31,6 @@
<property name="tools.dir" value="tools"/>
<property name="temp.dir" value="tools/tmp"/>
<property name="cents.dir" value="tools/cents"/>
- <property name="installed.cents.dir" value="tools/installed"/>
<property name="antipede.dir" value="tools/antipede"/>
<property name="antipede.lib.dir" value="tools/antipede/lib"/>
<property name="cent.lib.dir.name" value="lib"/>
@@ -40,7 +39,8 @@
<property name="cent.dir.suffix" value="cent"/>
<property name="cent.installed.suffix" value="installed"/>
-
+ <mkdir dir="${cents.dir}"/>
+
<!-- define all ant tasks in antipede -->
<taskdef file="${antipede.dir}/${task.properties.name}">
<classpath>
@@ -52,7 +52,38 @@
</path>
</classpath>
</taskdef>
-
+
+ <!--
+ Load project information
+ -->
+ <centipede-xml-property file="module.xml" prefix="xgump" keeproot="true" />
+ <centipede-xml-property file="status.xml" prefix="xstatus" keeproot="false" />
+ <centipede-xml-property file="layout.xml" prefix="xlayout" keeproot="false" />
+ <centipede-xml-property file="properties.xml" keeproot="false" />
+
+ <style basedir="."
+ destdir="${temp.dir}"
+ includes="properties.xml"
+ extension=".build.xml"
+ style="${antipede.dir}/resources/stylesheets/getcent.xsl"/>
+
+ <ant antfile="${temp.dir}/properties.build.xml"
+ inheritAll="true"
+ dir="."
+ target="getcents" />
+<!--
+ <style basedir="."
+ destdir="${temp.dir}"
+ includes="module.xml"
+ extension=".build.xml"
+ style="${antipede.dir}/resources/stylesheets/getlibs.xsl"/>
+
+ <ant antfile="${temp.dir}/module.build.xml"
+ inheritAll="true"
+ dir="."
+ target="getlibs" />
+-->
+
<!-- Unpack jarred cents -->
<antipede-foreach target="-cent-unjar" param="current.cent.jar">
<fileset dir="." casesensitive="yes">
@@ -66,7 +97,6 @@
<mkdir dir="${temp.dir}"/>
<delete file="${temp.dir}/${task.properties.name}"/>
-
<!-- put all ant task definitions in cents in a single file -->
<antipede-trycatch><try>
@@ -92,14 +122,7 @@
<catch><echo message="Unable to load tasks... could be already loaded." /></catch>
</antipede-trycatch>
- <!--
- Load project information
- -->
- <centipede-xml-property file="module.xml" prefix="xgump" keeproot="true" />
- <centipede-xml-property file="status.xml" prefix="xstatus" keeproot="false" />
- <centipede-xml-property file="layout.xml" prefix="xlayout" keeproot="false" />
- <centipede-xml-property file="properties.xml" keeproot="false" />
-
+
</target>
<!-- ================================ -->
diff --git a/tools/antipede/lib/jjar.jar b/tools/antipede/lib/jjar.jar
new file mode 100644
index 0000000000..8c1610a5b4
--- /dev/null
+++ b/tools/antipede/lib/jjar.jar
Binary files differ
diff --git a/tools/antipede/resources/stylesheets/getcent.xsl b/tools/antipede/resources/stylesheets/getcent.xsl
new file mode 100644
index 0000000000..1084b0c72d
--- /dev/null
+++ b/tools/antipede/resources/stylesheets/getcent.xsl
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:template match="/">
+ <project default="getcents" basedir="." name="getcents">
+
+ <description>
+ Autogenerated Ant build file that downloads needed cents for the project.
+ </description>
+
+ <target name="getcents">
+ <xsl:attribute name="depends">
+ <xsl:for-each select = "properties/centipede/tools/cents/*">
+ <xsl:value-of select="name()"/>-present,
+ </xsl:for-each>
+ <xsl:for-each select = "properties/centipede/tools/cents/*">
+ <xsl:value-of select="name()"/>-target,
+ </xsl:for-each>dummy-target
+ </xsl:attribute>
+ </target>
+
+ <xsl:apply-templates/>
+
+ <target name="dummy-target">
+ <echo message="cents fetch finished"/>
+ </target>
+
+ </project>
+ </xsl:template>
+
+
+ <xsl:template match="properties">
+
+ <xsl:variable name = "repository" select = "centipede/tools/cents/./@repository" />
+
+ <xsl:for-each select = "centipede/tools/cents/*">
+
+ <target>
+ <xsl:attribute name="name"><xsl:value-of select="name()"/>-target</xsl:attribute>
+ <xsl:attribute name="unless"><xsl:value-of select="name()"/>.present</xsl:attribute>
+ <xsl:attribute name="depends"><xsl:value-of select="name()"/>-present</xsl:attribute>
+
+ <antipede-jjar>
+
+ <xsl:attribute name="package"><xsl:value-of select="name()"/>.cent</xsl:attribute>
+ <xsl:attribute name="repository"><xsl:value-of select="$repository"/></xsl:attribute>
+ <xsl:attribute name="localrepository">${cents.dir}</xsl:attribute>
+ <xsl:attribute name="pathrefid">dummy.classpath</xsl:attribute>
+ <!--
+ <xsl:attribute name="version"></xsl:attribute>
+ <xsl:attribute name="pathrefid"></xsl:attribute>
+ <xsl:attribute name="classpath"></xsl:attribute>
+ <xsl:attribute name="onlyDependencies"></xsl:attribute>
+ <xsl:attribute name="verifyignore"></xsl:attribute> -->
+
+ </antipede-jjar>
+ </target>
+ </xsl:for-each>
+
+ <xsl:for-each select = "centipede/tools/cents/*">
+
+ <target>
+ <xsl:attribute name="name"><xsl:value-of select="name()"/>-present</xsl:attribute>
+
+ <available>
+ <xsl:attribute name="file">${cents.dir}/<xsl:value-of select="name()"/>.cent.jar</xsl:attribute>
+ <xsl:attribute name="property"><xsl:value-of select="name()"/>.present</xsl:attribute>
+ </available>
+
+ <echo><xsl:value-of select="name()"/>.cent.jar is present: ${<xsl:value-of select="name()"/>.present}</echo>
+
+ </target>
+ </xsl:for-each>
+
+ </xsl:template>
+
+</xsl:stylesheet> \ No newline at end of file
diff --git a/tools/cents/antidote.cent.jar b/tools/cents/antidote.cent.jar
deleted file mode 100644
index 16df197148..0000000000
--- a/tools/cents/antidote.cent.jar
+++ /dev/null
Binary files differ
diff --git a/tools/cents/centipede.cent.jar b/tools/cents/centipede.cent.jar
deleted file mode 100644
index b6186d4d1e..0000000000
--- a/tools/cents/centipede.cent.jar
+++ /dev/null
Binary files differ
diff --git a/tools/cents/checkstyle.cent.jar b/tools/cents/checkstyle.cent.jar
deleted file mode 100644
index 5915495935..0000000000
--- a/tools/cents/checkstyle.cent.jar
+++ /dev/null
Binary files differ
diff --git a/tools/cents/forrest.cent.jar b/tools/cents/forrest.cent.jar
deleted file mode 100644
index 6d565d5d8a..0000000000
--- a/tools/cents/forrest.cent.jar
+++ /dev/null
Binary files differ
diff --git a/tools/cents/jdepend.cent.jar b/tools/cents/jdepend.cent.jar
deleted file mode 100644
index 5cfe1498d8..0000000000
--- a/tools/cents/jdepend.cent.jar
+++ /dev/null
Binary files differ
diff --git a/tools/cents/junit.cent.jar b/tools/cents/junit.cent.jar
deleted file mode 100644
index 5fad94bb77..0000000000
--- a/tools/cents/junit.cent.jar
+++ /dev/null
Binary files differ
diff --git a/tools/cents/umldoclet.cent.jar b/tools/cents/umldoclet.cent.jar
deleted file mode 100644
index e13c551122..0000000000
--- a/tools/cents/umldoclet.cent.jar
+++ /dev/null
Binary files differ
diff --git a/tools/cents/xmldoclet.cent.jar b/tools/cents/xmldoclet.cent.jar
deleted file mode 100644
index bf8328a41d..0000000000
--- a/tools/cents/xmldoclet.cent.jar
+++ /dev/null
Binary files differ