Skip to content

LUCENE-9861: pull tuned vm options into a separate aspect.#33

Merged
dweiss merged 1 commit intoapache:mainfrom
dweiss:LUCENE-9861
Mar 23, 2021
Merged

LUCENE-9861: pull tuned vm options into a separate aspect.#33
dweiss merged 1 commit intoapache:mainfrom
dweiss:LUCENE-9861

Conversation

@dweiss
Copy link
Contributor

@dweiss dweiss commented Mar 22, 2021

No description provided.

Copy link
Contributor

@uschindler uschindler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a generic way to handle this.

IMHO, the RenderJavadoc tasks should maybe extend JavaExec anyways.

args += [ "-enableJavadoc" ]
args += [ "-properties", file("${resources}/ecj.javadocs.prefs").absolutePath ]

// disable for now because individual file excludes cannot be applied to ecj.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we apply the options here as well, like the patch on the JIRA? It was a large win for ecjlint for me.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nm, i see, it must be a "JavaExec" ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is. That's the trick here. 😜

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These vm options are applied to all ecjLint* tasks - I just moved the application to that separate file.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In addition, it's automatically activated for all JavaExec tasks, no need to handle it in all custom tasks.

@rmuir
Copy link
Member

rmuir commented Mar 22, 2021

I compared times with another PR (just looking at the github check times), and it shaved a few minutes off

@dweiss dweiss merged commit 078d007 into apache:main Mar 23, 2021
gsmiller pushed a commit to gsmiller/lucene that referenced this pull request Mar 30, 2021
gsmiller pushed a commit to gsmiller/lucene that referenced this pull request Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants