This is an automated email from the ASF dual-hosted git repository.

maartenc pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ant.git


The following commit(s) were added to refs/heads/master by this push:
     new c11c7b15a Fixed a warning when running AntUnit tests on Windows
c11c7b15a is described below

commit c11c7b15ab67f6178b6ed2303a396bfeeac7f424
Author: Maarten Coene <[email protected]>
AuthorDate: Sun Aug 23 19:21:03 2026 +0200

    Fixed a warning when running AntUnit tests on Windows
    
    Avoid a double slash in ANT_HOME since '%~dp0' already ends with '\'. This 
would otherwise trigger a warning in the '-antunit-warn-location' target.
---
 build.bat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.bat b/build.bat
index dc6e4472d..f24a657e0 100755
--- a/build.bat
+++ b/build.bat
@@ -16,7 +16,7 @@ REM  See the License for the specific language governing 
permissions and
 REM  limitations under the License.
 
 set REAL_ANT_HOME=%ANT_HOME%
-set ANT_HOME=%~dp0\bootstrap
+set ANT_HOME=%~dp0bootstrap
 if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist 
bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt
 call bootstrap.bat
 if exist bootstrap\lib\ant.jar if exist bootstrap\bin\ant.bat if exist 
bootstrap\bin\lcp.bat if exist bootstrap\bin\antRun.bat goto runAnt

Reply via email to