Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable passing command line parameters during development to gradlew #383

Open
koppor opened this issue Dec 8, 2019 · 1 comment
Open

Comments

@koppor
Copy link
Member

koppor commented Dec 8, 2019

Using gradle's feature to pass command line arguments does not work in our settings. Current opinion: it is not about our custom groovy plugins, but because of something else.

Refs JabRef#5720

(A fat jar is currently not generated any more, because of JabRef#5312)

$  ./gradlew run --args="--help"
Starting a Gradle Daemon, 1 busy and 1 incompatible and 3 stopped Daemons could not be reused, use --status for details

> Configure project :
Found module name 'org.jabref'

> Task :compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

> Task :run
-Dfile.encoding=windows-1252
-Duser.country=DE
-Duser.language=de
-Duser.variant
org.jabref/org.jabref.JabRefLauncher
--help
-Dfile.encoding=windows-1252
-Duser.country=DE
-Duser.language=de
-Duser.variant
org.jabref/org.jabref.JabRefLauncher
--help
Importing in unknown format: -Dfile.encoding=windows-1252
Error opening file '-Dfile.encoding=windows-1252': Could not find a suitable import format.
Importing in unknown format: -Duser.country=DE
Error opening file '-Duser.country=DE': Could not find a suitable import format.
Importing in unknown format: -Duser.language=de
Error opening file '-Duser.language=de': Could not find a suitable import format.
Importing in unknown format: -Duser.variant
Error opening file '-Duser.variant': Could not find a suitable import format.
Importing in unknown format: org.jabref\org.jabref.JabRefLauncher
Error opening file 'org.jabref\org.jabref.JabRefLauncher': Could not find a suitable import format.
Importing in unknown format: --help
Error opening file '--help': Could not find a suitable import format.
15:20:57.752 [JavaFX Application Thread] INFO  org.jabref.gui.util.ThemeLoader - Enabling live reloading of C:\git-repositories\jab15:20:58.336 [JavaFX Application Thread] INFO  org.jabref.logic.importer.OpenDatabase - Opening: C:\jabref\demo-cleanup-using-doi.bib
15:20:58.375 [JavaFX Application Thread] INFO  org.jabref.logic.importer.OpenDatabase - Opening: C:\jabref\test-sync.bib
@tobiasdiez
Copy link
Member

This should work again once the fix for java9-modularity/gradle-modules-plugin#65 is released.

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

No branches or pull requests

2 participants