[
https://issues.apache.org/jira/browse/LUCENE-9448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17173933#comment-17173933
]
Tomoko Uchida edited comment on LUCENE-9448 at 8/10/20, 4:52 AM:
-----------------------------------------------------------------
I attached a poc patch [^LUCENE-9448.patch].
Main class and classpaths are specified in the Manifest, so that Luke is
launched by java command for testing.
{code:java}
$ ./gradlew lucene:luke:testAssemble
$ java -jar lucene/luke/build/libs/lucene-luke-9.0.0-SNAPSHOT.jar
{code}
There remains one TODO; how can we set correct Class-Path for distribution
package, or maybe we should omit it for the distro for now? [~dweiss] what do
you think?
We could emulate the directory structure of the final distribution package for
all dependent jars when testing (so that the same Class-Path attribute can be
used for UI testing and packaging), but it would mess up \{{luke/build/}} ...
was (Author: tomoko uchida):
I attached a poc patch [^LUCENE-9448.patch].
Main class and classpaths are specified in the Manifest, so that Luke is
launched by java command for testing.
{code:java}
$ ./gradlew lucene:luke:testAssemble
$ java -jar lucene/luke/build/libs/lucene-luke-9.0.0-SNAPSHOT.jar
{code}
There remains one TODO; how can we set correct Class-Path for distribution
package, or maybe we should omit it for the distro for now? [~dweiss] what do
you think?
> Make an equivalent to Ant's "run" target for Luke module
> --------------------------------------------------------
>
> Key: LUCENE-9448
> URL: https://issues.apache.org/jira/browse/LUCENE-9448
> Project: Lucene - Core
> Issue Type: Sub-task
> Reporter: Tomoko Uchida
> Priority: Minor
> Attachments: LUCENE-9448.patch
>
>
> With Ant build, Luke Swing app can be launched by "ant run" after checking
> out the source code. "ant run" allows developers to immediately see the
> effects of UI changes without creating the whole zip/tgz package (originally,
> it was suggested when integrating Luke to Lucene).
> In Gradle, {{:lucene:luke:run}} task would be easily implemented with
> {{JavaExec}}, I think.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]