Ant development in eclipse has recently encountered such a situation:
- First, when ant is compiling, sometimes the compilation is incomplete, and the exception ends inexplicably.
- Second, ant can complete the compilation, but the log will not be output when it stops in a line.
After carefully reading the logs for success, you can find that when the console outputs Chinese characters, it will stop running the previous step before the output of Chinese characters. There are several solutions available.
If yes, try the following methods:
1. eclipse-> Run-> external tool deployments-> main-> arguments:
-Log org. Apache. Tools. Ant. nobannerlogger
2. eclipse-> Run-> external tool deployments-> JRE-> VM arguments:
-Duser. language = EN
If the log stops, try the following methods:
Eclipse-> Run-> external tool deployments-> common-> encoding:
IfGBK, Then changedUTF-8; YesUTF-8, Then changedGBK, Switch between them should be OK.