Files with no extension are not included in the resulting archetype.

When an archetype is created from a given project, files with no extension are not included in the resulting
archetype. This commit adds a check whether the extension of the file to include is an empty string. A test-case
is also included. Close ARCHETYPE-499
diff --git a/archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java b/archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
index 7d1a88d..a430d2c 100644
--- a/archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
+++ b/archetype-common/src/main/java/org/apache/maven/archetype/creator/FilesetArchetypeCreator.java
@@ -1784,7 +1784,14 @@
             }
             else
             {
-                includes.add( "**/*." + extension );
+                if ( StringUtils.isEmpty( extension ) )
+                {
+                    includes.add( "**/*" );
+                }
+                else
+                {
+                    includes.add( "**/*." + extension );
+                }
             }
         }
 
diff --git a/archetype-common/src/test/java/org/apache/maven/archetype/creator/DefaultArchetypeCreatorTest.java b/archetype-common/src/test/java/org/apache/maven/archetype/creator/DefaultArchetypeCreatorTest.java
index b8c5409..8e18b68 100644
--- a/archetype-common/src/test/java/org/apache/maven/archetype/creator/DefaultArchetypeCreatorTest.java
+++ b/archetype-common/src/test/java/org/apache/maven/archetype/creator/DefaultArchetypeCreatorTest.java
@@ -168,6 +168,17 @@
         assertExists(template1);
     }
 
+    public void testIncludeFileWithNoExtension()
+                    throws Exception
+    {
+        String project = "include-file-with-no-extension";
+
+        createFilesetArchetype( project );
+
+        File template1 = getTemplateFile( project, "src/main/csharp/filewithnoextension" );
+        assertExists(template1);
+    }
+
     public void testCreateFilesetArchetype1()
         throws Exception
     {
diff --git a/archetype-common/src/test/resources/projects/include-file-with-no-extension/archetype.properties.sample b/archetype-common/src/test/resources/projects/include-file-with-no-extension/archetype.properties.sample
new file mode 100644
index 0000000..e527799
--- /dev/null
+++ b/archetype-common/src/test/resources/projects/include-file-with-no-extension/archetype.properties.sample
@@ -0,0 +1,8 @@
+archetype.groupId=org.codehaus.mojo.archetypes
+archetype.artifactId=maven-archetype-test
+archetype.version=1.0
+archetype.languages=csharp
+groupId=org.apache.maven.archetype.test
+artifactId=test
+version=1.0-SNAPSHOT
+package=archetype
diff --git a/archetype-common/src/test/resources/projects/include-file-with-no-extension/pom.xml.sample b/archetype-common/src/test/resources/projects/include-file-with-no-extension/pom.xml.sample
new file mode 100644
index 0000000..74e892e
--- /dev/null
+++ b/archetype-common/src/test/resources/projects/include-file-with-no-extension/pom.xml.sample
@@ -0,0 +1,34 @@
+<?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/xsd/maven-4.0.0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <groupId>org.apache.maven.archetype.test</groupId>
+    <artifactId>include-file-with-no-extension</artifactId>
+    <version>1.0-SNAPSHOT</version>
+
+    <name>Maven archetype Test Include A File With No Extension</name>
+    <packaging>pom</packaging>
+
+</project>
diff --git a/archetype-common/src/test/resources/projects/include-file-with-no-extension/src/main/csharp/filewithnoextension b/archetype-common/src/test/resources/projects/include-file-with-no-extension/src/main/csharp/filewithnoextension
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/archetype-common/src/test/resources/projects/include-file-with-no-extension/src/main/csharp/filewithnoextension