PageRenderTime 67ms CodeModel.GetById 62ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/protocols/jain-mgcp/stack/src/test/java/org/mobicents/protocols/mgcp/stack/test/concurrency/build.xml

http://mobicents.googlecode.com/
XML | 51 lines | 46 code | 5 blank | 0 comment | 0 complexity | 40588b12fe303c0f33f921d2be1f3f8d MD5 | raw file
 1<project basedir="." default="mgw">
 2	<property name="packageprefix" value="org.mobicents.protocols.mgcp.stack.test.concurrency" />
 3	<property name="root" value="../../../../../../../../../.." />
 4	<property file="${root}/ant-build-config.properties" />
 5	<property name="classes" value="${root}/target/classes" />
 6	<property name="javac.source" value="1.5" />
 7	<property name="test-classes" value="${root}/target/test-classes" />
 8	<property name="srcroot" value="${root}/src" />
 9	<property name="log4j_jar" value="${log4j}" />
10	<property name="junit_jar" value="${junit}" />
11	<property name="jain_mgcp_ri_jar" value="${jain-mgcp-ri}" />
12	<path id="project.class.path">
13		<pathelement location="${jain_mgcp_ri_jar}" />
14		<pathelement location="${test-classes}" />
15		<pathelement location="${classes}" />
16		<pathelement location="${log4j_jar}" />
17		<pathelement location="${junit_jar}" />
18		<pathelement location="${root}/src/test/resources/log4j.properties"/>
19	</path>
20	<target name="make">
21		<javac debug="true" source="${javac.source}" deprecation="${javac.deprecation}" debuglevel="${javac.debuglevel}" srcdir="${srcroot}" includes="test/java/org/mobicents/protocols/mgcp/stack/test/concurrency/**/*.java" classpathref="project.class.path" destdir="${test-classes}">
22		</javac>
23	</target>
24
25
26	<target name="mgw" depends="make" description="run the example UAs.">
27		<echo message="${log4j_jar}"/>
28		<delete file="log4j-mgw.log" />
29		<java classname="${packageprefix}.MGW" fork="true" maxmemory="128m" classpathref="project.class.path" >
30			<jvmarg value="-Dfile.name=log4j-mgw.log"/>
31			<jvmarg value="-XX:+PrintGCDetails" />
32			<jvmarg value="-XX:+PrintGCTimeStamps" />
33		</java>
34	</target>
35	<target name="ca" depends="make" description="run the example UAs.">
36		<delete file="log4j-ca.log" />
37		<java classname="${packageprefix}.CA" fork="true" maxmemory="128m" classpathref="project.class.path">
38			<jvmarg value="-Dfile.name=log4j-ca.log"/>
39			<arg value="10000" />
40			<arg value="100" />
41		</java>
42	</target>
43
44	<target name="clean" description="clean the logs">
45		<delete failonerror="0">
46			<fileset file="*.log" />
47		</delete>
48	</target>
49
50
51</project>