Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 51ec8da3 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- implemented testng in testool dir

- cleaned up some libraries
- added (commented) static analysis routines
parent 7b774024
No related branches found
No related tags found
No related merge requests found
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</fileset> </fileset>
</path> </path>
<taskdef name="testng" classpath="lib/testng/testng.jar" classname="org.testng.TestNGAntTask" /> <taskdef name="testng" classpath="tools/testng/testng.jar" classname="org.testng.TestNGAntTask" />
<!-- tested --> <!-- tested -->
<target name="usage" depends="init"> <target name="usage" depends="init">
...@@ -27,6 +27,8 @@ ...@@ -27,6 +27,8 @@
zip: creates a new zip file zip: creates a new zip file
javadoc: generates documentation javadoc: generates documentation
release: releases a new version release: releases a new version
cover: check test coverage
analyse: perform static analysis
svnbranch: copy the version under svn svnbranch: copy the version under svn
clean: clean-up before release clean: clean-up before release
...@@ -34,6 +36,40 @@ ...@@ -34,6 +36,40 @@
</echo> </echo>
</target> </target>
<!--target name="analyse" depends="jar">
// Use Checkstyle
<taskdef resource="checkstyletask.properties"
classpath="tools/checkstyle/checkstyle-all-5.0.jar"/>
// I must have a checks.xml
<checkstyle config="docs/sun_checks.xml">
<fileset dir="src" includes="**/*.java"/>
// let see if we can put a css
<formatter type="xml" toFile="test/html/checkstyle.xml"/>
</checkstyle>
// Use FindBugs
<taskdef name="findbugs" classpath="tools/findbugs/findbugs-ant.jar" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"/>
<findbugs home="test/html/"
output="xml"
outputFile="bcel-fb.xml" >
//<auxClasspath path="${basedir}/lib/Regex.jar" />
<sourcePath path="src" />
<class location="lib/align.jar" />
</findbugs>
// Use PMD
<taskdef name="pmd" classpath="tools/pmd/pmd-ant.jar" classname="net.sourceforge.pmd.ant.PMDTask"/>
<pmd shortFilenames="true">
<ruleset>rulesets/favorites.xml</ruleset>
<ruleset>basic</ruleset>
<formatter type="html" toFile="pmd_report.html" linkPrefix="http://pmd.sourceforge.net/xref/"/>
<fileset dir="/usr/local/j2sdk1.4.1_01/src/">
<include name="java/lang/*.java"/>
</fileset>
</pmd>
</target-->
<!-- cover: emma seems really difficult
<taskdef resource="emma_ant.properties" classpathref="emma.lib" /-->
<!-- tested --> <!-- tested -->
<target name="init"> <target name="init">
<tstamp><format locale="fr,fr" pattern="dd/MM/yyyy" property="TODAY"/></tstamp> <tstamp><format locale="fr,fr" pattern="dd/MM/yyyy" property="TODAY"/></tstamp>
...@@ -52,7 +88,7 @@ ...@@ -52,7 +88,7 @@
<filter token="DATE" value="${date}"/> <filter token="DATE" value="${date}"/>
<filter token="VERS" value="${version}"/> <filter token="VERS" value="${version}"/>
<property name="jarclasspath" value="mappingapi/mappingapilite.jar owlapi2/owlapi-bin.jar ontosim/ontosim.jar getopt/getopt.jar log4j/commons-logging.jar log4j/log4j.jar align.jar ontowrap.jar procalign.jar"/> <property name="jarclasspath" value="mappingapi/mappingapilite.jar owlapi30/owlapi-bin.jar ontosim/ontosim.jar getopt/getopt.jar log4j/commons-logging.jar log4j/log4j.jar align.jar ontowrap.jar procalign.jar"/>
</target> </target>
...@@ -83,9 +119,6 @@ ...@@ -83,9 +119,6 @@
<antcall target="jar"/> <antcall target="jar"/>
<ant dir="plugins/neon" target="compileall" /> <ant dir="plugins/neon" target="compileall" />
<ant dir="plugins/webcontent" target="compileall" /> <ant dir="plugins/webcontent" target="compileall" />
<!-- anticipate separate onto release -->
<!--ant dir="onto/jena25" target="compileall" />
<ant dir="onto/owlapi10" target="compileall" /-->
</target> </target>
<!-- tested --> <!-- tested -->
...@@ -180,7 +213,8 @@ ...@@ -180,7 +213,8 @@
<!-- tested --> <!-- tested -->
<target name="test" depends="init"> <target name="test" depends="init">
<echo message="Testing..."/> <echo message="Testing..."/>
<javac srcdir="test/src" destdir="test/classes" debug="on" encoding="iso8859-15"> <javac srcdir="test/src" destdir="test/classes" debug="on"
classpath="tools/testng/testng.jar" encoding="iso8859-15">
<classpath refid="classpath"/> <classpath refid="classpath"/>
</javac> </javac>
<!-- possible groups: raw=impl+serv+io+onto+omwg, full=raw+ling+sem --> <!-- possible groups: raw=impl+serv+io+onto+omwg, full=raw+ling+sem -->
...@@ -221,7 +255,7 @@ ...@@ -221,7 +255,7 @@
Windowtitle="Alignment API and Server" Windowtitle="Alignment API and Server"
doctitle="Alignment API and Server ${version}" doctitle="Alignment API and Server ${version}"
header="Alignment API and Server ${version}" header="Alignment API and Server ${version}"
bottom="(C) INRIA &amp; friends, 2003-2008" bottom="(C) INRIA &amp; friends, 2003-2010"
> >
<classpath refid="classpath"/> <classpath refid="classpath"/>
<packageset dir="src" defaultexcludes="yes"> <packageset dir="src" defaultexcludes="yes">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment