You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Dawid Weiss (Jira)" <ji...@apache.org> on 2021/05/31 08:52:00 UTC
[jira] [Commented] (LUCENE-9982) ../../gradlew help should be just
as helpful as ./gradlew help?
[ https://issues.apache.org/jira/browse/LUCENE-9982?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17354311#comment-17354311 ]
Dawid Weiss commented on LUCENE-9982:
-------------------------------------
This isn't a bug, Mike. When you change the directory to a subproject (submodule), 'gradlew xxx' is applied to *that module* (so it looks up the xxx task in that module). It is context-sensitive with respect to where you are in the module hierarchy. This is the same as calling {{gradlew -p lucene/core help}} from the top-level.
We do attach our "lucene developer" help guidance to the root project but not to *all* submodules. I don't think it makes sense to apply it across the board, to be honest? It can be done by I don't quite see the point. You can always call (from any folder): "gradlew :help" - this invokes the task by its path and ":" is the root project.
> ../../gradlew help should be just as helpful as ./gradlew help?
> ---------------------------------------------------------------
>
> Key: LUCENE-9982
> URL: https://issues.apache.org/jira/browse/LUCENE-9982
> Project: Lucene - Core
> Issue Type: Bug
> Reporter: Michael McCandless
> Priority: Major
>
> If you are in the root of a Lucene git clone, and run {{./gradlew help}}, you get useful help.
> But if you first {{cd lucene/core}} and then run {{../../gradlew help}}, it is less useful, and seems to be {{gradle}}'s generic help or something?
> Is {{gradlew help}} known to be different depending on your cwd?
> A good workaround (thanks [~rcmuir]) is to just look at the files under the {{help}} directory in the root of the Lucene git clone.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org