aboutsummaryrefslogtreecommitdiffstats
path: root/nbproject/ide-file-targets.xml
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2011-11-29 14:22:36 +0000
committerIngo Bauersachs <ingo@jitsi.org>2011-11-29 14:22:36 +0000
commitf4187f0969d403b86d85bd4c75b73033d6e6f57c (patch)
tree0e4fb70934a086d737ade2b0defed73df07eda8a /nbproject/ide-file-targets.xml
parent7ebb1dd19c11cc61d324726236fb6a5930647a26 (diff)
downloadjitsi-f4187f0969d403b86d85bd4c75b73033d6e6f57c.zip
jitsi-f4187f0969d403b86d85bd4c75b73033d6e6f57c.tar.gz
jitsi-f4187f0969d403b86d85bd4c75b73033d6e6f57c.tar.bz2
Move IDE project files to where they are expected by the respective IDE
Diffstat (limited to 'nbproject/ide-file-targets.xml')
-rw-r--r--nbproject/ide-file-targets.xml104
1 files changed, 104 insertions, 0 deletions
diff --git a/nbproject/ide-file-targets.xml b/nbproject/ide-file-targets.xml
new file mode 100644
index 0000000..7f325d2
--- /dev/null
+++ b/nbproject/ide-file-targets.xml
@@ -0,0 +1,104 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Created by Brian Burch on October 8, 2008
+ Netbeans debug targets are now held in this file.
+ -->
+<project basedir=".." name="SIP Communicator-IDE">
+
+ <import file="../build.xml"/>
+
+ <target name="debug-selected-file-in-test"
+ depends="prepare-local-accounts,prepare-all-tests,deploy-os-specific-bundles"
+ description="Starts felix and debugs the selected Service Impl Compatibility Kit" >
+ <!-- This target runs felix under the debugger, but it can only work with
+ unit test classes that extend TestSuite and implements BundleActivator
+ e.g. GibberishProtocolProviderServiceLick -->
+
+ <!-- if 'test.name' property is not defined, we will be
+ runing all tests defined in testing.properties. -->
+
+ <!-- we allow users to pass command line args using the "args" system
+ property. However we need to manually set tha prop to an empty
+ string here or otherwise the application would get an argument with
+ the value ${args}-->
+ <property name="args" value=""/>
+
+ <nbjpdastart name="${short.test.name}"
+ addressproperty="jpda.address"
+ transport="dt_socket" >
+ <classpath refid="debug.class.path" />
+ <sourcepath refid="project.source.path" />
+ </nbjpdastart>
+
+ <!-- fork=true no longer prevents debug break points latching... -->
+ <java fork="true"
+ classname="org.apache.felix.main.Main"
+ resultproperty="test.result.code"
+ failonerror="true" >
+
+ <classpath refid="debug.class.path"/>
+ <jvmarg value="-Xdebug"/>
+ <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
+
+ <!-- Tell felix to run as a test environment-->
+ <sysproperty key="felix.config.properties"
+ value="file:${lib}/felix.unit.test.properties"/>
+
+ <!-- Tell the slick runner where to store test results. -->
+ <sysproperty key="net.java.sip.communicator.slick.runner.OUTPUT_DIR"
+ value="${test.reports.dir}"/>
+
+ <!-- Tell the slick runner which Test classes to run. -->
+ <sysproperty key="net.java.sip.communicator.slick.runner.TEST_LIST"
+ value="${net.java.sip.communicator.slick.runner.TEST_LIST}"/>
+
+ <!-- use a meta contact list file different to normal client. -->
+ <sysproperty key="net.java.sip.communicator.CONTACTLIST_FILE_NAME"
+ value="net.java.sip.communicator.CONTACTLIST_FILE_NAME"/>
+ <!-- use a configuration file different to normal client. -->
+ <sysproperty key="net.java.sip.communicator.CONFIGURATION_FILE_NAME"
+ value="net.java.sip.communicator.CONFIGURATION_FILE_NAME"/>
+
+ <!-- Tell java.util.logging about our logging preferences -->
+ <sysproperty key="java.util.logging.config.file"
+ value="${lib}/logging.properties"/>
+
+ <!-- Tell all protocol testers their account details. -->
+ <syspropertyset id="accounts">
+ <propertyref prefix="accounts"/>
+ <propertyref prefix="net"/>
+ </syspropertyset>
+
+ <sysproperty key="java.net.preferIPv6Addresses"
+ value="false"/>
+ </java>
+
+ <!-- Generate the html junit report.
+ Run it quietly (i.e. redirect the output) because we don't won't to
+ see its "Build Successful" output line as users might confuse it
+ for a general build success while this might not be the case.-->
+ <echo message="Generating single test report ..."/>
+ <java fork="true"
+ classname="org.apache.tools.ant.launch.Launcher"
+ classpath="${java.class.path}:${lib.noinst}/xalan-2.6.0.jar.ant"
+ failonerror="true"
+ output="${test.html.reports.dir}/output.txt">
+ <arg value="htmlreport"/>
+ </java>
+ <echo message="Done."/>
+ <echo/><echo/>
+ <echo message="Test results available in ./test-reports/html/index.html "/>
+ <echo/>
+
+ <!-- Check whether testing went alright and fail if not.-->
+ <condition property="testing.failed">
+ <not>
+ <equals arg1="0"
+ arg2="${test.result.code}"
+ casesensitive="false" trim="true"/>
+ </not>
+ </condition>
+ <fail if="testing.failed"/>
+ </target>
+
+</project>
+