directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r592026 - in /directory/sandbox/felixk/studio-updatesite: ./ src/ src/main/ src/main/assembly/ src/main/resources/ src/main/resources/web/
Date Mon, 05 Nov 2007 15:02:01 GMT
Author: felixk
Date: Mon Nov  5 07:02:00 2007
New Revision: 592026

URL: http://svn.apache.org/viewvc?rev=592026&view=rev
Log:
Initial studio maven-build

Added:
    directory/sandbox/felixk/studio-updatesite/   (with props)
    directory/sandbox/felixk/studio-updatesite/README   (with props)
    directory/sandbox/felixk/studio-updatesite/pom.xml   (with props)
    directory/sandbox/felixk/studio-updatesite/src/
    directory/sandbox/felixk/studio-updatesite/src/main/
    directory/sandbox/felixk/studio-updatesite/src/main/assembly/
    directory/sandbox/felixk/studio-updatesite/src/main/assembly/bin.xml   (with props)
    directory/sandbox/felixk/studio-updatesite/src/main/resources/
    directory/sandbox/felixk/studio-updatesite/src/main/resources/.htaccess   (with props)
    directory/sandbox/felixk/studio-updatesite/src/main/resources/index.html   (with props)
    directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.cgi   (with props)
    directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.html   (with props)
    directory/sandbox/felixk/studio-updatesite/src/main/resources/site.xml   (with props)
    directory/sandbox/felixk/studio-updatesite/src/main/resources/web/
    directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.css   (with props)
    directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.xsl   (with props)

Propchange: directory/sandbox/felixk/studio-updatesite/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Nov  5 07:02:00 2007
@@ -0,0 +1,2 @@
+.settings
+target

Added: directory/sandbox/felixk/studio-updatesite/README
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-updatesite/README?rev=592026&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-updatesite/README (added)
+++ directory/sandbox/felixk/studio-updatesite/README Mon Nov  5 07:02:00 2007
@@ -0,0 +1,29 @@
+Apache Directory Studio Update Site:
+------------------------
+The update site is located under https://directory.apache.org/studio/udpate. 
+
+The main update site consists of the following files:
+
+ +--directory.apache.org
+    |
+    +--studio
+       |
+       +--update
+          |
+          +--.htaccess
+          +--site--xml.html
+          +--site--xml.cgi
+
+The update manager of Eclipse and the RCP application automatically tries to 
+access the site.xml to get new updates or features. Our .htacces contains
+a rewrite rule to forward from site.xml to site--xml.cgi.
+
+The site--xml.cgi just calls Apache's mirrors.cgi to get a list of available
+mirrors.
+
+The site--xml.html is a template of the real site.xml. The url of the 
+preferred mirror determined by the cgi script is applied to this template.
+
+With this trick the update manager always gets an URL to another mirror.
+The update manager loads the features and plugins from these mirrors. So
+the mirrors must contain the features and the plugins directories.

Propchange: directory/sandbox/felixk/studio-updatesite/README
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-updatesite/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-updatesite/pom.xml?rev=592026&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-updatesite/pom.xml (added)
+++ directory/sandbox/felixk/studio-updatesite/pom.xml Mon Nov  5 07:02:00 2007
@@ -0,0 +1,209 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<!--
+    @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+    @version $Id: pom.xml 353 2007-10-28 14:59:35Z felix $
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.directory.studio</groupId>
+        <artifactId>parent</artifactId>
+        <version>1.0.2-SNAPSHOT</version>
+    </parent>
+    <artifactId>${groupId}.updatesite</artifactId>
+    <name>Apache Directory Studio Update Site</name>
+    <packaging>pom</packaging>
+
+    <description></description>
+
+    <!-- Set path for local repository and others-->
+    <properties>
+        <local-repo>${project.basedir}/../local-repository</local-repo>
+        <current_pom_version>${pom.version}</current_pom_version>
+    </properties>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <targetPath>../updatesite</targetPath>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
+
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-resources-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>resources</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <!-- Deploy all to ${project.build.directory}/updatesite for local use-->
+            <plugin>
+                <groupId>org.apache.directory.studio</groupId>
+                <artifactId>maven-studio-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>copy-directory-studio-plugins</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>copy-eclipse-artifact</goal>
+                        </goals>
+                        <configuration>
+                            <destinationDirectory>${project.build.directory}/updatesite/plugins</destinationDirectory>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.ldapbrowser.core</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.ldapbrowser.common</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.connection.ui</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.connection.core</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.valueeditors</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.rcp</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.ldifeditor</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.schemaeditor</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.schemaeditor.help</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.ldapbrowser.ui</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.apacheds.configuration</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.jars</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.aciitemeditor</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.help</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.ldifeditor.help</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.ldapbrowser.help</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.apacheds.configuration.help</artifactId>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+                    <execution>
+                        <id>copy-features</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>copy-eclipse-artifact</goal>
+                        </goals>
+                        <configuration>
+                            <destinationDirectory>${project.build.directory}/updatesite/features</destinationDirectory>
+                            <artifactItems>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.feature</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.schemaeditor.feature</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.ldapbrowser.feature</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.ldifeditor.feature</artifactId>
+                                </artifactItem>
+                                <artifactItem>
+                                    <groupId>org.apache.directory.studio</groupId>
+                                    <artifactId>${pom.groupId}.apacheds.configuration.feature</artifactId>
+                                </artifactItem>
+                            </artifactItems>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+
+            <!-- Build dist in root projects target/distributions -->
+            <plugin>
+                <artifactId>maven-assembly-plugin</artifactId>
+                <version>2.2-beta-1</version>
+                <executions>
+                    <execution>
+                        <id>dist</id>
+                        <phase>package</phase>
+                        <configuration>
+                            <finalName>updatesite-${pom.version}</finalName>
+                            <outputDirectory>../target/distributions</outputDirectory>
+                            <descriptors>
+                                <descriptor>src/main/assembly/bin.xml</descriptor>
+                            </descriptors>
+                        </configuration>
+                        <goals>
+                            <goal>attached</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>

Propchange: directory/sandbox/felixk/studio-updatesite/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-updatesite/src/main/assembly/bin.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-updatesite/src/main/assembly/bin.xml?rev=592026&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-updatesite/src/main/assembly/bin.xml (added)
+++ directory/sandbox/felixk/studio-updatesite/src/main/assembly/bin.xml Mon Nov  5 07:02:00
2007
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<!--
+    @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+    @version $Id: pom.xml 353 2007-10-28 14:59:35Z felix $
+-->
+
+<assembly xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd">
+    <id>dist</id>
+    <formats>
+        <format>tar.gz</format>
+        <format>zip</format>
+    </formats>
+    <baseDirectory>updatesite</baseDirectory>
+    <fileSets>
+        <fileSet>
+            <directory>target/updatesite</directory>
+            <outputDirectory>/</outputDirectory>
+        </fileSet>
+    </fileSets>
+</assembly>
+

Propchange: directory/sandbox/felixk/studio-updatesite/src/main/assembly/bin.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-updatesite/src/main/resources/.htaccess
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-updatesite/src/main/resources/.htaccess?rev=592026&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-updatesite/src/main/resources/.htaccess (added)
+++ directory/sandbox/felixk/studio-updatesite/src/main/resources/.htaccess Mon Nov  5 07:02:00
2007
@@ -0,0 +1,6 @@
+RewriteEngine on
+
+RewriteBase /studio/update
+
+RewriteRule ^site.xml$ site--xml.cgi [L]
+

