]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1544] move to a struts2 theme based on bootstrap css and jquery
authorOlivier Lamy <olamy@apache.org>
Wed, 26 Oct 2011 12:24:05 +0000 (12:24 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 26 Oct 2011 12:24:05 +0000 (12:24 +0000)
start adding new module and directory. the new theme currently do nothin except having xhtml as a parent theme :-)

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1189166 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-configuration/src/main/java/org/apache/archiva/configuration/FileTypes.java
archiva-modules/archiva-web/archiva-struts2-jqboot-theme/pom.xml [new file with mode: 0644]
archiva-modules/archiva-web/archiva-struts2-jqboot-theme/src/main/resources/template/jqboot/controlheader.ftl [new file with mode: 0644]
archiva-modules/archiva-web/archiva-struts2-jqboot-theme/src/main/resources/template/jqboot/theme.properties [new file with mode: 0644]
archiva-modules/archiva-web/archiva-webapp/pom.xml
archiva-modules/archiva-web/archiva-webapp/src/main/resources/struts.properties
archiva-modules/archiva-web/pom.xml
pom.xml

index 384567fe01681f94de82b3ba8d1ea388080988c2..e48696ce3037e78cf9d635f08e0d5bd9159b8fd2 100644 (file)
@@ -19,12 +19,12 @@ package org.apache.archiva.configuration;
  * under the License.
  */
 
-import org.apache.commons.collections.CollectionUtils;
-import org.apache.commons.collections.Predicate;
-import org.apache.commons.configuration.CombinedConfiguration;
 import org.apache.archiva.common.FileTypeUtils;
 import org.apache.archiva.configuration.functors.FiletypeSelectionPredicate;
 import org.apache.archiva.configuration.io.registry.ConfigurationRegistryReader;
+import org.apache.commons.collections.CollectionUtils;
+import org.apache.commons.collections.Predicate;
+import org.apache.commons.configuration.CombinedConfiguration;
 import org.codehaus.plexus.registry.Registry;
 import org.codehaus.plexus.registry.RegistryException;
 import org.codehaus.plexus.registry.RegistryListener;
@@ -77,6 +77,7 @@ public class FileTypes
      * Default exclusions from artifact consumers that are using the file types. Note that this is simplistic in the
      * case of the support files (based on extension) as it is elsewhere - it may be better to match these to actual
      * artifacts and exclude later during scanning.
+     *
      * @deprecated
      */
     public static final List<String> DEFAULT_EXCLUSIONS = FileTypeUtils.DEFAULT_EXCLUSIONS;
@@ -183,8 +184,7 @@ public class FileTypes
             Field fld = commonsRegistry.getClass().getDeclaredField( "configuration" );
             fld.setAccessible( true );
             fld.set( commonsRegistry, new CombinedConfiguration() );
-            commonsRegistry.addConfigurationFromResource(
-                "org/apache/archiva/configuration/default-archiva.xml" );
+            commonsRegistry.addConfigurationFromResource( "org/apache/archiva/configuration/default-archiva.xml" );
 
             // Read configuration as it was intended.
             ConfigurationRegistryReader configReader = new ConfigurationRegistryReader();
diff --git a/archiva-modules/archiva-web/archiva-struts2-jqboot-theme/pom.xml b/archiva-modules/archiva-web/archiva-struts2-jqboot-theme/pom.xml
new file mode 100644 (file)
index 0000000..6892cb6
--- /dev/null
@@ -0,0 +1,33 @@
+<?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.
+  -->
+<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.apache.archiva</groupId>
+    <artifactId>archiva-web</artifactId>
+    <version>1.4-M2-SNAPSHOT</version>
+  </parent>
+  <groupId>org.apache.archiva</groupId>
+  <artifactId>archiva-struts2-jqboot-theme</artifactId>
+  <version>1.4-M2-SNAPSHOT</version>
+  <name>Archiva Web :: Struts2 JqBoot Theme</name>
+
+</project>
diff --git a/archiva-modules/archiva-web/archiva-struts2-jqboot-theme/src/main/resources/template/jqboot/controlheader.ftl b/archiva-modules/archiva-web/archiva-struts2-jqboot-theme/src/main/resources/template/jqboot/controlheader.ftl
new file mode 100644 (file)
index 0000000..bf16655
--- /dev/null
@@ -0,0 +1 @@
+<#include "/${parameters.templateDir}/xhtml/controlheader.ftl" />
\ No newline at end of file
diff --git a/archiva-modules/archiva-web/archiva-struts2-jqboot-theme/src/main/resources/template/jqboot/theme.properties b/archiva-modules/archiva-web/archiva-struts2-jqboot-theme/src/main/resources/template/jqboot/theme.properties
new file mode 100644 (file)
index 0000000..49429d0
--- /dev/null
@@ -0,0 +1 @@
+parent = xhtml
\ No newline at end of file
index 93a3ae7e8e8c326f35cf2ac90600dc91f3700de5..99ec0b42775d8e621e5049ef30f3d13bd732f57a 100644 (file)
       <groupId>org.apache.archiva</groupId>
       <artifactId>archiva-rest-api</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.apache.archiva</groupId>
+      <artifactId>archiva-struts2-jqboot-theme</artifactId>
+    </dependency>
     <dependency>
       <groupId>javax.servlet</groupId>
       <artifactId>servlet-api</artifactId>
index ef7d0c9a0059f4f23c8a204be8ddd65452606b86..323ffd79cbfae4a9debd0a6de974227084121ee6 100644 (file)
@@ -17,6 +17,8 @@
 # under the License.
 #
 
+struts.ui.theme=jqboot
+
 # define our own action mapper here
 struts.mapper.class = org.apache.archiva.web.mapper.RepositoryActionMapper
 #struts.objectFactory =  org.codehaus.plexus.spring.Struts2PlexusInSpringObjectFactory
index 3c035333fa51b5c94c803119234e13b67e938071..19b6572b482e3dfafebe50f9252c7a509ce54449 100644 (file)
@@ -28,6 +28,7 @@
   <modules>
     <module>archiva-applet</module>
     <module>archiva-security</module>
+    <module>archiva-struts2-jqboot-theme</module>
     <module>archiva-webapp</module>
     <module>archiva-webdav</module>
     <module>archiva-rss</module>
diff --git a/pom.xml b/pom.xml
index b3e449e09a357a1bafc70e56387df55734de9d2f..5fc2be8780075cb7524b4a08d9df7f70fe64a37b 100644 (file)
--- a/pom.xml
+++ b/pom.xml
         <type>zip</type>
         <classifier>docs</classifier>
       </dependency>
+      <dependency>
+        <groupId>org.apache.archiva</groupId>
+        <artifactId>archiva-struts2-jqboot-theme</artifactId>
+        <version>${project.version}</version>
+      </dependency>
       <dependency>
         <groupId>org.apache.archiva</groupId>
         <artifactId>archiva-webapp</artifactId>