-
Notifications
You must be signed in to change notification settings - Fork 152
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
added generateTemporaryConfigurationFile option #125
added generateTemporaryConfigurationFile option #125
Conversation
try { | ||
FileWriter writer = new FileWriter(temporaryConfigurationFile); | ||
IOUtils.write(stringBuilder.toString(), writer); | ||
writer.close(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Writer needs closing even in case of errors, so this needs to be done in a finally block or with
try(FileWriter write = new FileWriter(temporaryConfigurationFile); ) {
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I replaced it with a java 1.6 compatible finally.
@@ -132,6 +133,19 @@ | |||
*/ | |||
private boolean putLibraryJarsInTempDir; | |||
|
|||
/** | |||
* Create a temporary configuration file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a bit more explanation for this feature.
For example: "Use this parameter if your command line arguments become too long and execution fails. If this parameter is true, the arguments are written to a file and the Proguard process reads them from the file instead of the command itself.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Also updated the maven documentation.
Thanks! |
putLibraryJarsInTempDir
did not work for me. My project had to many -injars, not libraries.This pull request introduces a new option
generateTemporaryConfigurationFile
that generates a temporary proguard configuration file that includes all arguments.The pull request does not modify other options.
fixes #113