Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37911670
en ru br
ALT Linux repos
S:2.2.1-alt6_66jpp11
5.0: 2.0.7-alt2_8jpp5
4.1: 2.0.4-alt1_10jpp1.7
4.0: 2.0.4-alt1_10jpp1.7.M40

Group :: Development/Java
RPM: maven2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: maven2-plugin-assembly-PropertyUtils.patch
Download


--- maven2-plugins/maven-assembly-plugin/src/main/java/org/apache/maven/plugin/assembly/utils/PropertyUtils.java.sav	2010-11-28 16:02:34.000000000 +0100
+++ maven2-plugins/maven-assembly-plugin/src/main/java/org/apache/maven/plugin/assembly/utils/PropertyUtils.java	2010-11-28 16:06:17.000000000 +0100
@@ -83,7 +83,12 @@
         for ( Enumeration n = props.propertyNames(); n.hasMoreElements(); )
         {
             String key = (String) n.nextElement();
-            String value = interpolator.interpolate( props.getProperty( key ), "__properties" );
+            String value = null;
+            try {
+                value = interpolator.interpolate( props.getProperty( key ), "__properties" );
+            } catch(Exception e) {
+                throw new IOException( "cannot interpolate property: " + e.getMessage(), e );
+            }
             
             props.setProperty( key, value );
         }
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin