public
Description: actor-based memcache client library
Homepage:
Clone URL: git://github.com/robey/smile.git
smile / build.xml
100644 55 lines (48 sloc) 2.0 kb
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
<?xml version="1.0" encoding="UTF-8"?>
<project name="smile" default="package">
  <description>Memcache library based on actors</description>
 
  <!-- temporary until vscaladoc is updated -->
  <property name="skip.docs" value="true" />
 
  <import file="ant/bootstrap.xml" />
 
  <target name="go" depends="prepare,compile-tests">
    <java classname="scala.tools.nsc.MainGenericRunner" fork="true" failonerror="true">
      <classpath>
        <path refid="test.path" />
        <pathelement location="${target.dir}/classes" />
        <pathelement location="${target.dir}/test-classes" />
      </classpath>
      <arg line="net.lag.smile.go" />
    </java>
  </target>
 
  <target name="manygets" depends="prepare,compile-tests">
    <!-- 'hosts' can be overridden on the command line -->
    <property name="hosts" value="localhost:11211 localhost:11212 localhost:11213" />
    <java classname="scala.tools.nsc.MainGenericRunner" fork="true" failonerror="true">
      <classpath>
        <path refid="test.path" />
        <pathelement location="${target.dir}/classes" />
        <pathelement location="${target.dir}/test-classes" />
      </classpath>
      <arg line="net.lag.smile.stress.ManyGets ${hosts}" />
      <jvmarg value="-Xms1024m" />
      <jvmarg value="-Xmx1024m" />
    </java>
  </target>
 
  <target name="kestrel" depends="prepare,compile-tests">
    <java classname="scala.tools.nsc.MainGenericRunner" fork="true" failonerror="true">
      <classpath>
        <path refid="test.path" />
        <pathelement location="${target.dir}/classes" />
        <pathelement location="${target.dir}/test-classes" />
      </classpath>
      <arg line="net.lag.smile.stress.Kestrel localhost:22133" />
      <jvmarg value="-Xms512m" />
      <jvmarg value="-Xmx1024m" />
      <jvmarg value="-ea" />
      <jvmarg value="-esa" />
      <jvmarg value="-XX:+UseConcMarkSweepGC" />
      <jvmarg value="-XX:NewSize=256m" />
      <jvmarg value="-server" />
    </java>
  </target>
 
</project>