eclipse plugin: Remove 'legacy' update site to be updated with the new p2
This commit is contained in:
parent
72fb051509
commit
39027226d9
10 changed files with 35 additions and 257 deletions
8
utils/java/org.wesnoth.updatesite/buckminster.properties
Normal file
8
utils/java/org.wesnoth.updatesite/buckminster.properties
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Where all the output should go
|
||||
buckminster.output.root=${user.home}/_demosite
|
||||
# Where the temp files should go
|
||||
buckminster.temp.root=${user.home}/_tmp/demosite.tmp
|
||||
# How .qualifier in versions should be replaced
|
||||
qualifier.replacement.*=generator:lastRevision
|
||||
# don't generate source code
|
||||
cbi.include.source=false
|
4
utils/java/org.wesnoth.updatesite/build.properties
Normal file
4
utils/java/org.wesnoth.updatesite/build.properties
Normal file
|
@ -0,0 +1,4 @@
|
|||
bin.includes = feature.xml
|
||||
category.id.org.wesnoth.updatesite=Wesnoth Eclipse Plugins
|
||||
category.members.org.wesnoth.updatesite=org.wesnoth.feature
|
||||
category.description.org.wesnoth.updatesite=This category contains the Wesnoth Eclipse Tools
|
23
utils/java/org.wesnoth.updatesite/feature.xml
Normal file
23
utils/java/org.wesnoth.updatesite/feature.xml
Normal file
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<feature
|
||||
id="org.wesnoth.updatesite"
|
||||
label="Wesnoth UMC Dev Update site"
|
||||
version="1.0.3">
|
||||
|
||||
<description url="http://www.example.com/description">
|
||||
[Enter Feature Description here.]
|
||||
</description>
|
||||
|
||||
<copyright url="http://www.example.com/copyright">
|
||||
[Enter Copyright Description here.]
|
||||
</copyright>
|
||||
|
||||
<license url="http://www.example.com/license">
|
||||
[Enter License Description here.]
|
||||
</license>
|
||||
|
||||
<includes
|
||||
id="org.wesnoth.feature"
|
||||
version="0.0.0"/>
|
||||
|
||||
</feature>
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>WesnothUMCPlugin update site</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.pde.UpdateSiteBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.pde.UpdateSiteNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
|
@ -1,14 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site>
|
||||
<description name="Wesnoth Eclipse Updates" url="http://eclipse.wesnoth.org/">
|
||||
The default update site for Wesnoth Eclipse Plugins
|
||||
</description>
|
||||
<feature url="features/Wesnoth_Eclipse_Plugin_1.0.3.jar" id="Wesnoth_Eclipse_Plugin" version="1.0.3" os="linux,macosx,win32">
|
||||
<category name="Wesnoth_Eclipse_Plugins"/>
|
||||
</feature>
|
||||
<category-def name="Wesnoth_Eclipse_Plugins" label="Wesnoth Eclipse Plugins">
|
||||
<description>
|
||||
This category contains the Wesnoth Eclipse Tools
|
||||
</description>
|
||||
</category-def>
|
||||
</site>
|
|
@ -1,12 +0,0 @@
|
|||
<STYLE type="text/css">
|
||||
td.spacer {padding-bottom: 10px; padding-top: 10px;}
|
||||
.title { font-family: sans-serif; color: #99AACC;}
|
||||
.bodyText { font-family: sans-serif; font-size: 9pt; color:#000000; }
|
||||
.sub-header { font-family: sans-serif; font-style: normal; font-weight: bold; font-size: 9pt; color: white;}
|
||||
.log-text {font-family: sans-serif; font-style: normal; font-weight: lighter; font-size: 8pt; color:black;}
|
||||
.big-header { font-family: sans-serif; font-style: normal; font-weight: bold; font-size: 9pt; color: white; border-top:10px solid white;}
|
||||
.light-row {background:#FFFFFF}
|
||||
.dark-row {background:#EEEEFF}
|
||||
.header {background:#99AADD}
|
||||
#indent {word-wrap : break-word;width :300px;text-indent:10px;}
|
||||
</STYLE>
|
|
@ -1,214 +0,0 @@
|
|||
<xsl:stylesheet version = '1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:msxsl="urn:schemas-microsoft-com:xslt">
|
||||
<xsl:output method="html" encoding="UTF-8"/>
|
||||
<xsl:key name="cat" match="category" use="@name"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:for-each select="site">
|
||||
<html>
|
||||
<head>
|
||||
<title>Wesnoth Eclipse Plugins update site</title>
|
||||
<style>@import url("web/site.css");</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="title">Wesnoth Eclipse Plugins</h1>
|
||||
<p class="bodyText"><xsl:value-of select="description"/></p>
|
||||
<table width="100%" border="0" cellspacing="1" cellpadding="2">
|
||||
<xsl:for-each select="category-def">
|
||||
<xsl:sort select="@label" order="ascending" case-order="upper-first"/>
|
||||
<xsl:sort select="@name" order="ascending" case-order="upper-first"/>
|
||||
<xsl:if test="count(key('cat',@name)) != 0">
|
||||
<tr class="header">
|
||||
<td class="sub-header" width="30%">
|
||||
<xsl:value-of select="@name"/>
|
||||
</td>
|
||||
<td class="sub-header" width="70%">
|
||||
<xsl:value-of select="@label"/>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:for-each select="key('cat',@name)">
|
||||
<xsl:sort select="ancestor::feature//@version" order="ascending"/>
|
||||
<xsl:sort select="ancestor::feature//@id" order="ascending" case-order="upper-first"/>
|
||||
<tr>
|
||||
<xsl:choose>
|
||||
<xsl:when test="(position() mod 2 = 1)">
|
||||
<xsl:attribute name="class">dark-row</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="class">light-row</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<td class="log-text" id="indent">
|
||||
<xsl:choose>
|
||||
<xsl:when test="ancestor::feature//@label">
|
||||
<a href="{ancestor::feature//@url}"><xsl:value-of select="ancestor::feature//@label"/></a>
|
||||
<br/>
|
||||
<div id="indent">
|
||||
(<xsl:value-of select="ancestor::feature//@id"/> - <xsl:value-of select="ancestor::feature//@version"/>)
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a href="{ancestor::feature//@url}"><xsl:value-of select="ancestor::feature//@id"/> - <xsl:value-of select="ancestor::feature//@version"/></a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<br />
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<xsl:if test="ancestor::feature//@os">
|
||||
<tr><td class="log-text" id="indent">Operating Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@os"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="ancestor::feature//@ws">
|
||||
<tr><td class="log-text" id="indent">Windows Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@ws"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="ancestor::feature//@nl">
|
||||
<tr><td class="log-text" id="indent">Languages:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@nl"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="ancestor::feature//@arch">
|
||||
<tr><td class="log-text" id="indent">Architecture:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="ancestor::feature//@arch"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
<tr><td class="spacer"><br/></td><td class="spacer"><br/></td></tr>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
<xsl:if test="count(feature) > count(feature/category)">
|
||||
<tr class="header">
|
||||
<td class="sub-header" colspan="2">
|
||||
Uncategorized
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:choose>
|
||||
<xsl:when test="function-available('msxsl:node-set')">
|
||||
<xsl:variable name="rtf-nodes">
|
||||
<xsl:for-each select="feature[not(category)]">
|
||||
<xsl:sort select="@id" order="ascending" case-order="upper-first"/>
|
||||
<xsl:sort select="@version" order="ascending" />
|
||||
<xsl:value-of select="."/>
|
||||
<xsl:copy-of select="." />
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="myNodeSet" select="msxsl:node-set($rtf-nodes)/*"/>
|
||||
<xsl:for-each select="$myNodeSet">
|
||||
<tr>
|
||||
<xsl:choose>
|
||||
<xsl:when test="position() mod 2 = 1">
|
||||
<xsl:attribute name="class">dark-row</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="class">light-row</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<td class="log-text" id="indent">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@label">
|
||||
<a href="{@url}"><xsl:value-of select="@label"/></a>
|
||||
<br />
|
||||
<div id="indent">
|
||||
(<xsl:value-of select="@id"/> - <xsl:value-of select="@version"/>)
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a href="{@url}"><xsl:value-of select="@id"/> - <xsl:value-of select="@version"/></a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<br /><br />
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<xsl:if test="@os">
|
||||
<tr><td class="log-text" id="indent">Operating Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@os"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@ws">
|
||||
<tr><td class="log-text" id="indent">Windows Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@ws"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@nl">
|
||||
<tr><td class="log-text" id="indent">Languages:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@nl"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@arch">
|
||||
<tr><td class="log-text" id="indent">Architecture:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@arch"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:for-each select="feature[not(category)]">
|
||||
<xsl:sort select="@id" order="ascending" case-order="upper-first"/>
|
||||
<xsl:sort select="@version" order="ascending" />
|
||||
<tr>
|
||||
<xsl:choose>
|
||||
<xsl:when test="count(preceding-sibling::feature[not(category)]) mod 2 = 1">
|
||||
<xsl:attribute name="class">dark-row</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:attribute name="class">light-row</xsl:attribute>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<td class="log-text" id="indent">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@label">
|
||||
<a href="{@url}"><xsl:value-of select="@label"/></a>
|
||||
<br />
|
||||
<div id="indent">
|
||||
(<xsl:value-of select="@id"/> - <xsl:value-of select="@version"/>)
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<a href="{@url}"><xsl:value-of select="@id"/> - <xsl:value-of select="@version"/></a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<br /><br />
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<xsl:if test="@os">
|
||||
<tr><td class="log-text" id="indent">Operating Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@os"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@ws">
|
||||
<tr><td class="log-text" id="indent">Windows Systems:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@ws"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@nl">
|
||||
<tr><td class="log-text" id="indent">Languages:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@nl"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
<xsl:if test="@arch">
|
||||
<tr><td class="log-text" id="indent">Architecture:</td>
|
||||
<td class="log-text" id="indent"><xsl:value-of select="@arch"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Loading…
Add table
Reference in a new issue