@echo off
rem The contents of this file are subject to the terms of the Common Development
rem and Distribution License (the License). You may not use this file except in
rem compliance with the License.
rem
rem You can obtain a copy of the License at http://www.netbeans.org/cddl.html
rem or http://www.netbeans.org/cddl.txt.
rem 
rem When distributing Covered Code, include this CDDL Header Notice in each file
rem and include the License file at http://www.netbeans.org/cddl.txt.
rem If applicable, add the following below the CDDL Header, with the fields
rem enclosed by brackets [] replaced by your own identifying information:
rem "Portions Copyrighted [year] [name of copyright owner]"
rem
rem The Original Software is NetBeans. The Initial Developer of the Original
rem Code is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
rem Microsystems, Inc. All Rights Reserved.

rem set first arg to runide.exe path

set IDE_PORT=8000
echo Waiting on port %IDE_PORT%

rem start the ide for a debugger
rem use socket transport, port 8000, wait for an incoming connection, suspend=y is default
call %1 -J-Xdebug -J-Xrunjdwp:transport=dt_socket,server=y,address=%IDE_PORT% %2 %3 %4 %5 %6 %7 %8 %9
