lib/jbundler/classpath_file.rb in jbundler-0.8.0 vs lib/jbundler/classpath_file.rb in jbundler-0.9.0
- old
+ new
@@ -97,10 +97,10 @@
end
def dump_jar( file, path, prefix, local_repo )
return if path =~ /pom$/
if local_repo
- path.sub!( /#{local_repo}/, '' )
+ path = path.sub( /#{local_repo}/, '' )
unless File.exists?( path )
file.puts "JBUNDLER_#{prefix}CLASSPATH << (JBUNDLER_LOCAL_REPO + '#{path}')"
path = nil
end
end