提交 72e3d27b 编写于 作者: J jurgen

Update site customization

上级 a73b4a7c
<?xml version="1.0" encoding="UTF-8"?>
<site>
<description name="DBeaver Update Site" url="http://dbeaver.jkiss.org/update/3.0">DBeaver Update Site</description>
<description name="DBeaver Update Site" url="http://dbeaver.jkiss.org/update/latest">DBeaver Update Site</description>
<category-def name="org.jkiss.dbeaver" label="DBeaver">
<description>Universal Database Manager</description>
</category-def>
......
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jkiss.dbeaver</groupId>
<artifactId>dbeaver</artifactId>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jkiss.dbeaver</groupId>
<artifactId>dbeaver</artifactId>
<version>1.0.0</version>
<relativePath>../../</relativePath>
</parent>
<artifactId>dbeaver-update</artifactId>
<version>1.0.0</version>
<relativePath>../../</relativePath>
</parent>
<artifactId>updateSite</artifactId>
<version>1.0.0</version>
<packaging>eclipse-update-site</packaging>
<packaging>eclipse-repository</packaging>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-resources</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/repository</outputDirectory>
<resources>
<resource>
<directory>siteTemplate</directory>
<includes>
<include>index.html</include>
<include>web/*</include>
</includes>
</resource>
<resource>
<directory>.</directory>
<includes>
<include>category.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
......@@ -13,7 +13,7 @@
xmlFile = document.implementation.createDocument("", "", null);
stylesheet = document.implementation.createDocument("", "", null);
if (xmlFile.load){
xmlFile.load("site.xml");
xmlFile.load("category.xml");
stylesheet.load("web/site.xsl");
} else {
alert("Document could not be loaded by browser.");
......@@ -25,7 +25,7 @@
else if (window.ActiveXObject) {
xmlFile = new ActiveXObject("msxml2.DOMDocument.3.0");
xmlFile.async = false;
xmlFile.load("site.xml");
xmlFile.load("category.xml");
stylesheet = new ActiveXObject("msxml2.FreeThreadedDOMDocument.3.0");
stylesheet.async = false;
stylesheet.load("web/site.xsl");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册