incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jus...@apache.org
Subject svn commit: r1402343 - in /sling/trunk: ./ maven/archetypes/taglib/ maven/archetypes/taglib/src/ maven/archetypes/taglib/src/main/ maven/archetypes/taglib/src/main/resources/ maven/archetypes/taglib/src/main/resources/META-INF/ maven/archetypes/taglib/...
Date Thu, 25 Oct 2012 21:54:49 GMT
Author: justin
Date: Thu Oct 25 21:54:48 2012
New Revision: 1402343

URL: http://svn.apache.org/viewvc?rev=1402343&view=rev
Log:
SLING-2632 - creating archetype for taglib

Added:
    sling/trunk/maven/archetypes/taglib/
    sling/trunk/maven/archetypes/taglib/README.txt
    sling/trunk/maven/archetypes/taglib/pom.xml
    sling/trunk/maven/archetypes/taglib/src/
    sling/trunk/maven/archetypes/taglib/src/main/
    sling/trunk/maven/archetypes/taglib/src/main/resources/
    sling/trunk/maven/archetypes/taglib/src/main/resources/META-INF/
    sling/trunk/maven/archetypes/taglib/src/main/resources/META-INF/maven/
    sling/trunk/maven/archetypes/taglib/src/main/resources/META-INF/maven/archetype-metadata.xml
    sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/
    sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/pom.xml
    sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/
    sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/
    sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/java/
    sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/java/Tag.java
    sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/resources/
    sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/resources/taglib.tld
Modified:
    sling/trunk/pom.xml

