Skip to content

Commit

Permalink
Move -addconfigurationdebugging warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjameshamilton authored and maqsoodahmadjan committed May 17, 2021
1 parent e3e6360 commit 98813c4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions base/src/proguard/OutputWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ public void execute(ClassPool programClassPool,
ResourceFilePool resourceFilePool,
ExtraDataEntryNameMap extraDataEntryNameMap) throws IOException
{
if (configuration.addConfigurationDebugging)
{
System.err.println("Warning: -addconfigurationdebugging is enabled; the resulting build will contain obfuscation information.");
System.err.println("It should only be used for debugging purposes.");
}

ClassPath programJars = configuration.programJars;

// Construct a filter for files that shouldn't be compressed.
Expand Down Expand Up @@ -405,9 +411,6 @@ private DataEntryReader writeExtraConfigurationFiles(ClassPool progr
new ClassMapDataEntryReplacer(programClassPool, initialStateInfo,
extraFileWriter),
resourceCopier);

System.err.println("Warning: -addconfigurationdebugging is enabled; the resulting build will contain obfuscation information.");
System.err.println("It should only be used for debugging purposes.");
}

return resourceCopier;
Expand Down

0 comments on commit 98813c4

Please sign in to comment.