[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[certi-cvs] jcerti build.xml TODO README
From: |
certi-cvs |
Subject: |
[certi-cvs] jcerti build.xml TODO README |
Date: |
Mon, 29 Mar 2010 11:47:39 +0000 |
CVSROOT: /sources/certi
Module name: jcerti
Changes by: Eric NOULARD <erk> 10/03/29 11:47:39
Modified files:
. : build.xml TODO README
Log message:
Update TODO
build file shoud now makes it easy to run UAV test
README provides basic instructions for compiling and running test
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/jcerti/build.xml?cvsroot=certi&r1=1.3&r2=1.4
http://cvs.savannah.gnu.org/viewcvs/jcerti/TODO?cvsroot=certi&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/jcerti/README?cvsroot=certi&r1=1.1&r2=1.2
Patches:
Index: build.xml
===================================================================
RCS file: /sources/certi/jcerti/build.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- build.xml 29 Mar 2010 07:53:22 -0000 1.3
+++ build.xml 29 Mar 2010 11:47:39 -0000 1.4
@@ -110,7 +110,7 @@
<pathelement location="${test.class.dir}" />
</path>
- <target name="test" depends="create-jar, test-clean" description="o run
JUnit tests">
+ <target name="prepare-test" depends="create-jar, test-clean">
<mkdir dir="${test.class.dir}" />
<javac srcdir="${test.src.dir}" destdir="${test.class.dir}"
target="1.5" source="1.5" deprecation="on">
<include name="**/*.java" />
@@ -118,11 +118,15 @@
<path refid="jcerti.classpath" />
</classpath>
</javac>
- <copy todir="${test.class.dir}">
- <fileset dir="${test.src.dir}" includes="**/*.xml"/>
- </copy>
<mkdir dir="${test.report.dir}" />
<mkdir dir="${test.work.dir}" />
+ <copy todir="${test.work.dir}" flatten="yes">
+ <fileset dir="${test.src.dir}" includes="**/*.xml"/>
+ <fileset dir="${test.src.dir}" includes="**/*.fed"/>
+ </copy>
+ </target>
+
+ <target name="test" depends="prepare-test" description="o run JUnit
tests">
<!--
<junit printsummary="withOutAndErr" fork="yes">
<jvmarg
value="-Djavax.xml.parsers.SAXParserFactory=org.apache.crimson.jaxp.SAXParserFactoryImpl"/>
@@ -142,8 +146,8 @@
<property name="jcerti.opt" value="" />
- <target name="UAVSend-run" description="o run the jcerti UAV
Send example">
- <java classname="certi.UavSend" fork="true">
+ <target name="UAVSend-run" depends="prepare-test" description="o run
the jcerti UAV Send example">
+ <java classname="certi.UavSend" fork="true"
dir="${test.work.dir}">
<classpath refid="jcerti.classpath" />
<classpath refid="jcerti.test.classpath" />
<arg value="${jcerti.opt}" />
@@ -151,8 +155,8 @@
</java>
</target>
- <target name="UAVReceive-run" description="o run the jcerti UAV
Receive example">
- <java classname="certi.UavReceive" fork="true">
+ <target name="UAVReceive-run" depends="prepare-test" description="o run
the jcerti UAV Receive example">
+ <java classname="certi.UavReceive" fork="true"
dir="${test.work.dir}">
<classpath refid="jcerti.classpath" />
<classpath
refid="jcerti.test.classpath" />
<arg value="${jcerti.opt}" />
@@ -221,6 +225,7 @@
</zipfileset>
</zip>
</target>
+
<!-- Source zip timestamped with creator -->
<target name="create-src-zip-dist-timestamped"
depends="create-src-zip-dist">
<tstamp>
@@ -229,6 +234,8 @@
<move file="${dist.dir}/jcerti-src.zip"
tofile="${dist.dir}/jcerti-src-${zipTimeStamp}-${user.name}.zip"/>
</target>
+ <target name="package-source" depends="create-izpack-dist"
description="o create a source package"/>
+
<target name="create-izpack-dist"
depends="create-src-zip-dist,prepare-dist,javadoc,create-jar">
<taskdef name="izpack"
classpath="${lib.izpack.dir}/standalone-compiler.jar"
classname="com.izforge.izpack.ant.IzPackTask"/>
@@ -242,6 +249,8 @@
izPackDir="${lib.izpack.dir}"/>
</target>
+ <target name="package" depends="create-izpack-dist" description="o
create an IzPack installer"/>
+
<!-- Timestamp bzip2 patch -->
<target name="create-patch-bz2-dist-timestamped"
depends="create-patch-bz2-dist">
<tstamp>
@@ -257,7 +266,8 @@
<arg line="-urN ${jcerti.tree.ref} ${jcerti.tree.current}" />
</exec>
- <bzip2 src="${dist.dir}/jcerti-patch.txt"
destfile="${dist.dir}/jcerti-patch.txt.bz2"></bzip2>
+ <bzip2 src="${dist.dir}/jcerti-patch.txt"
destfile="${dist.dir}/jcerti-patch.txt.bz2">
+ </bzip2>
<delete file="${dist.dir}/jcerti-patch.txt" />
</target>
Index: TODO
===================================================================
RCS file: /sources/certi/jcerti/TODO,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- TODO 22 Mar 2010 11:47:53 -0000 1.1
+++ TODO 29 Mar 2010 11:47:39 -0000 1.2
@@ -3,4 +3,6 @@
- udpate CERTI message generator in order to fully generate
certi.communication.messages.
-- ,,,
+- Add more easily launchable test in build.xml
+
+- Add JUnit auto-testing
Index: README
===================================================================
RCS file: /sources/certi/jcerti/README,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- README 22 Mar 2010 11:47:53 -0000 1.1
+++ README 29 Mar 2010 11:47:39 -0000 1.2
@@ -1,2 +1,35 @@
-jcerti is a Java Binding for the CERTI HLA RTI
+
+jcerti is a Java Binding for the CERTI HLA RTI.
jcerti is SISO DLC compliant.
\ No newline at end of file
+
+
+INSTALL/COMPILING INSTRUCTION
+-----------------------------
+jcerti comes with a build.xml ant file
+(see http://ant.apache.org/manual/)
+
+Thus building jcerti should be as simple as unpacking the source
+and calling
+"ant"
+
+with no argument.
+
+If you want more help about possible ant target just type
+"ant -p"
+
+
+RUNNING TEST INSTRUCTION
+-------------------------
+Before running jcerti example yuo should have C++ CERTI installed
+http://www.nongnu.org/certi/certi_doc/Install/html/index.html
+
+(or if you are a CERTI C++ developer you can just define
+ CERTI_HOST and CERTI_HOME env variables and update PATH in order to make
rtia/rtig executable automatically reachable)
+
+Shipped with jcerti there is currently a small UAV Send/Receive test.
+If you want to try this you should:
+
+1) in a first terminal run rtig
+2) in a second terminal run "ant UAVSend-run"
+3) in a second terminal run "ant UAVReceive-run"
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [certi-cvs] jcerti build.xml TODO README,
certi-cvs <=