Skip to content
This repository has been archived by the owner on Nov 24, 2020. It is now read-only.

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Apr 22, 2012
1 parent 6a08d70 commit 0a8572e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions lib/buildrizpack/package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,7 @@ class IzPackTask < Buildr::ArchiveTask

attr_accessor :packaging, :properties, :variables, :dynamicvariables, :conditions, :installerrequirements,:resources,
:listeners, :jar, :native
# Adds the filePaths to a given pack.
#
# * May be called several times for the same package
#
# * +packName+ - the name of the destination pack, if it is a Hash, then it must point to a hash of attributes for the pack
# * +filePaths+ - May be a single filename or an array of filenames
# * +description+ - Description of the pack
# * +destination+ - IzPack will copy the files at installation time to this directory/file.
#
def addToPack(packName, filePaths, description=packName, destination='')
end

# The ArchiveTask class delegates this method
# so we can create the archive.
# the file_map is the result of the computations of the include and exclude filters.
Expand Down
2 changes: 1 addition & 1 deletion spec/buildrizpack/package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def writeSimpleInstaller(filename)
@project.package(:izpack).invoke
@instPath = File.join(@project.path_to(:target, :main), "#{@project.name}-#{@project.version}.izpack.jar")
File.exists?(@instPath).should be_true
FileUtils.cp(@instPath, "/home/niklaus/tmp.jar", :verbose => true) if File.directory?('/home/niklaus')
FileUtils.cp(@instPath, "/home/niklaus/tmp.jar", :verbose => true) if File.directory?('/home/niklaus') && File.writable?('/home/niklaus')
end

it "must include at least one file" do
Expand Down

0 comments on commit 0a8572e

Please sign in to comment.