lib/flashsdk/generators/templates/rakefile.rb in flashsdk_sqe-0.0.2 vs lib/flashsdk/generators/templates/rakefile.rb in flashsdk_sqe-0.0.3

- old
+ new

@@ -2,11 +2,10 @@ require 'bundler' require 'bundler/setup' require 'rake/clean' require 'flashsdk' -require 'asunit4' ## # Set USE_FCSH to true in order to use FCSH for all compile tasks. # # You can also set this value by calling the :fcsh task @@ -22,48 +21,24 @@ # ENV['FCSH_PKG_NAME'] = 'flex4' # ENV['FCSH_PKG_VERSION'] = '1.0.14.pre' # ENV['FCSH_PORT'] = 12321 ############################## -# Debug - -# Compile the debug swf -mxmlc "<%= bin %>/<%= debug_swf_name %>" do |t| - t.input = "<%= src %>/<%= class_name %>.as" - t.static_link_runtime_shared_libraries = true - t.debug = true -end - -desc "Compile and run the debug swf" -flashplayer :run => "<%= bin %>/<%= debug_swf_name %>" - -############################## # Test -library :asunit4 - # Compile the test swf -mxmlc "<%= bin %>/<%= test_swf_name %>" => :asunit4 do |t| +mxmlc "<%= bin %>/<%= test_swf_name %>" do |t| t.input = "<%= src %>/<%= test_runner_name %>.as" t.static_link_runtime_shared_libraries = true - t.source_path << 'test' + t.source_path << 'test' << 'vendor' << 'lib' << 'assets' + t.library_path << 'swc' + t.show_actionscript_warnings=false + t.show_deprecation_warnings=false t.debug = true end desc "Compile and run the test swf" flashplayer :test => "<%= bin %>/<%= test_swf_name %>" - -############################## -# SWC - -compc "<%= bin %>/<%= class_name %>.swc" do |t| - t.input_class = "<%= class_name %>" - t.static_link_runtime_shared_libraries = true - t.source_path << 'src' -end - -desc "Compile the SWC file" -task :swc => '<%= bin %>/<%= class_name %>.swc' ############################## # DOC desc "Generate documentation at <%= doc %>/"