Propchange: directory/sandbox/felixk/studio-updatesite/src/main/resources/.htaccess
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-updatesite/src/main/resources/index.html
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-updatesite/src/main/resources/index.html?rev=592026&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-updatesite/src/main/resources/index.html (added)
+++ directory/sandbox/felixk/studio-updatesite/src/main/resources/index.html Mon Nov  5 07:02:00
2007
@@ -0,0 +1,60 @@
+<html>
+<head>
+<title>studio-updatesite</title>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<style>@import url("web/site.css");</style>
+<script type="text/javascript">
+	var returnval = 0;
+	var stylesheet, xmlFile, cache, doc;
+	function init(){
+		// NSCP 7.1+ / Mozilla 1.4.1+ / Safari
+		// Use the standard DOM Level 2 technique, if it is supported
+		if (document.implementation && document.implementation.createDocument) {
+			xmlFile = document.implementation.createDocument("", "", null);
+			stylesheet = document.implementation.createDocument("", "", null);
+			if (xmlFile.load){
+				xmlFile.load("site.xml");
+				stylesheet.load("web/site.xsl");
+			} else {
+				alert("Document could not be loaded by browser.");
+			}
+			xmlFile.addEventListener("load", transform, false);
+			stylesheet.addEventListener("load", transform, false);
+		}
+		//IE 6.0+ solution
+		else if (window.ActiveXObject) {
+			xmlFile = new ActiveXObject("msxml2.DOMDocument.3.0");
+			xmlFile.async = false;
+			xmlFile.load("site.xml");
+			stylesheet = new ActiveXObject("msxml2.FreeThreadedDOMDocument.3.0");
+			stylesheet.async = false;
+			stylesheet.load("web/site.xsl");
+			cache = new ActiveXObject("msxml2.XSLTemplate.3.0");
+			cache.stylesheet = stylesheet;
+			transformData();
+		}
+	}
+	// separate transformation function for IE 6.0+
+	function transformData(){
+		var processor = cache.createProcessor();
+		processor.input = xmlFile;
+		processor.transform();
+		data.innerHTML = processor.output;
+	}
+	// separate transformation function for NSCP 7.1+ and Mozilla 1.4.1+ 
+	function transform(){
+		returnval+=1;
+		if (returnval==2){
+			var processor = new XSLTProcessor();
+			processor.importStylesheet(stylesheet); 
+			doc = processor.transformToDocument(xmlFile);
+			document.getElementById("data").innerHTML = doc.documentElement.innerHTML;
+		}
+	}
+</script>
+</head>
+<body onload="init();">
+<!--[insert static HTML here]-->
+<div id="data"><!-- this is where the transformed data goes --></div>
+</body>
+</html>

Propchange: directory/sandbox/felixk/studio-updatesite/src/main/resources/index.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.cgi
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.cgi?rev=592026&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.cgi (added)
+++ directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.cgi Mon Nov  5
07:02:00 2007
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Wrapper script around mirrors.cgi script
+# (we must change to that directory in order for python to pick up the
+#  python includes correctly)
+cd /www/www.apache.org/dyn/mirrors
+/www/www.apache.org/dyn/mirrors/mirrors.cgi $* 

Propchange: directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.cgi
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.cgi
------------------------------------------------------------------------------
    svn:executable = *

Added: directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.html
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.html?rev=592026&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.html (added)
+++ directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.html Mon Nov 
5 07:02:00 2007
@@ -0,0 +1,128 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<!--
+    @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+    @version $Id: pom.xml 353 2007-10-28 14:59:35Z felix $
+-->
+
+<site>
+	<description url="http://directory.apache.org/studio/update/1.x">
+      The Apache Directory Studio update site.
+   </description>
+   <feature 
+   		url="[preferred]/directory/studio/update/1.x/features/org.apache.directory.studio.feature_${current_pom_version}.jar"

+   		id="org.apache.directory.studio.feature" version="${current_pom_version}"
+   		os="linux,macosx,win32" ws="carbon,gtk,win32" arch="ppc,x86,x86_64">
+      <category name="Apache Directory Studio RCP"/>
+   </feature>
+   <feature 
+   		url="[preferred]/directory/studio/update/1.x/features/org.apache.directory.studio.ldapbrowser.feature_${current_pom_version}.jar"

+   		id="org.apache.directory.studio.ldapbrowser.feature" version="${current_pom_version}">
+      <category name="Apache Directory Studio LDAP Browser"/>
+   </feature>
+   <feature 
+   		url="[preferred]/directory/studio/update/1.x/features/org.apache.directory.studio.schemaeditor.feature_${current_pom_version}.jar"

