[jbosstools-commits] JBoss Tools SVN: r42399 - in trunk/build/tycho-plugins: repository-utils and 4 other directories.
jbosstools-commits at lists.jboss.org
jbosstools-commits at lists.jboss.org
Thu Jul 5 05:40:00 EDT 2012
Author: mickael_istria
Date: 2012-07-05 05:39:59 -0400 (Thu, 05 Jul 2012)
New Revision: 42399
Added:
trunk/build/tycho-plugins/repository-utils/
trunk/build/tycho-plugins/repository-utils/src/main/resources/web/
trunk/build/tycho-plugins/repository-utils/src/main/resources/web/site.css
Removed:
trunk/build/tycho-plugins/generate-repository-facade/
Modified:
trunk/build/tycho-plugins/repository-utils/pom.xml
trunk/build/tycho-plugins/repository-utils/src/main/java/org/jboss/tools/tycho/sitegenerator/GenerateRepositoryFacadeMojo.java
trunk/build/tycho-plugins/repository-utils/src/main/resources/xslt/site.xsl
Log:
JBIDE-11065: improved and refactor plugin
Modified: trunk/build/tycho-plugins/repository-utils/pom.xml
===================================================================
--- trunk/build/tycho-plugins/generate-repository-facade/pom.xml 2012-07-05 08:45:31 UTC (rev 42398)
+++ trunk/build/tycho-plugins/repository-utils/pom.xml 2012-07-05 09:39:59 UTC (rev 42399)
@@ -1,17 +1,19 @@
<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>
- <groupId>org.jboss.tools.tycho</groupId>
- <artifactId>generate-repository-facade</artifactId>
- <packaging>maven-plugin</packaging>
- <version>0.0.1-SNAPSHOT</version>
- <name>Mojo to Generate site.xml for eclipse-repository</name>
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jboss.tools.tycho-plugins</groupId>
+ <artifactId>repository-utils</artifactId>
+ <packaging>maven-plugin</packaging>
+ <name>Set of Mojos to add content to p2 repositories</name>
- <properties>
- <tychoVersion>0.14.0</tychoVersion>
- </properties>
-
- <dependencies>
+ <parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>tycho-plugins</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ <relativePath>..</relativePath>
+ </parent>
+
+ <dependencies>
<dependency>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-p2-facade</artifactId>
@@ -37,28 +39,13 @@
<artifactId>saxon-dom</artifactId>
<version>8.7</version>
</dependency>
-
+
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
- </dependencies>
-
- <repositories>
- <repository>
- <id>central</id>
- <url>http://repo1.maven.org/maven2</url>
- <layout>default</layout>
- <releases><enabled>true</enabled></releases>
- </repository>
- </repositories>
- <pluginRepositories>
- <pluginRepository>
- <id>central-plugin</id>
- <url>http://repo1.maven.org/maven2</url>
- </pluginRepository>
- </pluginRepositories>
+ </dependencies>
</project>
Modified: trunk/build/tycho-plugins/repository-utils/src/main/java/org/jboss/tools/tycho/sitegenerator/GenerateRepositoryFacadeMojo.java
===================================================================
--- trunk/build/tycho-plugins/generate-repository-facade/src/main/java/org/jboss/tools/tycho/sitegenerator/GenerateRepositoryFacadeMojo.java 2012-07-05 08:45:31 UTC (rev 42398)
+++ trunk/build/tycho-plugins/repository-utils/src/main/java/org/jboss/tools/tycho/sitegenerator/GenerateRepositoryFacadeMojo.java 2012-07-05 09:39:59 UTC (rev 42399)
@@ -1,21 +1,15 @@
+/**
+ * Copyright (c) 2012, Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Mickael Istria (Red Hat, Inc.) - initial API and implementation
+ ******************************************************************************/
package org.jboss.tools.tycho.sitegenerator;
-/*
- * Copyright 2001-2005 The Apache Software Foundation.
- *
- * Licensed 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.
- */
-
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileFilter;
@@ -69,7 +63,7 @@
import org.xml.sax.SAXException;
/**
- * Goal which touches a timestamp file.
+ * Generates a JBoss-friendly facade and files for this p2 repo
*
* @goal generate-repository-facade
*
@@ -115,7 +109,6 @@
public void execute() throws MojoExecutionException
{
- getLog().warn("sites:" + associateSites.size());
if (!ArtifactKey.TYPE_ECLIPSE_REPOSITORY.equals(project.getPackaging())) {
return;
}
Added: trunk/build/tycho-plugins/repository-utils/src/main/resources/web/site.css
===================================================================
--- trunk/build/tycho-plugins/repository-utils/src/main/resources/web/site.css (rev 0)
+++ trunk/build/tycho-plugins/repository-utils/src/main/resources/web/site.css 2012-07-05 09:39:59 UTC (rev 42399)
@@ -0,0 +1,71 @@
+<
+STYLE type ="text/css">td.spacer {
+ padding-bottom: 10px;
+ padding-top: 10px;
+}
+
+.title {
+ font-family: sans-serif;
+ color: #1778be;
+}
+
+.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: #EEEEEE
+}
+
+.header {
+ background: #445562
+}
+
+#indent {
+ word-wrap: break-word;
+ width: 300px;
+ text-indent: 10px;
+}
+
+.link {
+ color: #187dc6;
+}
+
+.column-header {
+ font-size:small;
+}
+
+</
+STYLE
+>
\ No newline at end of file
Modified: trunk/build/tycho-plugins/repository-utils/src/main/resources/xslt/site.xsl
===================================================================
--- trunk/build/tycho-plugins/generate-repository-facade/src/main/resources/xslt/site.xsl 2012-07-05 08:45:31 UTC (rev 42398)
+++ trunk/build/tycho-plugins/repository-utils/src/main/resources/xslt/site.xsl 2012-07-05 09:39:59 UTC (rev 42399)
@@ -114,7 +114,7 @@
<a href="features/" style="font-size:x-small">features</a>
</td>
<td class="rowLine" colspan="1">
- <a href="jbosstools-directory.xml" style="font-size:x-small">directory.xml</a> | <a href="site.properties" style="font-size:x-small">site.properties</a>
+ <a href="jbosstools-directory.xml" style="font-size:x-small">jbosstools-directory.xml</a> :: <a href="site.properties" style="font-size:x-small">site.properties</a>
</td>
</tr>
</table>
More information about the jbosstools-commits
mailing list