ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gayan Asanka" <ga...@opensource.lk>
Subject RE: FW: problem with using fork in windows xp
Date Wed, 21 Sep 2005 04:11:11 GMT
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:stevel@apache.org] 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message