File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
src/main/groovy/com/marklogic/gradle/task/client Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -42,8 +42,19 @@ class WatchTask extends MarkLogicTask {
4242
4343 if (loader instanceof DefaultModulesLoader ) {
4444 DefaultModulesLoader dml = (DefaultModulesLoader ) loader
45+
46+ /**
47+ * This is unfortunately more complicated than it should be. catchExceptions doesn't really apply to
48+ * REST modules because REST modules are loaded async - unless DefaultModulesLoader's thread count is set
49+ * to 1, in which case catchExceptions suffices. rethrowRestModulesFailure was added in 3.7.0 of
50+ * ml-javaclient-util to cause deployments to fail when REST modules fail to load, which is good default
51+ * behavior but isn't good for this task.
52+ */
4553 dml. setCatchExceptions(true )
54+ dml. setRethrowRestModulesFailure(false )
55+
4656 dml. setShutdownTaskExecutorAfterLoadingModules(false )
57+
4758 if (project. hasProperty(" ignoreDirty" ) && " true" . equals(project. property(" ignoreDirty" ))) {
4859 ModulesManager mgr = dml. getModulesManager()
4960 if (mgr instanceof PropertiesModuleManager ) {
You can’t perform that action at this time.
0 commit comments