You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2012/12/11 11:06:10 UTC

svn commit: r1420062 - in /myfaces/myfaces-build-tools/trunk/maven2-archetypes: ./ myfaces-archetype-extscript-jsf20/ myfaces-archetype-extscript-jsf20/src/ myfaces-archetype-extscript-jsf20/src/main/ myfaces-archetype-extscript-jsf20/src/main/resource...

Author: werpu
Date: Tue Dec 11 10:06:07 2012
New Revision: 1420062

URL: http://svn.apache.org/viewvc?rev=1420062&view=rev
Log:
 EXTSCRIPT-187

Added:
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/   (with props)
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/pom.xml
      - copied, changed from r1414161, myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-codi-jsf20/pom.xml
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/META-INF/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/META-INF/LICENSE.txt
      - copied unchanged from r1414161, myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-codi-jsf20/src/main/resources/META-INF/LICENSE.txt
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/META-INF/NOTICE.txt
      - copied unchanged from r1414161, myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-codi-jsf20/src/main/resources/META-INF/NOTICE.txt
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/META-INF/maven/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/META-INF/maven/archetype-metadata.xml
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/pom.xml
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/java/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/META-INF/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/groovy/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/groovy/demo/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/groovy/demo/GroovyHello.groovy
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/java/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/java/demo/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/java/demo/JavaHello.java
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/scala/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/scala/demo/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/scala/demo/ScalaHello.scala
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/helloWorld.xhtml
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/index.jsp
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/site/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/site/apt/
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/site/apt/index.apt
Modified:
    myfaces/myfaces-build-tools/trunk/maven2-archetypes/pom.xml

Propchange: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue Dec 11 10:06:07 2012
@@ -0,0 +1 @@
+*.iml

Copied: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/pom.xml (from r1414161, myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-codi-jsf20/pom.xml)
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/pom.xml?p2=myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/pom.xml&p1=myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-codi-jsf20/pom.xml&r1=1414161&r2=1420062&rev=1420062&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-codi-jsf20/pom.xml (original)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/pom.xml Tue Dec 11 10:06:07 2012
@@ -27,9 +27,9 @@
 
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.apache.myfaces.buildtools</groupId>
-    <artifactId>myfaces-archetype-codi-jsf20</artifactId>
+    <artifactId>myfaces-archetype-extscript-jsf20</artifactId>
     <packaging>jar</packaging>
