cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r557834 - /incubator/cxf/trunk/bin/pom-version.pl
Date Fri, 20 Jul 2007 01:14:52 GMT
Author: dkulp
Date: Thu Jul 19 18:14:51 2007
New Revision: 557834

URL: http://svn.apache.org/viewvc?view=rev&rev=557834
Log:
Fix to ignore poms in archtypes

Modified:
    incubator/cxf/trunk/bin/pom-version.pl

Modified: incubator/cxf/trunk/bin/pom-version.pl
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/bin/pom-version.pl?view=diff&rev=557834&r1=557833&r2=557834
==============================================================================
--- incubator/cxf/trunk/bin/pom-version.pl (original)
+++ incubator/cxf/trunk/bin/pom-version.pl Thu Jul 19 18:14:51 2007
@@ -62,12 +62,16 @@
 
 sub fixpomfiles {
     return unless (/^pom.xml$/);
-    print "processing $File::Find::name\n";
     my $pom = $_;
+    my $curdir = abs_path(getcwd());
+    return if ($curdir =~ m:/src/main/:);
+    return if ($curdir =~ m:/target/classes/:);
+
+    print "processing $File::Find::name\n";
+
     init_parse_state();
     $parser->parsefile($pom);
     return unless ($top_ver_start_line != 0 || $parent_ver_start_line != 0);
-    my $curdir = abs_path(getcwd());
     my $rel_mode = undef;
     my ($rel_add, $rel_remove) = ('add', 'remove');
     local *POM;



Mime
View raw message