Fixed a bug in the bundle plugin that was using a relative directory to
check for the existence of the resource directory, rather than using
the directory of the current pom file.


git-svn-id: https://svn.apache.org/repos/asf/incubator/felix/trunk@485675 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java b/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
index b7f9ec2..4e28260 100644
--- a/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
+++ b/tools/maven2/maven-bundle-plugin/src/main/java/org/apache/felix/tools/maven2/bundleplugin/BundlePlugin.java
@@ -114,8 +114,8 @@
          .getOrganization().getUrl());
      }
    }
-     
-   if (new File("src/main/resources").exists()) {
+
+   if (new File(baseDir, "src/main/resources").exists()) {
      header(properties, Analyzer.INCLUDE_RESOURCE, "src/main/resources/");
    }