Hi Ratha, fork=true is used to compile the specified source file(s) within another VM. This will help to avoid running out of Java heap space in the VM where ant is running.
regards, Ruchira On Wed, Sep 1, 2010 at 10:08 PM, ratha <[email protected]> wrote: > Hi all, > Why do we define "fork=true" in pom.xml when when we generate stubs(java > classname="org.apache.axis2.wsdl.WSDL2Java" fork="true")? > This cause errors[1] sometimes in windows environment. When I change > fork=false i'm able to build success.. > Thanks. > -Ratha. > > [1] > [INFO] [antrun:run {execution: source-code-generation}] > [INFO] Executing tasks > [java] java.io.IOException: Cannot run program "C:\Program > Files\Java\jdk1. > 6.0\jre\bin\java.exe": CreateProcess error=87, The parameter is incorrect > [java] at org.apache.tools.ant.taskdefs.Java.fork(Java.java:758) > [java] at > org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:171) > > [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:84) > [java] at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.ja > va:275) > [java] at org.apache.tools.ant.Task.perform(Task.java:364) > [java] at org.apache.tools.ant.Target.execute(Target.java:341) > > _______________________________________________ > Carbon-dev mailing list > [email protected] > https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >
_______________________________________________ Carbon-dev mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
