My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
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
68
69
70
71
72
73
74
75
76
77
78
79
<project name="Comp" default="analyzer" basedir=".">

<property name="src" location="${basedir}/src"/>
<property name="build" location="${basedir}/build"/>
<property name="lib" location="${basedir}/lib"/>
<property name="buildstats" location="${basedir}/stats"/>
<property name="dist" location="${basedir}/bin"/>
<property name="version" value="1.0"/>

<path id="project.class.path">
<pathelement path="${src}"/>
<pathelement path="${lib}/junit.jar"/>
</path>

<target name="clean">
<delete dir="${build}"/>
<delete dir="${buildstats}"/>
<delete dir="${dist}"/>
</target>

<target name="init" depends="clean">
<mkdir dir="${build}"/>
<mkdir dir="${buildstats}"/>
<mkdir dir="${dist}"/>
</target>

<target name="compile" depends="init">
<javac srcdir="${src}" destdir="${build}">
<classpath refid="project.class.path"/>
</javac>

<jar jarfile="${dist}/bill.jar" basedir="${build}" includes="com/kirkk/bill/**"/>
<jar jarfile="${dist}/cust.jar" basedir="${build}" includes="com/kirkk/cust/**"/>
<jar jarfile="${dist}/base.jar" basedir="${build}" includes="com/kirkk/base/**"/>
<jar jarfile="${dist}/billtest.jar" basedir="${build}" includes="com/kirkk/test/**"/>

<junit printsummary="yes" haltonfailure="yes">
<classpath>
<pathelement path="${dist}/bill.jar"/>
<pathelement path="${dist}/cust.jar"/>
<pathelement path="${dist}/base.jar"/>
<pathelement path="${dist}/billtest.jar"/>
<pathelement path="${lib}/junit.jar"/>
</classpath>
<test name="com.kirkk.test.AllTests" outfile="junitresults">
<formatter type="plain"/>
</test>
</junit>
</target>

<target name="analyzer" depends="compile">

<taskdef name="jaranalyzer" classname="com.kirkk.analyzer.textui.JarAnalyzerTask">
<classpath>
<pathelement path="${lib}/jaranalyzer-1.2.jar"/>
<pathelement path="${lib}/lib/bcel-5.2.jar"/>
<pathelement path="${lib}/lib/jakarta-regexp-1.3.jar"/>
<pathelement path="${lib}/lib"/>
</classpath>
</taskdef>

<jaranalyzer srcdir="${dist}" destfile="${buildstats}/dependencies.xml"
summaryclass="com.kirkk.analyzer.textui.XMLUISummary" />

<style in="${buildstats}/dependencies.xml"
out="${buildstats}/dependencies.html"
style="${lib}/jaranalyzer.xsl">
</style>

<style in="${buildstats}/dependencies.xml"
out="${buildstats}/dependencies.grph"
style="${lib}/jaranalyzer2dot.xsl">
</style>

<exec executable="/Applications/Graphviz.app/Contents/MacOS/dot" ><arg line="-Tpng -Nshape=box -Nfontsize=30 -Nwidth=1.5 -Nheight=1.25 ./stats/dependencies.grph -o ./stats/dependencies.png"/></exec>

</target>

</project>

Change log

r75 by pragkirk on Nov 18, 2009   Diff
Initial Version
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 2828 bytes, 79 lines

File properties

svn:executable
Powered by Google Project Hosting