lib/reality/generators/rake_integration.rb in reality-generators-1.17.0 vs lib/reality/generators/rake_integration.rb in reality-generators-1.18.0

- old
+ new

@@ -72,10 +72,11 @@ class BaseGenerateTask attr_accessor :description attr_accessor :namespace_key attr_accessor :filter attr_writer :verbose + attr_writer :mark_as_generated_in_ide attr_reader :root_element_key attr_reader :key attr_reader :generator_keys attr_reader :target_dir @@ -88,15 +89,16 @@ @generator_keys = generator_keys @namespace_key = self.default_namespace_key @filter = nil # Turn on verbose messages if buildr is turned on tracing @verbose = trace? + @mark_as_generated_in_ide = true @target_dir = target_dir yield self if block_given? define @templates = self.template_set_container.generator.load_templates_from_template_sets(generator_keys) - Reality::Generators::Buildr.configure_buildr_project(buildr_project, task_name, @templates, target_dir) + Reality::Generators::Buildr.configure_buildr_project(buildr_project, task_name, @templates, target_dir, mark_as_generated_in_ide?) end protected def default_namespace_key @@ -146,9 +148,13 @@ element end private + + def mark_as_generated_in_ide? + !!@mark_as_generated_in_ide + end def verbose? !!@verbose end