Author: simoneg
Date: Mon Oct 19 22:15:13 2009
New Revision: 826835
URL: http://svn.apache.org/viewvc?rev=826835&view=rev
Log:
YUI support methods
Added:
labs/magma/trunk/website-yui/pom.xml
labs/magma/trunk/website-yui/src/
labs/magma/trunk/website-yui/src/main/
labs/magma/trunk/website-yui/src/main/java/
labs/magma/trunk/website-yui/src/main/java/org/
labs/magma/trunk/website-yui/src/main/java/org/apache/
labs/magma/trunk/website-yui/src/main/java/org/apache/magma/
labs/magma/trunk/website-yui/src/main/java/org/apache/magma/website/
labs/magma/trunk/website-yui/src/main/java/org/apache/magma/website/yui/
labs/magma/trunk/website-yui/src/main/java/org/apache/magma/website/yui/AddYUIHeadMethods.aj
labs/magma/trunk/website-yui/src/main/resources/
labs/magma/trunk/website-yui/src/test/
labs/magma/trunk/website-yui/src/test/java/
labs/magma/trunk/website-yui/src/test/resources/
Added: labs/magma/trunk/website-yui/pom.xml
URL:
http://svn.apache.org/viewvc/labs/magma/trunk/website-yui/pom.xml?rev=826835&view=auto
==============================================================================
--- labs/magma/trunk/website-yui/pom.xml (added)
+++ labs/magma/trunk/website-yui/pom.xml Mon Oct 19 22:15:13 2009
@@ -0,0 +1,38 @@
+<?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 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">
+ <parent>
+ <artifactId>magma-parent</artifactId>
+ <groupId>org.apache.magma</groupId>
+ <version>2</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.magma</groupId>
+ <artifactId>website-yui</artifactId>
+ <name>Magma YUI support</name>
+ <version>0.0.2-SNAPSHOT</version>
+ <description/>
+ <packaging>magma</packaging>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.magma</groupId>
+ <artifactId>foundation-website</artifactId>
+ <version>0.0.2-SNAPSHOT</version>
+ </dependency>
+ </dependencies>
+</project>
Added:
labs/magma/trunk/website-yui/src/main/java/org/apache/magma/website/yui/AddYUIHeadMethods.aj
URL:
http://svn.apache.org/viewvc/labs/magma/trunk/website-yui/src/main/java/org/apache/magma/website/yui/AddYUIHeadMethods.aj?rev=826835&view=auto
==============================================================================
---
labs/magma/trunk/website-yui/src/main/java/org/apache/magma/website/yui/AddYUIHeadMethods.aj
(added)
+++
labs/magma/trunk/website-yui/src/main/java/org/apache/magma/website/yui/AddYUIHeadMethods.aj
Mon Oct 19 22:15:13 2009
@@ -0,0 +1,33 @@
+/*
+ * 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.
+ */
+package org.apache.magma.website.yui;
+
+import org.apache.magma.website.Head;
+
+public aspect AddYUIHeadMethods {
+
+ private static String YUI_BASE_URL =
"http://yui.yahooapis.com/2.6.0/build/";
+
+ public void Head.addYUIScript(String name) {
+ addExternalScript(YUI_BASE_URL + name);
+ }
+
+ public void Head.addYUICss(String name) {
+ addCss(YUI_BASE_URL + name);
+ }
+
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]