Skip to content

Commit

Permalink
do not copy .pom.xml if it does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Jan 23, 2013
1 parent fecf71d commit 3ed768d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Mavenfile
Expand Up @@ -36,9 +36,11 @@ end

execute_in_phase( :initialize ) do
pom = File.read( 'pom.xml' )
dot_pom = File.read( '.pom.xml' )
if pom != dot_pom
File.open( 'pom.xml', 'w' ) { |f| f.puts dot_pom }
if File.exists? '.pom.xml'
dot_pom = File.read( '.pom.xml' )
if pom != dot_pom
File.open( 'pom.xml', 'w' ) { |f| f.puts dot_pom }
end
end
end

Expand Down

0 comments on commit 3ed768d

Please sign in to comment.