Hi Sanjeewa,

This is not a normal behavior. Test Automation Framework Core is not
depending upon any of ANT tasks. But i do suspect whether TestNg nave
internal tasks based on ANT.
As per the log the solution would be setting ANT_HOME other than that we do
not need to add any jars.

Thank You,
Dharshana.




On Sun, Sep 22, 2013 at 7:39 PM, Vijitha Kumara <[email protected]> wrote:

> Hi Sanjeewa,
>
> Don't we have "ant" globally available in the builder?  Can you check "ant
> version" in builder? I think we should have ant globally anyway?
>
>
> On Sun, Sep 22, 2013 at 6:35 PM, Sanjeewa Malalgoda <[email protected]>wrote:
>
>> Hi Team,
>> I got following error on builder machine while build product(greg) with
>> tests (yesterday). It seems we are trying to execute ant command while
>> running tests. Is this correct behavior? Do we need to install ant in the
>> system or should we use ant jar to run this?
>>
>>
>>
>> [2013-09-22 05:12:10,791]  INFO
>> {org.wso2.carbon.automation.core.PlatformReportManager} -
>>  
>> ----/home/wso2/4.2.0_branch/platform/products/greg/4.6.0/modules/integration/tcks/cmis-tck/target/surefire-reports/GregTestSuite---------
>> [2013-09-22 05:12:10,792]  INFO
>> {org.wso2.carbon.automation.core.PlatformReportManager} -
>>  
>> ----/home/wso2/4.2.0_branch/platform/products/greg/4.6.0/modules/integration/tcks/cmis-tck/target/surefire-reports/GregTestSuite---------
>> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 215.274
>> sec <<< FAILURE!
>> runTckTest(org.wso2.carbon.registry.tck.cmis.CMISTck)  Time elapsed:
>> 0.005 sec  <<< FAILURE!
>>  java.io.IOException: Cannot run program "ant": java.io.IOException:
>> error=2, No such file or directory
>> at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
>>  at java.lang.Runtime.exec(Runtime.java:593)
>> at java.lang.Runtime.exec(Runtime.java:431)
>> at java.lang.Runtime.exec(Runtime.java:328)
>>  at org.wso2.carbon.registry.tck.cmis.CMISTck.runTckTest(CMISTck.java:86)
>> Caused by: java.io.IOException: java.io.IOException: error=2, No such
>> file or directory
>>  at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
>> at java.lang.ProcessImpl.start(ProcessImpl.java:65)
>>  at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
>> ... 37 more
>>
>> [2013-09-22 05:12:11,223]  INFO
>> {org.wso2.carbon.automation.core.utils.serverutils.ServerUtils} -  Shutting
>> down server..
>>
>> Results :
>>
>> Failed tests:   runTckTest(org.wso2.carbon.registry.tck.cmis.CMISTck):
>> Cannot run program "ant": java.io.IOException: error=2, No such file or
>> directory
>>
>> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>>
>>
>> Thanks,
>> sanjeewa.
>> --
>> *
>> *
>> *Sanjeewa Malalgoda*
>> Senior Software Engineer
>> WSO2 Inc.
>> Mobile : +94713068779
>>
>>  <http://sanjeewamalalgoda.blogspot.com/>blog
>> :http://sanjeewamalalgoda.blogspot.com/<http://sanjeewamalalgoda.blogspot.com/>
>>
>>
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
> Vijitha Kumara
> Senior Software Engineer; WSO2, Inc.;  http://wso2.com/
> email: [email protected]
>
>
> Lean . Enterprise . Middleware
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 

Dharshana Warusavitharana
Senior Software Engineer , Test Automation
WSO2 Inc. http://wso2.com
email : [email protected] <[email protected]>
Tel  : +94 11 214 5345
Fax :+94 11 2145300
cell : +94772202595
blog : http://dharshanaw.blogspot.com

lean . enterprise . middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to