You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2009/11/24 11:57:40 UTC
svn commit: r883651 - /ode/trunk/tasks/headers.rake
Author: vanto
Date: Tue Nov 24 10:57:37 2009
New Revision: 883651
URL: http://svn.apache.org/viewvc?rev=883651&view=rev
Log:
ignore directories with .xml extension
Modified:
ode/trunk/tasks/headers.rake
Modified: ode/trunk/tasks/headers.rake
URL: http://svn.apache.org/viewvc/ode/trunk/tasks/headers.rake?rev=883651&r1=883650&r2=883651&view=diff
==============================================================================
--- ode/trunk/tasks/headers.rake (original)
+++ ode/trunk/tasks/headers.rake Tue Nov 24 10:57:37 2009
@@ -85,7 +85,7 @@
# This also tells us which files to look at.
extensions = licenses.keys.join(",")
count = FileList["**/*{#{extensions}}"].inject(0) do |count, filename|
- if File.readlines(filename)[0..3].join !~ /Licensed to the Apache Software Foundation/
+ if !File.directory?(filename) && File.readlines(filename)[0..3].join !~ /Licensed to the Apache Software Foundation/
when_writing "Missing header in #{filename}" do
# Figure the license from the file, inject it into the file and rewrite it.
license = licenses[filename.pathmap("%x")]