public static void copyProperties()

in src/main/java/org/apache/maven/artifact/ant/util/AntUtil.java [52:70]


    public static void copyProperties( Hashtable<String,String> props, Project project )
    {
        for ( Map.Entry<String, String> entry : props.entrySet() )
        {
            String key = entry.getKey();
            if ( "basedir".equals( key ) || "ant.file".equals( key ) )
            {
                // basedir and ant.file get special treatment in execute()
                continue;
            }

            // don't re-set user properties, avoid the warning message
            if ( project.getProperty( key ) == null )
            {
                // no user property
                project.setNewProperty( key, entry.getValue() );
            }
        }
    }