forked from patricklam/cloneanalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
67 lines (65 loc) · 3.01 KB
/
build.xml
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="cached" name="CloneAnalysis">
<property environment="env"/>
<property name="result_location" value="results"/>
<property name="min" value="0.1"/>
<property name="props2" value="ant.settings"/>
<property file="${env.SETTINGS_DIR}/${props2}"/>
<property file="${env.SETTINGS_DIR}/${props}"/>
<property name="debuglevel" value="source,lines"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<property name="classlist" value=""/>
<property name="process-dirs" value=""/>
<property name="excludes" value=""/>
<path id="CloneAnalysis.classpath">
<pathelement path="bin/" />
<fileset dir="lib/">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="init">
<mkdir dir="bin"/>
<mkdir dir="cache"/>
<mkdir dir="results"/>
<copy includeemptydirs="false" todir="bin">
<fileset dir="src">
<exclude name="**/*.launch"/>
<exclude name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="clean">
<delete dir="bin"/>
</target>
<target depends="init" name="build">
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="bin" source="${source}" target="${target}" includeantruntime="false">
<src path="src"/>
<classpath refid="CloneAnalysis.classpath"/>
</javac>
</target>
<target depends="build" name="main">
<echo message="Analysing ${props}" />
<java classname="clone.analysis.dataflow.CloneAnalysis" failonerror="true" fork="yes">
<jvmarg value="-Xms2G"/>
<jvmarg value="-Xmx20G"/>
<!--<jvmarg value="-XX:-UseParallelOldGC"/>-->
<jvmarg value="-ea"/>
<arg line="-cp ${javaclasspath}:${appclasspath} -f jimple -w -full-resolver -print-tags -allow-phantom-refs -keep-line-number -p jop enabled:true -O -p cg.cha enabled:true -p cg.spark enabled:false -x junit.framework ${excludes} ${classlist} ${appmain} ${process-dirs} --similarityargs project=${props} min=${min} result_location=${result_location}" />
<classpath refid="CloneAnalysis.classpath"/>
<!--<arg line="-cp ${javaclasspath}:${appclasspath} ${appmain} -src-prec java -f jimple -w -full-resolver -print-tags -p jb use-original-names true -keep-line-number true -allow-phantom-refs -p jop enabled:true -O -p cg.cha enabled:false -p cg.spark enabled:true -x junit.framework ${classlist}"/>-->
</java>
</target>
<target depends="build" name="cached">
<echo message="Analysing ${props}" />
<java classname="clone.analysis.dataflow.CloneAnalysis" failonerror="true" fork="yes">
<jvmarg value="-Xms2G"/>
<jvmarg value="-Xmx20G"/>
<!--<jvmarg value="-XX:-UseParallelOldGC"/>-->
<jvmarg value="-ea"/>
<arg line="-- "/>
<classpath refid="CloneAnalysis.classpath"/>
</java>
</target>
</project>