File: 01-plexus-compatibility.patch

package info (click to toggle)
maven-antrun-extended-plugin 1.43-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 412 kB
  • sloc: java: 2,373; xml: 642; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 1,053 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/src/main/java/org/jvnet/maven/plugin/antrun/components/AntTargetConverter.java
+++ b/src/main/java/org/jvnet/maven/plugin/antrun/components/AntTargetConverter.java
@@ -148,7 +148,7 @@
                     wrapper.addText( childConfiguration.getValue() );
                 }
             }
-            catch ( PlexusConfigurationException e )
+            catch ( Exception e )
             {
                 throw new ComponentConfigurationException( "Error reading text value from element '"
                     + childConfiguration.getName() + "'", e );
@@ -163,7 +163,7 @@
                     String v = childConfiguration.getAttribute( attrNames[a] );
                     wrapper.setAttribute( attrNames[a], v );
                 }
-                catch ( PlexusConfigurationException e )
+                catch ( Exception e )
                 {
                     throw new ComponentConfigurationException( "Error getting attribute '" + attrNames[a]
                         + "' of tag '" + childConfiguration.getName() + "'", e );