-
Notifications
You must be signed in to change notification settings - Fork 41
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
Hiding the logs from OneJar? #15
Comments
It's actually an issue with the way task awesomeFunJar(type: OneJar) {
mainClass = 'com.github.rholder.awesome.MyAwesomeMain'
useStable = false
} As I recall, the 0.97 version of I have come close to releasing my "quiet" version of |
OK, so
As to http://sourceforge.net/projects/one-jar/files/one-jar/one-jar-0.97.1/, it redirects to 0.97 and I get the messages from the first attempt. So, a failure so far. When you say you have "come close" to releasing a quiet version, what do you mean exactly? I could of course fork/modify (the SF issue even has a link to a patch that supposedly fixes that, haven't tested), but if duplicate work could be avoided... |
yep, same problem here. a ton of output from the fat jar created by this plugin. [JarClassLoader] WARN: org/mozilla/javascript/Token.class in lib/yuicompressor-2.4.6.jar is hidden by lib/js-1.6R7.jar (with different bytecode) etc |
Yup... disabling gradle-one-jar logs is essential... It should be disabled by default |
using it printed two lines of log with myJarPath=... and oneJarPath, but it's still acceptable |
Please fix this, I can't make a simple command line tool jar with the boot logging going on. |
+1, the |
In case you haven't found this https://stackoverflow.com/a/13853353/992988: |
It seems, you have at least two options.
|
Hello,
This plugin is what I was looking for for one of my projects (https://github.com/fge/json-schema-validator), so thanks for that!
I have one nitpick though. When I launch it, I see this output:
After some digging around, I could find on StackOverflow that you could add this JVM option to silence this output (not documented on the one-jar project page!):
This works; however I'd like to avoid having users to type that each time!
Is there an undocumented option to gradle-one-jar allowing to generate a "silent jar" by default?
The text was updated successfully, but these errors were encountered: