Skip to content

Commit

Permalink
rebuild classpath when Gemfile.lock is missing and Jarfile.lock exists
Browse files Browse the repository at this point in the history
  • Loading branch information
mkristian committed Jan 25, 2013
1 parent c64981e commit 0fbb3a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jbundler/classpath_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def exists?
end

def needs_update?(jarfile, gemfile_lock)
(jarfile.exists? || gemfile_lock.exists?) && (!exists? || !jarfile.exists_lock? || (jarfile.exists? && (jarfile.mtime > mtime)) || (jarfile.exists_lock? && (jarfile.mtime_lock > mtime)) || (gemfile_lock.exists? && (gemfile_lock.mtime > mtime)))
(jarfile.exists? || gemfile_lock.exists? || jarfile.exists_lock?) && (!exists? || !jarfile.exists_lock? || (jarfile.exists? && (jarfile.mtime > mtime)) || (jarfile.exists_lock? && (jarfile.mtime_lock > mtime)) || (gemfile_lock.exists? && (gemfile_lock.mtime > mtime)))
end

def generate(classpath_array)
Expand Down

0 comments on commit 0fbb3a1

Please sign in to comment.