PageRenderTime 11ms CodeModel.GetById 3ms app.highlight 5ms RepoModel.GetById 0ms app.codeStats 0ms

/protocols/ss7/map/load/build.xml

http://mobicents.googlecode.com/
XML | 102 lines | 78 code | 17 blank | 7 comment | 0 complexity | f33d7e411bd6dc0a6c664763113a0dae MD5 | raw file
  1<project basedir="." default="assemble">
  2
  3
  4	<property environment="sys" />
  5	<condition property="mvn.executable" value="${sys.M2_HOME}\bin\mvn.bat" else="mvn">
  6		<os family="windows" />
  7	</condition>
  8
  9
 10	<property name="packageprefix" value="org.mobicents.protocols.ss7.map.load" />
 11	<property name="javac.source" value="1.7" />
 12	<property name="srcroot" value="${root}/src" />
 13
 14	<property name="assemble.dir" value="${ant.file.mobicents.release}/../target/load" />
 15	<path id="project.class.path">
 16		<pathelement location="${assemble.dir}/sctp-api.jar" />
 17		<pathelement location="${assemble.dir}/sctp-impl.jar" />
 18		<pathelement location="${assemble.dir}/map-api.jar" />
 19		<pathelement location="${assemble.dir}/map-impl.jar" />
 20		<pathelement location="${assemble.dir}/isup-api.jar" />
 21		<pathelement location="${assemble.dir}/isup-impl.jar" />
 22		<pathelement location="${assemble.dir}/map-load.jar" />
 23		<pathelement location="${assemble.dir}/tcap-api.jar" />
 24		<pathelement location="${assemble.dir}/tcap-impl.jar" />
 25		<pathelement location="${assemble.dir}/sccp-api.jar" />
 26		<pathelement location="${assemble.dir}/sccp-impl.jar" />
 27		<pathelement location="${assemble.dir}/m3ua-api.jar" />
 28		<pathelement location="${assemble.dir}/m3ua-impl.jar" />
 29		<pathelement location="${assemble.dir}/mtp-api.jar" />
 30		<pathelement location="${assemble.dir}/mtp.jar" />
 31		<pathelement location="${assemble.dir}/mobicents-congestion.jar" />
 32		<pathelement location="${assemble.dir}/commons.jar" />
 33		
 34		<!-- mobicents 3rd party -->
 35		<pathelement location="${assemble.dir}/asn.jar" />
 36		<pathelement location="${assemble.dir}/stream.jar" />
 37		<!-- real 3rd party -->
 38		<pathelement location="${assemble.dir}/log4j.jar" />
 39		<pathelement location="${assemble.dir}/javolution.jar" />
 40		<pathelement location="${assemble.dir}/concurrent.jar" />
 41		<pathelement location="src/main/resources" />
 42		
 43	</path>
 44
 45	<property name="cp.property" refid="project.class.path" />
 46
 47	<target name="assemble" description="Builds load tests and assembles binaries.">
 48		
 49
 50		<echo message="Java Version: ${java.version}" />
 51		<echo message="Java home: ${java.home}" />
 52		<fail message="Unsupported Java version: ${java.version}. Make sure that the version of the Java compiler is 1.7 (7.0) or greater.">
 53			<condition>
 54				<not>
 55					<or>
 56						<contains string="${java.version}" substring="1.7" casesensitive="false" />
 57					</or>
 58				</not>
 59			</condition>
 60		</fail>
 61
 62		<exec executable="${mvn.executable}" dir="${ant.file.mobicents.release}/../">
 63			<arg line="install" />
 64		</exec>
 65
 66		<exec executable="${mvn.executable}" dir="${ant.file.mobicents.release}/../">
 67			<arg line="install -Passemble" />
 68		</exec>
 69	</target>
 70
 71
 72	<target name="server" description="run the Load Test Server.">
 73		<echo message="${cp.property}" />
 74		<delete dir="server" />
 75		<mkdir dir="server" />
 76		<delete file="log4j-server.log" />
 77		<java classname="${packageprefix}.Server" fork="true" maxmemory="2048m" classpathref="project.class.path" dir="server">
 78			<jvmarg value="-Dlog.file.name=log4j-server.log" />
 79			<!--
 80			<jvmarg value="-XX:+PrintGCDetails" />
 81			<jvmarg value="-XX:+PrintGCTimeStamps" />
 82			-->
 83		</java>
 84	</target>
 85	<target name="client" description="run the Load Test Client">
 86		<echo message="${cp.property}" />
 87		<delete dir="client" />
 88		<mkdir dir="client" />
 89		<java classname="${packageprefix}.Client" fork="true" maxmemory="2048m" classpathref="project.class.path" dir="client">
 90			<jvmarg value="-Dlog.file.name=log4j-client.log" />
 91			<arg value="10000000" />
 92			<arg value="10" />
 93		</java>
 94	</target>
 95	<!-- -->
 96	<target name="clean" description="clean the logs">
 97		<delete dir="server" />
 98		<delete dir="client" />
 99	</target>
100	
101
102</project>