Hi Steve,

For your convenience I hoped attach my build.xml to this mail. If you don't
mind I can send my other resources too as you can regenerate this error (if
you can find a win xp os). This is the output I see.

E:\SVN2\modules\integration>ant
Buildfile: build.xml

prepare:

    [mkdir] Created dir: E:\SVN2\modules\integration\doclit-interop\classes1
    [mkdir] Created dir: E:\SVN2\modules\integration\doclit-interop\classes2
    [mkdir] Created dir: E:\SVN2\modules\integration\doclit-interop\src1
    [mkdir] Created dir: E:\SVN2\modules\integration\doclit-interop\src2

gen-1:
     [move] Moving 402 files to
E:\SVN2\modules\integration\doclit-interop\class
es1
   [delete] Deleted 36 directories from
E:\SVN2\modules\integration\doclit-inter
op\src1\schema

compile-1:
    [javac] Compiling 221 source files to
E:\SVN2\modules\integration\doclit-int
erop\classes1

compile-stub1:
    [javac] Compiling 4 source files to
E:\SVN2\modules\integration\doclit-inter
op\classes1

run-1:
    [junit] Running test.Round3DocLitInteropTest
    [junit] Usage: java [-options] class [args...]
    [junit]            (to execute a class)
    [junit]    or  java [-options] -jar jarfile [args...]
    [junit]            (to execute a jar file)

    [junit] where options include:
    [junit]     -client   to select the "client" VM
    [junit]     -server   to select the "server" VM
    [junit]     -hotspot          is a synonym for the "client" VM
[deprecated]

    [junit]                   The default VM is client.

    [junit]     -cp <class search path of directories and zip/jar files>
    [junit]     -classpath <class search path of directories and zip/jar
files>
    [junit]                   A ; separated list of directories, JAR
archives,
    [junit]                   and ZIP archives to search for class files.
    [junit]     -D<name>=<value>
    [junit]                   set a system property
    [junit]     -verbose[:class|gc|jni]
    [junit]                   enable verbose output
    [junit]     -version      print product version and exit
    [junit]     -version:<value>
    [junit]                   require the specified version to run
    [junit]     -showversion  print product version and continue
    [junit]     -jre-restrict-search | -jre-no-restrict-search
    [junit]                   include/exclude user private JREs in the
version s
earch
    [junit]     -? -help      print this help message
    [junit]     -X            print help on non-standard options
    [junit]     -ea[:<packagename>...|:<classname>]
    [junit]     -enableassertions[:<packagename>...|:<classname>]
    [junit]                   enable assertions
    [junit]     -da[:<packagename>...|:<classname>]
    [junit]     -disableassertions[:<packagename>...|:<classname>]
    [junit]                   disable assertions
    [junit]     -esa | -enablesystemassertions
    [junit]                   enable system assertions
    [junit]     -dsa | -disablesystemassertions
    [junit]                   disable system assertions

BUILD FAILED
E:\SVN2\modules\integration\build.xml:132: Test test.Round3DocLitInteropTest
failed

Total time: 36 seconds
E:\SVN2\modules\integration> 

-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 20, 2005 8:33 PM
To: Ant Users List
Subject: Re: FW: problem with using fork in windows xp

Gayan Asanka wrote:
> Hi steve,
> 
> Nop, it compiles well. You can see if observe my output (also I tried ant
> -v, everything is in the classpath).
> 
> I am getting a runtime exception if only I set fork="no", that is both in
> linux and windows. But it runs in linux when fork="true". So I need a way
to
> run it in windows xp with fork="yes". 

well, it ought to, unless the commands to java are getting screwed up.

> Since it shows me the help for java commands when I set fork="true" in win
> xp, I think I have to set jvmargs to set the "java" command again (because
> fork="true" overrides junit values), if I set fork="true",  am I right? If
> so how can I set jvmargs? If I am wrong, still need your help. :)

no, you need to look at the detailed jvm args and paste it in to your 
next mail.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

