mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-22 01:37:34 +01:00
stderr for error messages
This commit is contained in:
parent
054ddb1388
commit
be4ae922de
1
CHANGES
1
CHANGES
@ -21,6 +21,7 @@ v2.0.0 (TBA)
|
|||||||
-Fixed (issue #326) - Fixed PNG increasing brightness on build (Thanks Christiaan)
|
-Fixed (issue #326) - Fixed PNG increasing brightness on build (Thanks Christiaan)
|
||||||
-Fixed (issue #448) - Merge smali2 into Apktool
|
-Fixed (issue #448) - Merge smali2 into Apktool
|
||||||
-Fixed (issue #496) - Fixes Windows builds caused by java.nio problems
|
-Fixed (issue #496) - Fixes Windows builds caused by java.nio problems
|
||||||
|
-Fixed (issue #510) - Any error output is sent stderr instead of stdout
|
||||||
-Updated known bytes for configurations to 38 (from addition of layout direction)
|
-Updated known bytes for configurations to 38 (from addition of layout direction)
|
||||||
-Fixed NPE when handling odex apks even with --no-src specified. (Thanks Rodrigo Chiossi)
|
-Fixed NPE when handling odex apks even with --no-src specified. (Thanks Rodrigo Chiossi)
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ public class Main {
|
|||||||
try {
|
try {
|
||||||
commandLine = parser.parse(allOptions, args, false);
|
commandLine = parser.parse(allOptions, args, false);
|
||||||
} catch (ParseException ex) {
|
} catch (ParseException ex) {
|
||||||
System.out.println(ex.getMessage());
|
System.err.println(ex.getMessage());
|
||||||
usage(commandLine);
|
usage(commandLine);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -165,24 +165,24 @@ public class Main {
|
|||||||
try {
|
try {
|
||||||
decoder.decode();
|
decoder.decode();
|
||||||
} catch (OutDirExistsException ex) {
|
} catch (OutDirExistsException ex) {
|
||||||
System.out
|
System.err
|
||||||
.println("Destination directory ("
|
.println("Destination directory ("
|
||||||
+ outDir.getAbsolutePath()
|
+ outDir.getAbsolutePath()
|
||||||
+ ") "
|
+ ") "
|
||||||
+ "already exists. Use -f switch if you want to overwrite it.");
|
+ "already exists. Use -f switch if you want to overwrite it.");
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
} catch (InFileNotFoundException ex) {
|
} catch (InFileNotFoundException ex) {
|
||||||
System.out.println("Input file (" + apkName + ") " + "was not found or was not readable.");
|
System.err.println("Input file (" + apkName + ") " + "was not found or was not readable.");
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
} catch (CantFindFrameworkResException ex) {
|
} catch (CantFindFrameworkResException ex) {
|
||||||
System.out
|
System.err
|
||||||
.println("Can't find framework resources for package of id: "
|
.println("Can't find framework resources for package of id: "
|
||||||
+ String.valueOf(ex.getPkgId())
|
+ String.valueOf(ex.getPkgId())
|
||||||
+ ". You must install proper "
|
+ ". You must install proper "
|
||||||
+ "framework files, see project website for more info.");
|
+ "framework files, see project website for more info.");
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
System.out.println("Could not modify file. Please ensure you have permission.");
|
System.err.println("Could not modify file. Please ensure you have permission.");
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -791,7 +791,7 @@ final public class AndrolibResources {
|
|||||||
if (!dir.exists()) {
|
if (!dir.exists()) {
|
||||||
if (!dir.mkdirs()) {
|
if (!dir.mkdirs()) {
|
||||||
if (sFrameworkFolder != null) {
|
if (sFrameworkFolder != null) {
|
||||||
System.out.println("Can't create Framework directory: "
|
System.err.println("Can't create Framework directory: "
|
||||||
+ dir);
|
+ dir);
|
||||||
}
|
}
|
||||||
throw new AndrolibException("Can't create directory: " + dir);
|
throw new AndrolibException("Can't create directory: " + dir);
|
||||||
|
@ -155,9 +155,9 @@ public class DebugInjector {
|
|||||||
localType = "D";
|
localType = "D";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
System.out.println(line);
|
System.err.println(line);
|
||||||
System.out.println(m.group(2));
|
System.err.println(m.group(2));
|
||||||
System.out.println(m.group(3));
|
System.err.println(m.group(3));
|
||||||
assert false;
|
assert false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user