Commits

musachy  committed 9d3e2f1

Don't throw exception from ResourceFinder.find(), and update pom

git-svn-id: http://svn.opensymphony.com/svn/xwork/trunk@1961e221344d-f017-0410-9bd5-d282ab1896d7

  • Participants
  • Parent commits 2a68577

Comments (0)

Files changed (2)

                 </configuration>
             </plugin>
             <plugin>
-                <groupId>org.apache.felix</groupId>
-                <artifactId>maven-bundle-plugin</artifactId>
-                <executions>
-                    <execution>
-                        <id>bundle-manifest</id>
-                        <phase>process-classes</phase>
-                        <goals>
-                            <goal>manifest</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
-
-            <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-shade-plugin</artifactId>
                 <version>1.2</version>
                                     <artifact>commons-lang:commons-lang</artifact>
                                     <includes>
                                         <include>org/apache/commons/lang/StringUtils.class</include>
+                                        <include>org/apache/commons/lang/ObjectUtils*.class</include>
                                         <include>org/apache/commons/lang/StringEscapeUtils.class</include>
                                         <include>org/apache/commons/lang/exception/NestableRuntimeException.class</include>
                                         <include>org/apache/commons/lang/exception/Nestable.class</include>
                     </execution>
                 </executions>
             </plugin>
+            <plugin>
+                <groupId>org.apache.felix</groupId>
+                <artifactId>maven-bundle-plugin</artifactId>
+                <configuration>
+                    <instructions>
+                        <Export-Package>org.apache.commons.lang.xwork.*,com.opensymphony.xwork2.*</Export-Package>
+                    </instructions>
+                </configuration>
+                <executions>
+                    <execution>
+                        <id>bundle-manifest</id>
+                        <phase>package</phase>
+                        <goals>
+                            <goal>manifest</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
         <defaultGoal>install</defaultGoal>
     </build>

File src/java/com/opensymphony/xwork2/util/finder/ResourceFinder.java

     public URL find(String uri) throws IOException {
         String fullUri = path + uri;
 
-        URL resource = getResource(fullUri);
-        if (resource == null) {
-            throw new IOException("Could not find resource '" + fullUri + "'");
-        }
-
-        return resource;
+        return getResource(fullUri);
     }
 
     public List<URL> findAll(String uri) throws IOException {