nb4eclipse / project / release / scripts / debug-eclipse-rcp-application.xml

<?xml version="1.0" encoding="UTF-8"?>
<!--
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

Copyright 2010 Oracle and/or its affiliates. All rights reserved.

Oracle and Java are registered trademarks of Oracle and/or its affiliates.
Other names may be trademarks of their respective owners.


The contents of this file are subject to the terms of either the GNU
General Public License Version 2 only ("GPL") or the Common
Development and Distribution License("CDDL") (collectively, the
"License"). You may not use this file except in compliance with the
License. You can obtain a copy of the License at
http://www.netbeans.org/cddl-gplv2.html
or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
specific language governing permissions and limitations under the
License.  When distributing the software, include this License Header
Notice in each file and include the License file at
nbbuild/licenses/CDDL-GPL-2-CP.  Oracle designates this
particular file as subject to the "Classpath" exception as provided
by Oracle in the GPL Version 2 section of the License file that
accompanied this code. If applicable, add the following below the
License Header, with the fields enclosed by brackets [] replaced by
your own identifying information:
"Portions Copyrighted [year] [name of copyright owner]"

Contributor(s):

The Original Software is NetBeans. The Initial Developer of the Original
Software is Sun Microsystems, Inc. Portions Copyright 2008 Sun
Microsystems, Inc. All Rights Reserved.

If you wish your version of this file to be governed by only the CDDL
or only the GPL Version 2, indicate your decision by adding
"[Contributor] elects to include this software in this distribution
under the [CDDL or GPL Version 2] license." If you do not indicate a
single choice of license, a recipient has the option to distribute
your version of this file under either the CDDL, the GPL Version 2 or
to extend the choice of license to its licensees as provided above.
However, if you add GPL Version 2 code and therefore, elected the GPL
Version 2 license, then the option applies only if the new code is
made subject to such option by the copyright holder.
-->
<project name="{0} (debug)" default="debug" basedir=".">
    <target name="-init-debug-args">
        <property name="version-output" value="java version &quot;${ant.java.version}"/>
        <condition property="have-jdk-older-than-1.4">
            <or>
                <contains string="${version-output}" substring="java version &quot;1.0"/>
                <contains string="${version-output}" substring="java version &quot;1.1"/>
                <contains string="${version-output}" substring="java version &quot;1.2"/>
                <contains string="${version-output}" substring="java version &quot;1.3"/>
            </or>
        </condition>
        <condition else="-Xdebug" property="debug-args-line" value="-Xdebug -Xnoagent -Djava.compiler=none">
            <istrue value="${have-jdk-older-than-1.4}"/>
        </condition>
        <condition property="debug-transport-by-os" value="dt_shmem" else="dt_socket">
            <os family="windows"/>
        </condition>
        <condition property="debug-transport" value="${debug.transport}" else="${debug-transport-by-os}">
            <isset property="debug.transport"/>
        </condition>
    </target>

    <target name="debug" depends="-init-debug-args">
        <translate-classpath classpath="${classpath}" targetProperty="classpath-translated" />
        <property name="run.jvmargs" value="" />
        <property name="work.dir" value="${basedir}"/>
        <property name="application.args" value="" />
        <property name="stopclassname" value="" />
        <nbjpdastart addressproperty="jpda.address" name="${classname}" transport="${debug-transport}" listeningcp="${classpath}" stopclassname="${stopclassname}">
            <classpath>
                <path path="${classpath-translated}"/>
            </classpath>
            <bootclasspath>
                <path path="${platform.bootcp}"/>
            </bootclasspath>
        </nbjpdastart>
        <java classpath="${classpath-translated}" classname="org.eclipse.equinox.launcher.Main" dir="${work.dir}" jvm="${platform.java}" fork="true">
            <jvmarg line="${debug-args-line}"/>
            <jvmarg value="-Xrunjdwp:transport=${debug-transport},address=${jpda.address}"/>
            <jvmarg value="-Dfile.encoding=${encoding}"/>
            <redirector inputencoding="${encoding}" outputencoding="${encoding}" errorencoding="${encoding}"/>
            <jvmarg value="-Xms40m" />
            <jvmarg value="-Xmx384m" />
            <jvmarg value="-Declipse.pde.launch=true" />
            <classpath path="${launcher}" />
            <jvmarg line="${run.jvmargs}" />
            <arg line="-showsplash 600" />
            <arg value="-data" />
            <arg value="${workspace}/../runtime-EclipseApplication" />
            <arg value="-configuration" />
            <arg value="file:${workspace}/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/" />
            <arg value="-dev" />
            <arg value="file:${workspace}/.metadata/.plugins/org.eclipse.pde.core/Eclipse Application/dev.properties" />
            <arg value="-consoleLog" />
            <arg line="${application.args}" />
        </java>
    </target>
</project>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.