Hi Steve,
I observed it with ant -v (after adding that path refid part), This is the
final part of that output.
After displaying lot of classpaths, it shows this:-
[junit] 'org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner'
[junit] 'test.WMRound3Compound1InteropTest'
[junit] 'filtertrace=true'
[junit] 'haltOnError=false'
[junit] 'haltOnFailure=false'
[junit]
'formatter=org.apache.tools.ant.taskdefs.optional.junit.SummaryJUnit
ResultFormatter'
[junit] 'showoutput=true'
[junit]
'formatter=org.apache.tools.ant.taskdefs.optional.junit.BriefJUnitRe
sultFormatter'
[junit]
'propsfile=E:\SVN2\modules\integration\junit1890876006.properties'
[junit]
[junit] The ' characters around the executable and arguments are
[junit] not part of the command.
[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
[junit] Test test.WMRound3Compound1InteropTest FAILED
BUILD FAILED
E:\SVN2\modules\integration\build.xml:174: if=tests.failed
at org.apache.tools.ant.taskdefs.Exit.execute(Exit.java:139)
at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at
org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Total time: 1 minute 7 seconds
E:\SVN2\modules\integration>
I couldn't figure out the error via this.
if you need more information on this, You are always welcome.
Thanks
Gayan Asanka
-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 21, 2005 6:44 PM
To: Ant Users List
Subject: Re: FW: problem with using fork in windows xp
Gayan Asanka wrote:
> Hi Steve,
>
> I solved the problem. It was a classpath problem anyway. It seems that I
> can't use <path refid="..."/> to define the calsspath inside junit if I
use
> fork. That is why it shows me the help (I think). Basicaly I redefined my
> path inside junit and it worked.
wierd. I know classpathref does work, and I would expect it to work inline.
If you revert to the old style, and run with -verbose (I as have asked,
repeatedly :), you will see the full command line sent in. this will
show you what has gone wrong with the classpath value.
>
> <target name="run-1" depends="compile-1,compile-client1">
>
> <junit fork="true" printsummary="on" haltonfailure="no"
> failureproperty="tests.failed" showoutput="true">
> <!--<classpath refid="interop.path1"/>--> this is what I can't
use
> <classpath>
> <pathelement path="${dir.classes1}"/>
> <path>
> <fileset dir="./lib">
> <include name="*.jar"/>
> </fileset>
> </path>
> </classpath>
> <!-- <jvmarg pathref="interop.path1"></jvmarg>-->
> <formatter type="brief" usefile="false"/>
> <batchtest>
> <fileset dir="${dir.clients}">
> <include
> name="**/**/WMRound3Compound1InteropTest.java"/>
> </fileset>
> </batchtest>
> </junit>
> <fail if="tests.failed"/>
> </target>
>
> Hope to hear what you think of it.
> Thank you very much for precious time spent on me.
>
> Bye for now.
>
> Thanks,
> Gayan Asanka
>
> -----Original Message-----
> From: Steve Loughran [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 21, 2005 2:55 PM
> To: Ant Users List
> Subject: Re: FW: problem with using fork in windows xp
>
> Gayan Asanka wrote:
>
>>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
>
>
> no, you need to run ant with the -verbose option
>
> E:\SVN2\modules\integration>ant -verbose
>
> or
>
> ant -v
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]