Skip to content

Commit

Permalink
Updated tools with build logs to use common configured Logs directory. (
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashton-W authored and Andrea Falcone committed Aug 26, 2016
1 parent 6999ef4 commit 43f9d38
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fastlane/lib/fastlane/actions/xcodebuild.rb
Expand Up @@ -146,7 +146,7 @@ def self.run(params)
end

# By default we put xcodebuild.log in the Logs folder
buildlog_path ||= File.expand_path("~/Library/Logs/fastlane/xcbuild/#{Time.now.strftime('%F')}/#{Process.pid}")
buildlog_path ||= File.expand_path("#{FastlaneCore::Helper.buildlog_path}/fastlane/xcbuild/#{Time.now.strftime('%F')}/#{Process.pid}")

# Joins args into space delimited string
xcodebuild_args = xcodebuild_args.join(" ")
Expand Down
2 changes: 1 addition & 1 deletion gym/lib/gym/options.rb
Expand Up @@ -152,7 +152,7 @@ def self.plain_options
short_option: "-l",
env_name: "GYM_BUILDLOG_PATH",
description: "The directory where to store the build log",
default_value: "~/Library/Logs/gym"),
default_value: "#{FastlaneCore::Helper.buildlog_path}/gym"),
FastlaneCore::ConfigItem.new(key: :sdk,
short_option: "-k",
env_name: "GYM_SDK",
Expand Down
2 changes: 1 addition & 1 deletion scan/lib/scan/options.rb
Expand Up @@ -96,7 +96,7 @@ def self.available_options
short_option: "-l",
env_name: "SCAN_BUILDLOG_PATH",
description: "The directory were to store the raw log",
default_value: "~/Library/Logs/scan"),
default_value: "#{FastlaneCore::Helper.buildlog_path}/scan"),
FastlaneCore::ConfigItem.new(key: :formatter,
short_option: "-n",
env_name: "SCAN_FORMATTER",
Expand Down
2 changes: 1 addition & 1 deletion snapshot/lib/snapshot/options.rb
Expand Up @@ -111,7 +111,7 @@ def self.available_options
short_option: "-l",
env_name: "SNAPSHOT_BUILDLOG_PATH",
description: "The directory where to store the build log",
default_value: "~/Library/Logs/snapshot"),
default_value: "#{FastlaneCore::Helper.buildlog_path}/snapshot"),
FastlaneCore::ConfigItem.new(key: :clean,
short_option: "-c",
env_name: "SNAPSHOT_CLEAN",
Expand Down

0 comments on commit 43f9d38

Please sign in to comment.