Added: sling/trunk/maven/archetypes/taglib/README.txt
URL: http://svn.apache.org/viewvc/sling/trunk/maven/archetypes/taglib/README.txt?rev=1402343&view=auto
==============================================================================
--- sling/trunk/maven/archetypes/taglib/README.txt (added)
+++ sling/trunk/maven/archetypes/taglib/README.txt Thu Oct 25 21:54:48 2012
@@ -0,0 +1,27 @@
+Sling Taglib Archetype
+
+Maven archetype for a JSP taglib
+
+Getting Started
+===============
+
+This component uses a Maven 2 (http://maven.apache.org/) build
+environment. It requires a Java 5 JDK (or higher) and Maven (http://maven.apache.org/)
+2.0.7 or later. We recommend to use the latest Maven version.
+
+If you have Maven 2 installed, you can install the jar into your local Maven repository
+using the following command:
+
+    mvn install
+
+See the Maven 2 documentation for other build features.
+
+The latest source code for this component is available in the
+Subversion (http://subversion.tigris.org/) source repository of
+the Apache Software Foundation. If you have Subversion installed,
+you can checkout the latest source using the following command:
+
+    svn checkout http://svn.apache.org/repos/asf/sling/trunk/maven/archetypes/taglib
+
+See the Subversion documentation for other source control features.
+

Added: sling/trunk/maven/archetypes/taglib/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/maven/archetypes/taglib/pom.xml?rev=1402343&view=auto
==============================================================================
--- sling/trunk/maven/archetypes/taglib/pom.xml (added)
+++ sling/trunk/maven/archetypes/taglib/pom.xml Thu Oct 25 21:54:48 2012
@@ -0,0 +1,106 @@
+<!--
+  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">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.sling</groupId>
+        <artifactId>sling</artifactId>
+        <version>13</version>
+        <relativePath>../../../parent/pom.xml</relativePath>
+    </parent>
+    <groupId>org.apache.sling</groupId>
+    <artifactId>sling-taglib-archetype</artifactId>
+    <packaging>maven-archetype</packaging>
+    <version>1.0.0-SNAPSHOT</version>
+
+    <name>Sling Taglib Archetype</name>
+    <description>Maven archetype for JSP Taglib</description>
+
+    <scm>
+        <connection>scm:svn:http://svn.apache.org/repos/asf/sling/trunk/maven/archetypes/taglib</connection>
+        <developerConnection>scm:svn:https://svn.apache.org/repos/asf/sling/trunk/maven/archetypes/taglib</developerConnection>
+        <url>http://svn.apache.org/viewvc/sling/trunk/maven/archetypes/taglib</url>
+    </scm>
+    <build>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <excludes>
+                    <exclude>**/.settings</exclude>
+                    <exclude>**/.settings/**</exclude>
+                    <exclude>**/.project</exclude>
+                    <exclude>**/.classpath</exclude>
+                    <exclude>**/target/**</exclude>
+                    <exclude>**/*.iml</exclude>
+                </excludes>
+            </testResource>
+        </testResources>
+        <extensions>
+            <extension>
+                <groupId>org.apache.maven.archetype</groupId>
+                <artifactId>archetype-packaging</artifactId>
+                <version>2.2</version>
+            </extension>
+        </extensions>
+        <plugins>
+            <plugin>
+                <artifactId>maven-archetype-plugin</artifactId>
+                <version>2.2</version>
+                <extensions>true</extensions>
+            </plugin>
+            <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>fix-crlfs</id>
+                        <phase>process-test-resources</phase>
+                            <configuration>
+                                <target>
+                                    <fixcrlf srcdir="${project.build.testOutputDirectory}"
/>
+                                </target>
+                            </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <reporting>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-plugin-plugin</artifactId>
+                <version>2.5.1</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-javadoc-plugin</artifactId>
+                <configuration>
+                    <!-- No javadocs -->
+                    <excludePackageNames>
+                        org.apache.sling
+                    </excludePackageNames>
+                </configuration>
+            </plugin>
+        </plugins>
+    </reporting>
+</project>

Added: sling/trunk/maven/archetypes/taglib/src/main/resources/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/sling/trunk/maven/archetypes/taglib/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1402343&view=auto
==============================================================================
--- sling/trunk/maven/archetypes/taglib/src/main/resources/META-INF/maven/archetype-metadata.xml
(added)
+++ sling/trunk/maven/archetypes/taglib/src/main/resources/META-INF/maven/archetype-metadata.xml
Thu Oct 25 21:54:48 2012
@@ -0,0 +1,39 @@
+<!--
+  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.
+-->
+<archetype-descriptor name="sling-taglib" partial="true">
+    <requiredProperties>
+        <requiredProperty key="tagUri"/>
+        <requiredProperty key="tagPrefix"/>
+        <requiredProperty key="tagName"/>
+    </requiredProperties>
+	<fileSets>
+		<fileSet filtered="true" packaged="true" encoding="UTF-8">
+			<directory>src/main/java</directory>
+			<includes>
+				<include>**/*.java</include>
+			</includes>
+		</fileSet>
+		<fileSet filtered="true" packaged="false" encoding="UTF-8">
+			<directory>src/main/resources</directory>
+			<includes>
+				<include>**/taglib.tld</include>
+			</includes>
+		</fileSet>
+	</fileSets>
+</archetype-descriptor>
\ No newline at end of file

Added: sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/pom.xml?rev=1402343&view=auto
==============================================================================
--- sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/pom.xml (added)
+++ sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/pom.xml Thu
Oct 25 21:54:48 2012
@@ -0,0 +1,21 @@
+<?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>
+</project>
\ No newline at end of file

Added: sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/java/Tag.java
URL: http://svn.apache.org/viewvc/sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/java/Tag.java?rev=1402343&view=auto
==============================================================================
--- sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/java/Tag.java
(added)
+++ sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/java/Tag.java
Thu Oct 25 21:54:48 2012
@@ -0,0 +1,45 @@
+/*
+ * 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 ${package};
+
+import javax.servlet.jsp.PageContext;
+import javax.servlet.jsp.tagext.TagSupport;
+
+public class Tag extends TagSupport {
+    
+    /**
+     * @TODO - document
+     */
+    @Override
+    public int doEndTag() {
+        //TODO - add implementation
+
+        return EVAL_PAGE;
+    }
+
+    @Override
+    public void setPageContext(final PageContext pageContext) {
+        super.setPageContext(pageContext);
+        clear();
+    }
+
+    private void clear() {
+        // TODO - clear any instance variables
+    }
+}

Added: sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/resources/taglib.tld
URL: http://svn.apache.org/viewvc/sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/resources/taglib.tld?rev=1402343&view=auto
==============================================================================
--- sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/resources/taglib.tld
(added)
+++ sling/trunk/maven/archetypes/taglib/src/main/resources/archetype-resources/src/main/resources/taglib.tld
Thu Oct 25 21:54:48 2012
@@ -0,0 +1,30 @@
+<?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.
+-->
+<taglib xmlns="http://java.sun.com/xml/ns/j2ee" version="2.0">
+    <short-name>${tagPrefix}</short-name>
+    <uri>${tagUri}</uri>
+    <tag>
+        <name>${tagName}</name>
+        <tag-class>
+            ${package}.Tag
+        </tag-class>
+        <body-content>empty</body-content>
+    </tag>
+</taglib>
\ No newline at end of file

Modified: sling/trunk/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/pom.xml?rev=1402343&r1=1402342&r2=1402343&view=diff
==============================================================================
--- sling/trunk/pom.xml (original)
+++ sling/trunk/pom.xml Thu Oct 25 21:54:48 2012
@@ -98,6 +98,7 @@
         <module>maven/archetypes/servlet</module>
         <module>maven/archetypes/bundle</module>
         <module>maven/archetypes/bundle-for-jcrinstall</module>
+        <module>maven/archetypes/taglib</module>
 
         <!-- The Sling API -->
         <module>bundles/api</module>



Mime
View raw message