<?xml version="1.0"?>
<project name="interop-doclit" default="run" basedir=".">
	<description>
        Interop tests for doc-lit, code generated samples
    </description>
	<property name="dir.doclit" value="doclit-interop"/>
	<property name="dir.src1" value="${dir.doclit}/src1"/>
	<property name="dir.src2" value="${dir.doclit}/src2"/>
	<property name="dir.clients" value="${dir.doclit}/clients"/>
	<property name="dir.classes1" value="${dir.doclit}/classes1"/>
	<property name="dir.classes2" value="${dir.doclit}/classes2"/>
	<!--<property environment="env"/>-->
	<!--<property name="dir.home" value="${env.HOME}"/>-->
	<!-- preparing paths -->
	<target name="prepare">
		<mkdir dir="${dir.classes1}"/>
		<mkdir dir="${dir.classes2}"/>
		<mkdir dir="${dir.src1}"/>
		<mkdir dir="${dir.src2}"/>
	</target>
	<!--<path id="jarpath.axis2">-->
	<!--<fileset dir="${dir.home}/.maven/repository">-->
	<!--<include name="**/**/*.jar"/>-->
	<!--</fileset>-->
	<!--</path>-->
	
	<!-- Allthe required jars here -->
	<path id="jarpath.axis2">
		<fileset dir="./lib">
			<include name="*.jar"/>
		</fileset>
	</path>
	
	<!-- This is where the classes are located for run-1-->
	<path id="interop.path1">
		<path refid="classpath.interop1"/>
		<path refid="jarpath.axis2"/>
	</path>
	
	<!-- This is where the classes are located for run-2>-->
	<path id="interop.path2">
		<path refid="classpath.interop2"/>
		<path refid="jarpath.axis2"/>
	</path>

	<target name="clean">
		<delete dir="${dir.classes1}"/>
		<delete dir="${dir.classes2}"/>
		<delete dir="${dir.src1}"/>
		<delete dir="${dir.src2}"/>
	</target>

	<target name="gen-1">
		<!-- generating the first file src1 files-->
		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"><!-- this fork process work fine-->
			<classpath refid="jarpath.axis2"/>
			<arg value="-uri"/>
			<arg file="./resources/compound1.wsdl"/>
			<!-- place the file name-->
			<arg value="-sd"/>
			<arg value="-o"/>
			<arg file="${dir.src1}"/>
			<!--place the working dir -->
			<arg value="-p"/>
			<arg value="test.stub"/>
			<!-- make this unique -->
		</java>
		
		<!-- Move the schema folder to classpath-->
		<move todir="${dir.classes1}">
			<fileset dir="${dir.src1}">
				<include name="**/schema/**/*.class"/>
				<include name="**/schema/**/*.xsb"/>
			</fileset>
		</move>
		
		<!-- generating the second file-->
		<java classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> <!-- this fork process work fine-->
			<classpath refid="jarpath.axis2"/>
			<arg value="-uri"/>
			<arg file="./resources/compound2.wsdl"/>
			<!-- place the file name-->
			<arg value="-sd"/>
			<arg value="-o"/>
			<arg file="${dir.src2}"/>
			<!--place the working dir -->
			<arg value="-p"/>
			<arg value="test.stub"/>
			<!-- make this unique -->
		</java>		
		
		<!-- Move the schema folder to classpath-->
		<move todir="${dir.classes2}">
			<fileset dir="${dir.src2}">
				<include name="**/schema/**/*.class"/>
				<include name="**/schema/**/*.xsb"/>
			</fileset>
		</move>
	</target>
	
	<!--adding the gen-1's schema foloder and classes the class path -->
	<path id="classpath.interop1">
		<pathelement path="${dir.classes1}"/>
		<fileset dir="${dir.classes1}">
			<include name="**/*.*"/>
		</fileset>
	</path>
	
	<!--adding the gen-2's schema foloder and classes the class path -->
	<path id="classpath.interop2">
		<pathelement path="${dir.classes2}"/>
		<fileset dir="${dir.classes2}">
			<include name="**/*.*"/>
		</fileset>
	</path>
	
	<!-- compiling the first source generated from gen-1 to be used in run-1-->
	<target name="compile-1" depends="prepare,gen-1">
		<javac srcdir="${dir.src1}" destdir="${dir.classes1}">
			<classpath refid="interop.path1"/>
		</javac>
	</target>
	
	<!--compiling the first source generated from gen-2  to be used in run-2-->
	<target name="compile-2" depends="compile-1">
		<javac srcdir="${dir.src2}" destdir="${dir.classes2}">
			<classpath refid="interop.path2"/>
		</javac>
	</target>
	
	<!-- compiling the test case1 to be used in run-1-->
	<target name="compile-stub1">
		<javac srcdir="${dir.clients}" destdir="${dir.classes1}">
			<include name="**/WMRound3Compound1InteropTest.java"/>
			<classpath refid="interop.path1"/>
		</javac>
	</target>
	
	<!-- compiling the test case2 to be used in run-2-->
	<target name="compile-stub2">
		<javac srcdir="${dir.clients}" destdir="${dir.classes2}">
			<include name="**/WMRound3Compound2InteropTest.java"/>
			<classpath refid="interop.path2"/>
		</javac>
	</target>
	
	<!-- runing first test case -->
	<target name="run-1" depends="compile-1,compile-stub1">
		<junit fork="yes" printsummary="on" haltonfailure="false" failureproperty="tests.failed" showoutput="true">
			<classpath refid="interop.path1"/>
			<formatter type="brief" usefile="false"/>
			<batchtest>
				<fileset dir="${dir.clients}">
					<include name="**/WMRound3Compound1InteropTest.java"/>
				</fileset>
			</batchtest>
		</junit>
		<fail if="tests.failed"/>
	</target>
	
	<!-- runing second test case -->
	<target name="run-2" depends="compile-2,compile-stub2">
		<junit fork="yes" printsummary="off"  haltonfailure="false" failureproperty="tests.failed" showoutput="true">
			<classpath refid="interop.path2"/>
			<formatter type="brief" usefile="false"/>
			<batchtest>
				<fileset dir="${dir.clients}">
					<include name="**/WMRound3Compound2InteropTest.java"/>
				</fileset>
			</batchtest>
		</junit>
		<fail if="tests.failed"/>
	</target>
	
	<!-- dummy default target to run the sequence-->
	<target name="run" depends="run-1,run-2,clean"/>
	
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to