Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 41801 invoked from network); 11 Aug 2004 09:37:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 Aug 2004 09:37:54 -0000 Received: (qmail 42485 invoked by uid 500); 11 Aug 2004 09:37:51 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 42109 invoked by uid 500); 11 Aug 2004 09:37:44 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 42090 invoked by uid 500); 11 Aug 2004 09:37:44 -0000 Received: (qmail 42084 invoked by uid 99); 11 Aug 2004 09:37:43 -0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [209.237.227.194] (HELO minotaur.apache.org) (209.237.227.194) by apache.org (qpsmtpd/0.27.1) with SMTP; Wed, 11 Aug 2004 02:37:43 -0700 Received: (qmail 41595 invoked by uid 1146); 11 Aug 2004 09:37:43 -0000 Date: 11 Aug 2004 09:37:43 -0000 Message-ID: <20040811093743.41594.qmail@minotaur.apache.org> From: bodewig@apache.org To: ant-cvs@apache.org Subject: cvs commit: ant/src/main/org/apache/tools/ant/taskdefs Execute.java X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N bodewig 2004/08/11 02:37:42 Modified: src/main/org/apache/tools/ant/taskdefs/optional/dotnet NetCommand.java src/main/org/apache/tools/ant/taskdefs Execute.java Log: Make NetCommand#setDirectory actually do something Revision Changes Path 1.32 +5 -2 ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java Index: NetCommand.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/NetCommand.java,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- NetCommand.java 4 Aug 2004 14:35:06 -0000 1.31 +++ NetCommand.java 11 Aug 2004 09:37:42 -0000 1.32 @@ -126,7 +126,6 @@ this.program = program; commandLine = new Commandline(); commandLine.setExecutable(program); - prepareExecutor(); } @@ -207,7 +206,8 @@ * *@param argument1 The first argument *@param argument2 The second argument - */ public void addArgument(String argument1, String argument2) { + */ + public void addArgument(String argument1, String argument2) { if (argument2 != null && argument2.length() != 0) { commandLine.createArgument().setValue(argument1 + argument2); } @@ -277,13 +277,16 @@ */ public void runCommand() throws BuildException { + prepareExecutor(); int err = -1; // assume the worst try { if (traceCommandLine) { + owner.log("In directory " + executable.getWorkingDirectory()); owner.log(commandLine.describeCommand()); } else { //in verbose mode we always log stuff + logVerbose("In directory " + executable.getWorkingDirectory()); logVerbose(commandLine.describeCommand()); } setExecutableCommandLine(); 1.83 +9 -1 ant/src/main/org/apache/tools/ant/taskdefs/Execute.java Index: Execute.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/Execute.java,v retrieving revision 1.82 retrieving revision 1.83 diff -u -r1.82 -r1.83 --- Execute.java 18 Jun 2004 13:42:03 -0000 1.82 +++ Execute.java 11 Aug 2004 09:37:42 -0000 1.83 @@ -383,6 +383,14 @@ } /** + * @since Ant 1.7 + */ + public File getWorkingDirectory() { + return workingDirectory == null ? new File(antWorkingDirectory) + : workingDirectory; + } + + /** * Set the name of the antRun script using the project's value. * * @param project the current project. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org