git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@270323 13f79535-47bb-0310-9956-ffa450edef68master
| @@ -439,8 +439,7 @@ public abstract class DefaultCompilerAdapter implements CompilerAdapter | |||||
| Project.MSG_WARN ) ); | Project.MSG_WARN ) ); | ||||
| exe.setWorkingDirectory( project.getBaseDir() ); | exe.setWorkingDirectory( project.getBaseDir() ); | ||||
| exe.setCommandline( commandArray ); | exe.setCommandline( commandArray ); | ||||
| exe.execute(); | |||||
| return exe.getExitValue(); | |||||
| return exe.execute(); | |||||
| } | } | ||||
| catch( IOException e ) | catch( IOException e ) | ||||
| { | { | ||||
| @@ -286,17 +286,6 @@ public class Execute | |||||
| } | } | ||||
| } | } | ||||
| /** | |||||
| * query the exit value of the process. | |||||
| * | |||||
| * @return the exit value, 1 if the process was killed, or Project.INVALID | |||||
| * if no exit value has been received | |||||
| */ | |||||
| public int getExitValue() | |||||
| { | |||||
| return m_exitValue; | |||||
| } | |||||
| /** | /** | ||||
| * Runs a process defined by the command line and returns its exit status. | * Runs a process defined by the command line and returns its exit status. | ||||
| * | * | ||||
| @@ -346,7 +335,7 @@ public class Execute | |||||
| m_streamHandler.stop(); | m_streamHandler.stop(); | ||||
| if( m_watchdog != null ) | if( m_watchdog != null ) | ||||
| m_watchdog.checkException(); | m_watchdog.checkException(); | ||||
| return getExitValue(); | |||||
| return m_exitValue; | |||||
| } | } | ||||
| /** | /** | ||||
| @@ -439,8 +439,7 @@ public abstract class DefaultCompilerAdapter implements CompilerAdapter | |||||
| Project.MSG_WARN ) ); | Project.MSG_WARN ) ); | ||||
| exe.setWorkingDirectory( project.getBaseDir() ); | exe.setWorkingDirectory( project.getBaseDir() ); | ||||
| exe.setCommandline( commandArray ); | exe.setCommandline( commandArray ); | ||||
| exe.execute(); | |||||
| return exe.getExitValue(); | |||||
| return exe.execute(); | |||||
| } | } | ||||
| catch( IOException e ) | catch( IOException e ) | ||||
| { | { | ||||
| @@ -286,17 +286,6 @@ public class Execute | |||||
| } | } | ||||
| } | } | ||||
| /** | |||||
| * query the exit value of the process. | |||||
| * | |||||
| * @return the exit value, 1 if the process was killed, or Project.INVALID | |||||
| * if no exit value has been received | |||||
| */ | |||||
| public int getExitValue() | |||||
| { | |||||
| return m_exitValue; | |||||
| } | |||||
| /** | /** | ||||
| * Runs a process defined by the command line and returns its exit status. | * Runs a process defined by the command line and returns its exit status. | ||||
| * | * | ||||
| @@ -346,7 +335,7 @@ public class Execute | |||||
| m_streamHandler.stop(); | m_streamHandler.stop(); | ||||
| if( m_watchdog != null ) | if( m_watchdog != null ) | ||||
| m_watchdog.checkException(); | m_watchdog.checkException(); | ||||
| return getExitValue(); | |||||
| return m_exitValue; | |||||
| } | } | ||||
| /** | /** | ||||