aboutsummaryrefslogtreecommitdiffstats
path: root/nbproject/ide-targets.xml
blob: fa4778269cd45b4d77aeaa0fba8b1b7534cadf8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created by Brian Burch on August 25, 2005
     Netbeans debug targets are now held in this file.
    -->
<project basedir=".." name="SIP Communicator-IDE">

    <import file="../build.xml"/>

    <target name="debug-nb-wholeApp"
            depends="deploy-os-specific-bundles"
            description="Starts felix and runs sip-comunicator gui (use latest build).">
        <nbjpdastart addressproperty="jpda.address"
                     name="SIP Communicator"
                     transport="dt_socket">
            <classpath  refid="debug.class.path"/>
            <sourcepath refid="project.source.path"/>
        </nbjpdastart>

        <!-- we allow users to pass command line args using the "args" system
             property. However we need to manually set that prop to an empty
             string here (in the normal case the user will not have defined
             any - otherwise the application would find an argument with
             the value ${args} )-->
        <property name="args" value="--multiple"/>

        <!-- fork=true no longer prevents debug break points latching... -->
        <java fork="true"
              classname="net.java.sip.communicator.launcher.SIPCommunicator"
              failonerror="true">
            <classpath  refid="debug.class.path"/>

            <jvmarg value="-Xdebug"/>
            <jvmarg value="-Xnoagent"/>
            <jvmarg value="-Djava.compiler=none"/>
            <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>

            <!-- Sets the charset for the messages -->
            <!--sysproperty key="icq.custom.message.charset" value="windows-1252"/-->
            <!-- Tell felix to run sip-communicator-->
            <sysproperty key="felix.config.properties"
                         value="file:${lib}/felix.client.run.properties"/>

            <!-- Tell java.util.logging about our logging preferences -->
            <sysproperty key="java.util.logging.config.file"
                         value="${lib}/logging.properties"/>

            <sysproperty key="java.net.preferIPv6Addresses"
                         value="false"/>

            <!--sysproperty key="net.java.sip.communicator.SC_HOME_DIR_LOCATION"
                    value="${user.home}/schome"/-->

            <!-- Setting properties necessary for dependencies on native libs.-->
            <sysproperty key="java.library.path"
                         path="${ld.library.path}:${path}:${dyld.library.path}"/>

            <!-- pass l10n properties from ant call for
                 easy translation debugging -->
            <sysproperty key="user.language" value="${user.language}"/>
            <sysproperty key="user.country" value="${user.country}"/>
            <sysproperty key="user.variant" value="${user.variant}"/>

            <env key="LD_LIBRARY_PATH" path="${ld.library.path}"/>
            <env key="PATH" path="${path}"/>
            <env key="DYLD_LIBRARY_PATH" path="${dyld.library.path}"/>

            <!-- make sure that we automatically enable system.out when running
                 SIP Communicator from Ant-->
            <arg line="--debug"/>
            <!-- pass to SC args that have been specified by the user -->
            <arg line="${args}"/>
        </java>
    </target>

</project>