-    <name>MyFaces CODI Archetype for JSF 2.0</name>
-    <description>Archetype to create a new JSF 2.0 webapp based on MyFaces CODI</description>
+    <name>MyFaces Extscript Archetype for JSF 2.0</name>
+    <description>Archetype to create a new JSF 2.0 webapp based on MyFaces Extension Scripting</description>
 
 </project>

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/META-INF/maven/archetype-metadata.xml (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/META-INF/maven/archetype-metadata.xml Tue Dec 11 10:06:07 2012
@@ -0,0 +1,48 @@
+<?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.
+-->
+<archetype-descriptor xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
+                      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+                      xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
+
+                      name="myfaces-archetype-extscript-jsf20" partial="false">
+
+  <requiredProperties/>
+
+  <fileSets>
+      <fileSet filtered="true" packaged="true">
+          <directory>src/main/java/</directory>
+      </fileSet>
+      <fileSet filtered="false" packaged="false">
+          <directory>src/main/webapp/</directory>
+          <excludes>
+              <exclude>WEB-INF/web.xml</exclude>
+          </excludes>
+      </fileSet>
+      <fileSet filtered="true" packaged="false">
+          <directory>src/main/webapp/</directory>
+          <includes>
+              <include>WEB-INF/web.xml</include>
+          </includes>
+      </fileSet>
+  </fileSets>
+
+  <modules/>
+
+</archetype-descriptor>

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/pom.xml?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/pom.xml (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/pom.xml Tue Dec 11 10:06:07 2012
@@ -0,0 +1,121 @@
+#set( $symbol_pound = '#' )
+#set( $symbol_dollar = '$' )
+#set( $symbol_escape = '\' )
+<?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">
+
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>${groupId}</groupId>
+    <artifactId>${artifactId}</artifactId>
+    <packaging>war</packaging>
+    <version>${version}</version>
+    <name>${artifactId}</name>
+    <url>http://www.apache.org</url>
+
+    <properties>
+        <jsf-myfaces.version>2.1.7</jsf-myfaces.version>
+        <jsf-mojarra.version>2.1.7</jsf-mojarra.version>
+        <jetty.maven.plugin.version>8.1.3.v20120416</jetty.maven.plugin.version>
+        <groovy.version>1.7.2</groovy.version>
+        <maven-scala-plugin.scalaVersion>2.15.2</maven-scala-plugin.scalaVersion>
+        <scala-library.version>2.10.0-M2</scala-library.version>
+        <extscript-version>1.0.5</extscript-version>
+    </properties>
+
+
+    <dependencies>
+        <!--
+             optional Groovy include,
+             if we leave it out, Groovy support is disabled
+             and only java support will work
+         -->
+        <dependency>
+            <groupId>org.codehaus.groovy</groupId>
+            <artifactId>groovy-all</artifactId>
+            <version>${symbol_dollar}{groovy.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.scala-lang</groupId>
+            <artifactId>scala-library</artifactId>
+            <version>${symbol_dollar}{scala-library.version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.scala-lang</groupId>
+            <artifactId>scala-compiler</artifactId>
+            <version>${symbol_dollar}{scala-library.version}</version>
+        </dependency>
+        <!--
+             Note this is the only dependency we need
+             for ext-scripting, the include is a so called
+             meta bundle, which includes the entire
+             ext-scripting core+java6 support + myfaces 2 support
+         -->
+        <dependency>
+            <groupId>org.apache.myfaces.extensions.scripting</groupId>
+            <artifactId>extscript-myfaces20-bundle</artifactId>
+            <version>${symbol_dollar}{extscript-version}</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.myfaces.core</groupId>
+            <artifactId>myfaces-api</artifactId>
+            <version>${symbol_dollar}{jsf-myfaces.version}</version>
+            <scope>compile</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.myfaces.core</groupId>
+            <artifactId>myfaces-impl</artifactId>
+            <version>${symbol_dollar}{jsf-myfaces.version}</version>
+            <scope>compile</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <finalName>${artifactId}</finalName>
+        <plugins>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <configuration>
+                    <source>1.6</source>
+                    <target>1.6</target>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.mortbay.jetty</groupId>
+                <artifactId>jetty-maven-plugin</artifactId>
+                <version>8.1.2.v20120308</version>
+                <configuration>
+                    <connectors>
+                        <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
+                            <port>9090</port>
+                            <maxIdleTime>60000</maxIdleTime>
+                        </connector>
+                    </connectors>
+                    <scanIntervalSeconds>1</scanIntervalSeconds>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.tomcat.maven</groupId>
+                <artifactId>tomcat7-maven-plugin</artifactId>
+                <version>2.0-beta-1</version>
+            </plugin>
+        </plugins>
+    </build>
+</project>

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/META-INF/context.xml Tue Dec 11 10:06:07 2012
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Context>
+</Context>
\ No newline at end of file

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/faces-config.xml Tue Dec 11 10:06:07 2012
@@ -0,0 +1,25 @@
+<?xml version="1.0"?>
+<!--
+ * 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.
+-->
+<faces-config xmlns="http://java.sun.com/xml/ns/javaee"
+              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+              xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd"
+              version="2.0">
+
+</faces-config>
\ No newline at end of file

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/groovy/demo/GroovyHello.groovy
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/groovy/demo/GroovyHello.groovy?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/groovy/demo/GroovyHello.groovy (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/groovy/demo/GroovyHello.groovy Tue Dec 11 10:06:07 2012
@@ -0,0 +1,31 @@
+/*
+ * 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 demo
+
+import javax.faces.bean.ManagedBean
+
+/**
+ *
+ * @author Werner Punz (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ */
+@ManagedBean
+public class GroovyHello {
+  def helloWorld = "hello world from a dynamic groovy bean"
+}

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/java/demo/JavaHello.java
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/java/demo/JavaHello.java?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/java/demo/JavaHello.java (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/java/demo/JavaHello.java Tue Dec 11 10:06:07 2012
@@ -0,0 +1,42 @@
+/*
+ * 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 demo;
+
+import javax.faces.bean.ManagedBean;
+
+/**
+ * @author Werner Punz (latest modification by $Author$)
+ * @version $Revision$ $Date$
+ *
+ * Dynamic java hello world bean
+ */
+
+@ManagedBean
+public class JavaHello {
+    String helloWorld = "Hello from a dynamic java bean";
+
+    public String getHelloWorld() {
+        return helloWorld;
+    }
+
+    public void setHelloWorld(String helloWorld) {
+        this.helloWorld = helloWorld;
+    }
+}

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/scala/demo/ScalaHello.scala
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/scala/demo/ScalaHello.scala?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/scala/demo/ScalaHello.scala (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/scala/demo/ScalaHello.scala Tue Dec 11 10:06:07 2012
@@ -0,0 +1,11 @@
+package demo
+
+import javax.faces.bean.{ApplicationScoped, ManagedBean}
+import scala.reflect.BeanProperty
+
+@ManagedBean
+@ApplicationScoped
+class ScalaHello {
+  @BeanProperty
+  var helloWorld = "Hello World from a dynamic Scala class"
+}
\ No newline at end of file

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/WEB-INF/web.xml Tue Dec 11 10:06:07 2012
@@ -0,0 +1,136 @@
+<?xml version="1.0"?>
+
+<!--
+ * 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.
+-->
+<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+
+
+    <description>Webproject.xml</description>
+
+
+    <!--
+    Note this entry is vital it plugs the ext-scripting system into
+    a myfaces extension point
+    -->
+    <context-param>
+        <description>
+            Initializes the plugins for our groovy handlers
+        </description>
+        <param-name>org.apache.myfaces.FACES_INIT_PLUGINS</param-name>
+        <param-value>org.apache.myfaces.extensions.scripting.jsf.startup.StartupServletContextPluginChainLoader
+        </param-value>
+    </context-param>
+
+    <!--
+    <context-param>
+        <description>Additional comma separated loader paths to allow direct editing on the source
+        directories of the deployment dir.
+        </description>
+        <param-name>org.apache.myfaces.extensions.scripting.ruby.LOADER_PATHS</param-name>
+        <param-value>
+            /whatever/extscript-examples/myfaces20-example/src/main/webapp/WEB-INF/ruby
+        </param-value>
+    </context-param>
+
+    <context-param>
+        <description>resource paths for our custom JSF2 resource resolver</description>
+        <param-name>org.apache.myfaces.extensions.scripting.resources.LOADER_PATHS</param-name>
+        <param-value>
+            /whatever/myfaces20-extscript-helloworld/src/main/webapp/
+        </param-value>
+    </context-param>
+
+    <context-param>
+        <description>a redirecting Facelet resource resolver which allows to pick up templates and resources from our
+            source dir
+        </description>
+        <param-name>facelets.RESOURCE_RESOLVER</param-name>
+        <param-value>org.apache.myfaces.extensions.scripting.jsf.facelet.ReroutingResourceResolver</param-value>
+    </context-param>
+
+    <context-param>
+        <description>Some containers do not expand their war/ear files and do not return a proper classpath for the
+        compilers.
+        For those you can set an additional classpath as comma separated list of paths so that the compiler can pick
+        up dependencies from other directories. Wildcarding regarding jar and zip files is allowed.
+        </description>
+        <param-name>org.apache.myfaces.extensions.scripting.ADDITIONAL_CLASSPATH</param-name>
+        <param-value>/whatever/myfaces20-extscript-helloworld/target/myfaces20-extscript-helloworld-1.0.4-SNAPSHOT/WEB-INF/lib/*.jar,
+        /whatever/myfaces20-extscript-helloworld/target/myfaces20-extscript-helloworld-1.0.4-SNAPSHOT/WEB-INF/classes</param-value>
+    </context-param>
+
+    -->
+    <!--
+    <context-param>
+        <description>a comma separated whitelist of root packages which are compiled those and nothing else
+            will be compiled during all compile stages, all other files stay permanently as they are
+        </description>
+        <param-name>org.apache.myfaces.extensions.scripting.PGK_WHITELIST</param-name>
+        <param-value>org.apache.myfaces.groovyloader.blog</param-value>
+    </context-param>
+    -->
+
+    <listener>
+        <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
+    </listener>
+
+
+    <context-param>
+        <param-name>javax.faces.PROJECT_STAGE</param-name>
+        <param-value>Development</param-value>
+    </context-param>
+
+
+    <context-param>
+        <description>State saving method: "client" or "server" (= default)
+            See JSF Specification 2.5.3
+        </description>
+        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
+        <param-value>server</param-value>
+    </context-param>
+
+
+    <!-- Faces Servlet -->
+    <servlet>
+        <servlet-name>Faces Servlet</servlet-name>
+        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+
+    <!-- Faces Servlet Mapping -->
+    <servlet-mapping>
+        <servlet-name>Faces Servlet</servlet-name>
+        <url-pattern>*.jsf</url-pattern>
+    </servlet-mapping>
+
+    <servlet-mapping>
+        <servlet-name>Faces Servlet</servlet-name>
+        <url-pattern>/faces/*</url-pattern>
+    </servlet-mapping>
+
+
+    <!-- Welcome files -->
+    <welcome-file-list>
+        <welcome-file>index.jsp</welcome-file>
+        <welcome-file>index.html</welcome-file>
+    </welcome-file-list>
+
+</web-app>

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/helloWorld.xhtml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/helloWorld.xhtml?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/helloWorld.xhtml (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/helloWorld.xhtml Tue Dec 11 10:06:07 2012
@@ -0,0 +1,34 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<!--
+ * 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.
+-->
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:h="http://java.sun.com/jsf/html"
+        >
+<h:head>
+    <title>Hello World</title>
+</h:head>
+<h:body>
+    <h:outputFormat value="hello world: #{javaHello.helloWorld}"/>
+    <br/>
+    <h:outputFormat value="hello world: #{groovyHello.helloWorld}"/>
+    <br/>
+    <h:outputFormat value="hello world: #{scalaHello.helloWorld}"/>
+</h:body>
+</html>

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/index.jsp
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/index.jsp?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/index.jsp (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/main/resources/archetype-resources/src/main/webapp/index.jsp Tue Dec 11 10:06:07 2012
@@ -0,0 +1,22 @@
+<%@ page session="false" %>
+<!--
+ * 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.
+-->
+<%
+    response.sendRedirect("helloWorld.jsf");
+%>
\ No newline at end of file

Added: myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/site/apt/index.apt
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/site/apt/index.apt?rev=1420062&view=auto
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/site/apt/index.apt (added)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/myfaces-archetype-extscript-jsf20/src/site/apt/index.apt Tue Dec 11 10:06:07 2012
@@ -0,0 +1,18 @@
+ ------
+ MyFaces Extscript JSF 2.0 Archetype
+ ------
+
+Overview
+
+  This project defines a Maven archetype. Running the archetype plugin with this archetype will
+  create a directory tree containing the files needed to quickly get started on a new JSF 2.0
+  project using MyFaces Extension Scripting.
+
+Usage
+
+  Use the following maven command and then select myfaces-archetype-extscript-jsf20 from the options.
+
+
++------------------------------------------------------------------+
+mvn archetype:generate -DarchetypeCatalog=http://myfaces.apache.org
++------------------------------------------------------------------+

Modified: myfaces/myfaces-build-tools/trunk/maven2-archetypes/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-archetypes/pom.xml?rev=1420062&r1=1420061&r2=1420062&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-archetypes/pom.xml (original)
+++ myfaces/myfaces-build-tools/trunk/maven2-archetypes/pom.xml Tue Dec 11 10:06:07 2012
@@ -118,6 +118,7 @@
     <module>myfaces-archetype-codi-jsf12</module>
     <module>myfaces-archetype-codi-jsf20</module>
     <module>myfaces-archetype-core-integration-test</module>
+    <module>myfaces-archetype-extscript-jsf20</module>
   </modules>
 
   <distributionManagement>