+   		id="org.apache.directory.studio.schemaeditor.feature" version="${current_pom_version}">
+      <category name="Apache Directory Studio Schema Editor"/>
+   </feature>
+   <feature 
+   		url="[preferred]/directory/studio/update/1.x/features/org.apache.directory.studio.apacheds.configuration.feature_${current_pom_version}.jar"

+   		id="org.apache.directory.studio.apacheds.configuration.feature" version="${current_pom_version}">
+      <category name="Apache Directory Studio Apache DS"/>
+   </feature>
+   <feature url="[preferred]/directory/studio/update/1.x/features/org.apache.directory.studio.ldifeditor.feature_${current_pom_version}.jar"
+       id="org.apache.directory.studio.ldifeditor.feature" version="${current_pom_version}">
+      <category name="Apache Directory Studio LDIF Editor"/>
+   </feature>
+   <archive 
+   		path="plugins/org.apache.directory.studio.aciitemeditor_${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.aciitemeditor_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.apacheds.configuration.help_${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.apacheds.configuration.help_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.apacheds.configuration_${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.apacheds.configuration_${current_pom_version}.jar"/>
+   <archive
+   		path="plugins/org.apache.directory.studio.connection.core_${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.connection.core_${current_pom_version}.jar"/>
+   <archive
+   		path="plugins/org.apache.directory.studio.connection.ui_${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.connection.ui_${current_pom_version}.jar"/>
+   <archive
+   		path="plugins/org.apache.directory.studio.ldapbrowser.common_${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.ldapbrowser.common_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.ldapbrowser.core_${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.ldapbrowser.core_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.ldapbrowser.help_${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.ldapbrowser.help_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.ldapbrowser.ui${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.ldapbrowser.ui_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.help_${current_pom_version}.jar" 
+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.help_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.jars_${current_pom_version}.jar" 
+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.jars_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.ldifeditor_${current_pom_version}.jar" 
+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.ldifeditor_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.ldifeditor.help_${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.ldifeditor.help_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.schemaeditor.help_${current_pom_version}.jar"

+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.schemaeditor.help_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.schemaeditor_${current_pom_version}.jar" 
+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.schemaeditor_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio.valueeditors_${current_pom_version}.jar" 
+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio.valueeditors_${current_pom_version}.jar"/>
+   <archive 
+   		path="plugins/org.apache.directory.studio_${current_pom_version}.jar" 
+   		url="[preferred]/directory/studio/update/1.x/plugins/org.apache.directory.studio_${current_pom_version}.jar"/>
+   <category-def name="Apache Directory Studio RCP" label="Apache Directory Studio RCP">
+      <description>
+         The Apache Directory Studio RCP category contains all features related to the RCP
Application.
+      </description>
+   </category-def>
+   <category-def name="Apache Directory Studio LDAP Browser" label="Apache Directory Studio
LDAP Browser">
+      <description>
+         The Apache Directory Studio Browser category contains all features related to the
LDAP Browser.
+      </description>
+   </category-def>
+   <category-def name="Apache Directory Studio Schema Editor" label="Apache Directory
Studio Schema Editor">
+      <description>
+         The Apache Directory Studio Schema category contains all features related to the
Schema Editor.
+      </description>
+   </category-def>
+   <category-def name="Apache Directory Studio Apache DS" label="Apache Directory Studio
Apache DS">
+      <description>
+         The Apache Directory Studio Apache DS category contains all features related to
Apache DS.
+      </description>
+   </category-def>
+   <category-def name="Apache Directory Studio LDIF Editor" label="Apache Directory Studio
LDIF Editor">
+      <description>
+         The Apache Directory Studio LDIF Editor category contains all features related to
the LDIF Editor.
+      </description>
+   </category-def>
+</site>

Propchange: directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/sandbox/felixk/studio-updatesite/src/main/resources/site--xml.html
------------------------------------------------------------------------------
    svn:executable = *

Added: directory/sandbox/felixk/studio-updatesite/src/main/resources/site.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-updatesite/src/main/resources/site.xml?rev=592026&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-updatesite/src/main/resources/site.xml (added)
+++ directory/sandbox/felixk/studio-updatesite/src/main/resources/site.xml Mon Nov  5 07:02:00
2007
@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+    
+    http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+<!--
+    @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+    @version $Id: pom.xml 353 2007-10-28 14:59:35Z felix $
+-->
+
+<site>
+   <description url="http://directory.apache.org/studio/update/1.x">
+      The Apache Directory Studio update site.
+   </description>
+   <feature
+       url="features/org.apache.directory.studio.feature_${current_pom_version}.jar"
+       id="org.apache.directory.studio.feature" version="${current_pom_version}"
+       os="linux,macosx,win32" ws="carbon,gtk,win32" arch="ppc,x86,x86_64">
+      <category name="Apache Directory Studio RCP"/>
+   </feature>
+   <feature
+       url="features/org.apache.directory.studio.ldapbrowser.feature_${current_pom_version}.jar"
+       id="org.apache.directory.studio.ldapbrowser.feature" version="${current_pom_version}">
+      <category name="Apache Directory Studio LDAP Browser"/>
+   </feature>
+   <feature url="features/org.apache.directory.studio.schemaeditor.feature_${current_pom_version}.jar"
+       id="org.apache.directory.studio.schemaeditor.feature" version="${current_pom_version}">
+      <category name="Apache Directory Studio Schema Editor"/>
+   </feature>
+   <feature url="features/org.apache.directory.studio.apacheds.configuration.feature_${current_pom_version}.jar"
+       id="org.apache.directory.studio.apacheds.configuration.feature" version="${current_pom_version}">
+      <category name="Apache Directory Studio Apache DS"/>
+   </feature>
+   <feature url="features/org.apache.directory.studio.ldifeditor.feature_${current_pom_version}.jar"
+       id="org.apache.directory.studio.ldifeditor.feature" version="${current_pom_version}">
+      <category name="Apache Directory Studio LDIF Editor"/>
+   </feature>
+   <category-def name="Apache Directory Studio RCP" label="Apache Directory Studio RCP">
+      <description>
+         The Apache Directory Studio RCP category contains all features related to the RCP
Application.
+      </description>
+   </category-def>
+   <category-def name="Apache Directory Studio LDAP Browser" label="Apache Directory Studio
LDAP Browser">
+      <description>
+         The Apache Directory Studio Browser category contains all features related to the
LDAP Browser.
+      </description>
+   </category-def>
+   <category-def name="Apache Directory Studio Schema Editor" label="Apache Directory
Studio Schema Editor">
+      <description>
+         The Apache Directory Studio Schema category contains all features related to the
Schema Editor.
+      </description>
+   </category-def>
+   <category-def name="Apache Directory Studio Apache DS" label="Apache Directory Studio
Apache DS">
+      <description>
+         The Apache Directory Studio Apache DS category contains all features related to
Apache DS.
+      </description>
+   </category-def>
+   <category-def name="Apache Directory Studio LDIF Editor" label="Apache Directory Studio
LDIF Editor">
+      <description>
+         The Apache Directory Studio LDIF Editor category contains all features related to
the LDIF Editor.
+      </description>
+   </category-def>
+</site>

Propchange: directory/sandbox/felixk/studio-updatesite/src/main/resources/site.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.css
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.css?rev=592026&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.css (added)
+++ directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.css Mon Nov  5
07:02:00 2007
@@ -0,0 +1,12 @@
+<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>

Propchange: directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.css
------------------------------------------------------------------------------
    svn:eol-style = native

Added: directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.xsl
URL: http://svn.apache.org/viewvc/directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.xsl?rev=592026&view=auto
==============================================================================
--- directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.xsl (added)
+++ directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.xsl Mon Nov  5
07:02:00 2007
@@ -0,0 +1,214 @@
+<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>studio-updatesite</title>
+	<style>@import url("web/site.css");</style>
+	</head>
+	<body>
+	<h1 class="title">studio-updatesite</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)  &gt; 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>

Propchange: directory/sandbox/felixk/studio-updatesite/src/main/resources/web/site.xsl
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message