assets/rakelib/ruboto.rake in ruboto-0.12.0.rc.0 vs assets/rakelib/ruboto.rake in ruboto-0.12.0
- old
+ new
@@ -46,34 +46,28 @@
MINIMUM_DX_HEAP_SIZE = 2048
if new_dx_content =~ xmx_pattern &&
($1.to_i * 1024 ** {'M' => 2, 'G' => 3, 'T' => 4}[$2.upcase]) < MINIMUM_DX_HEAP_SIZE*1024**2
puts "Increasing max heap space from #$1#$2 to #{MINIMUM_DX_HEAP_SIZE}M in #{dx_filename}"
new_dx_content.sub!(xmx_pattern, %Q{defaultMx="-Xmx#{MINIMUM_DX_HEAP_SIZE}M"})
- File.open(dx_filename, 'w') { |f| f << new_dx_content } rescue puts "\n!!! Unable to increase dx heap size !!!\n\n"
- puts new_dx_content.lines.grep(xmx_pattern)
-end
-def manifest;
- @manifest ||= REXML::Document.new(File.read(MANIFEST_FILE))
-end
+ # FIXME(uwe): For travis debugging Remove when travis is stable.
+ new_dx_content.sub!(/^exec/, "free\necho Virtual:\nps -e -ovsize=,args= | sort -b -k1,1n | tail -n10\necho RSS:\nps -e -orss=,args= | sort -b -k1,1n | tail -n10\necho $javaOpts\necho $@\nexec") if RbConfig::CONFIG['host_os'] =~ /linux/
+ # EMXIF
-def package;
- manifest.root.attribute('package')
-end
+ File.open(dx_filename, 'w') { |f| f << new_dx_content } rescue puts "\n!!! Unable to increase dx heap size !!!\n\n"
-def build_project_name;
- @build_project_name ||= REXML::Document.new(File.read('build.xml')).elements['project'].attribute(:name).value
+ # FIXME(uwe): For travis debugging Remove when travis is stable.
+ puts new_dx_content.lines.grep(xmx_pattern)
+ # EMXIF
end
-def scripts_path;
- @sdcard_path ||= "/mnt/sdcard/Android/data/#{package}/files/scripts"
-end
+def manifest; @manifest ||= REXML::Document.new(File.read(MANIFEST_FILE)) end
+def package; manifest.root.attribute('package') end
+def build_project_name; @build_project_name ||= REXML::Document.new(File.read('build.xml')).elements['project'].attribute(:name).value end
+def scripts_path; @sdcard_path ||= "/mnt/sdcard/Android/data/#{package}/files/scripts" end
+def app_files_path; @app_files_path ||= "/data/data/#{package}/files" end
-def app_files_path;
- @app_files_path ||= "/data/data/#{package}/files"
-end
-
PROJECT_DIR = File.expand_path('..', File.dirname(__FILE__))
UPDATE_MARKER_FILE = File.join(PROJECT_DIR, 'bin', 'LAST_UPDATE')
BUNDLE_JAR = File.expand_path 'libs/bundle.jar'
BUNDLE_PATH = File.expand_path 'bin/bundle'
MANIFEST_FILE = File.expand_path 'AndroidManifest.xml'
@@ -571,10 +565,9 @@
puts "Forcing rebuild of #{apk_file}."
end
if release
sh "#{ANT_CMD} release"
else
- p RbConfig::CONFIG['host_os']
sh 'free' if RbConfig::CONFIG['host_os'] =~ /linux/
sh "#{ANT_CMD} debug"
end
true
end