reality-generators 1.17.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc49b7084dd8c304b394d4239e66db433771c2be21644d833443fc64575d058a
|
4
|
+
data.tar.gz: c9df932fbcd415525cb5357f33e3bd0e19b366fe5f7087102a398be634bae10d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2956dd24501a523e7afd2a492b8218dfce9a79544e3eeccd4d50ceae995f67eff43ea005db0e5cd4e0fecea5af937c001c3d5a8fc936e60cbed3153efd491d4
|
7
|
+
data.tar.gz: 07ae6c65e4f97a0e4f40884f33fde589f900f79414c94a69f574e8117f8c734987a129aaee5d9ebb3bfc00f4d52bbd66e5092969e32c89ce5c4a06c2bb8dc225
|
@@ -19,7 +19,7 @@ module Reality #nodoc
|
|
19
19
|
# This method is called from a Rake or Buildr task to configure the Buildr
|
20
20
|
# project so that it knows the location of all the generated artifacts and
|
21
21
|
# adds them to the appropriate compile paths etc.
|
22
|
-
def configure_buildr_project(buildr_project, generator_task, templates, target_dir)
|
22
|
+
def configure_buildr_project(buildr_project, generator_task, templates, target_dir, mark_as_generated_in_ide)
|
23
23
|
if buildr_project.nil?
|
24
24
|
task('clean') do
|
25
25
|
rm_rf target_dir
|
@@ -37,7 +37,7 @@ module Reality #nodoc
|
|
37
37
|
buildr_project.compile.using :javac
|
38
38
|
buildr_project.compile.from main_java_dir
|
39
39
|
# Need to force this as it may have already been cached and thus will not recalculate
|
40
|
-
buildr_project.iml.main_generated_source_directories << main_java_dir if buildr_project.iml?
|
40
|
+
buildr_project.iml.main_generated_source_directories << main_java_dir if mark_as_generated_in_ide && buildr_project.iml?
|
41
41
|
end
|
42
42
|
|
43
43
|
# Is there resources generated in project?
|
@@ -56,7 +56,7 @@ module Reality #nodoc
|
|
56
56
|
end
|
57
57
|
end
|
58
58
|
end
|
59
|
-
buildr_project.iml.main_generated_resource_directories << main_resources_dir if buildr_project.iml?
|
59
|
+
buildr_project.iml.main_generated_resource_directories << main_resources_dir if mark_as_generated_in_ide && buildr_project.iml?
|
60
60
|
end
|
61
61
|
|
62
62
|
# Is there assets generated in project?
|
@@ -76,7 +76,7 @@ module Reality #nodoc
|
|
76
76
|
end
|
77
77
|
buildr_project.test.compile.from test_java_dir
|
78
78
|
# Need to force this as it may have already been cached and thus will not recalculate
|
79
|
-
buildr_project.iml.test_generated_source_directories << test_java_dir if buildr_project.iml?
|
79
|
+
buildr_project.iml.test_generated_source_directories << test_java_dir if mark_as_generated_in_ide && buildr_project.iml?
|
80
80
|
end
|
81
81
|
|
82
82
|
# Is there resources generated in project?
|
@@ -95,7 +95,7 @@ module Reality #nodoc
|
|
95
95
|
end
|
96
96
|
end
|
97
97
|
end
|
98
|
-
buildr_project.iml.test_generated_resource_directories << test_resources_dir if buildr_project.iml?
|
98
|
+
buildr_project.iml.test_generated_resource_directories << test_resources_dir if mark_as_generated_in_ide && buildr_project.iml?
|
99
99
|
end
|
100
100
|
end
|
101
101
|
end
|
@@ -74,6 +74,7 @@ module Reality #nodoc
|
|
74
74
|
attr_accessor :namespace_key
|
75
75
|
attr_accessor :filter
|
76
76
|
attr_writer :verbose
|
77
|
+
attr_writer :mark_as_generated_in_ide
|
77
78
|
|
78
79
|
attr_reader :root_element_key
|
79
80
|
attr_reader :key
|
@@ -90,11 +91,12 @@ module Reality #nodoc
|
|
90
91
|
@filter = nil
|
91
92
|
# Turn on verbose messages if buildr is turned on tracing
|
92
93
|
@verbose = trace?
|
94
|
+
@mark_as_generated_in_ide = true
|
93
95
|
@target_dir = target_dir
|
94
96
|
yield self if block_given?
|
95
97
|
define
|
96
98
|
@templates = self.template_set_container.generator.load_templates_from_template_sets(generator_keys)
|
97
|
-
Reality::Generators::Buildr.configure_buildr_project(buildr_project, task_name, @templates, target_dir)
|
99
|
+
Reality::Generators::Buildr.configure_buildr_project(buildr_project, task_name, @templates, target_dir, mark_as_generated_in_ide?)
|
98
100
|
end
|
99
101
|
|
100
102
|
protected
|
@@ -149,6 +151,10 @@ module Reality #nodoc
|
|
149
151
|
|
150
152
|
private
|
151
153
|
|
154
|
+
def mark_as_generated_in_ide?
|
155
|
+
!!@mark_as_generated_in_ide
|
156
|
+
end
|
157
|
+
|
152
158
|
def verbose?
|
153
159
|
!!@verbose
|
154
160
|
end
|
data/reality-generators.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reality-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Donald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: reality-core
|