|
Message
From: cvs at opencores.org<cvs@o...>
Date: Thu Nov 29 16:40:52 CET 2007
Subject: [cvs-checkins] MODIFIED: jop ...
Date: 00/07/11 29:16:40 Modified: jop/java/tools build.xml Log: Added one more test target to the build file. Changed one target to behave better in case of a failure. Targets changed: 349: <target name="PacketPrinter" depends="copyJDWPLogs,lib" - Changed order of commands so if this target fails it's easy to know how to check the failure reason. 489: <target name="TestJopServer" depends="compile, lib" - Refactored to use a new macrodef, which is shared with another target. Targets created: 495: <target name="TestJopServerInteractively" depends="compile, lib" Macros created: 501: <macrodef name="launchTestJopServer"> Revision Changes Path 1.7 jop/java/tools/build.xml http://www.opencores.org/cvsweb.shtml/jop/java/tools/build.xml.diff?r1=1.6&r2=1.7 (In the diff below, changes in quantity of whitespace are not shown.) Index: build.xml =================================================================== RCS file: /cvsroot/paulo/jop/java/tools/build.xml,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- build.xml 6 Nov 2007 16:24:04 -0000 1.6 +++ build.xml 29 Nov 2007 15:40:52 -0000 1.7 @@ -349,6 +349,14 @@ <target name="PacketPrinter" depends="copyJDWPLogs,lib" description="Print the packet list on the files provided." > + <echo> + Will create output file: ${dumpFile}. + To inspect the content, use a text editor or "less" as mentioned below: + (may not work under Cygwin due to the path format) + + less ${dumpFile} + </echo> + <java classname="com.jopdesign.debug.jdwp.util.PacketPrinter" failonerror="true" @@ -362,14 +370,6 @@ <jvmarg line = "-Xprof"/> --> </java> - <echo> - Created output file: ${dumpFile}. - To inspect the content, use a text editor or "less" as mentioned below: - (may not work under Cygwin due to the path format) - - less ${dumpFile} - </echo> - </target> <target name="PacketLogger" depends="compile" @@ -489,12 +489,34 @@ <target name="TestJopServer" depends="compile, lib" description="Run TestJopServer, to test the JopDebugKernel through the network." > + <launchTestJopServer symbolFile="${jop_symbol_file}" secondParameter=""/> + </target> + + <target name="TestJopServerInteractively" depends="compile, lib" + description="Run TestJopServer, to test the JopDebugKernel + through the network in an interactive way." > + <launchTestJopServer symbolFile="${jop_symbol_file}" secondParameter="-i"/> + </target> + + <macrodef name="launchTestJopServer"> + <attribute name="symbolFile"/>
+ <attribute name="secondParameter"/>
+ <!--
+ Setting fork="false" may make it run faster since Ant will not
+ launch a new JVM. But fork="true" is necessary in order to
+ debug it through the network, using the commented
+ jvmarg line.
+ By the way, in case the "dir" argument is necessary,
+ the fork="true" flag is needed too.
+ -->
+ <sequential>
<echo>
Run TestJopServer, to test the JopServer and JopDebugKernel
through the network.
Please make sure the JopServer was launched before.
</echo>
+
<java
classname="com.jopdesign.debug.jdwp.test.TestJopServer"
fork="true"
@@ -502,15 +524,15 @@
dir="${build}"
classpathref="project.class.path"
>
- <arg line="${jop_symbol_file}"/>
-
+ <arg line="@{symbolFile} @{secondParameter}"/>
<!--
<jvmarg line = "${debugSettings_8001}"/>
-->
</java>
- </target>
+ </sequential>
+ </macrodef>
<target name="TestSymbols" depends="lib, copySymbols"
description="Run TestSymbols, to test loading of a symbol file." >
|
 |