2012-08-22 2 views
0

ant 태스크를 사용하여 셀렌 스크립트를 실행 중입니다. 명령 프롬프트를 사용하여 잘 작동하고 있지만, 개미 작업에서 작동하지 않습니다. 어떻게 해결할 수 있습니까?속성 파일 (FileNotfoundException)을 찾을 수 없습니다.

<testcase classname="junit.framework.TestSuite" name="com.openbravo.test.integration.erp.testsuites.regression.MRC0000_Logging" time="0.0010"> 
    <error message="config/OpenbravoERPTest.properties (No such file or directory)" type="java.io.FileNotFoundException">java.io.FileNotFoundException: config/OpenbravoERPTest.properties (No such file or directory) 
    at java.io.FileInputStream.open(Native Method) 
    at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:120) 
    at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:79) 
at com.openbravo.test.integration.erp.testscripts.OpenbravoERPTest.loadProperties(OpenbravoERPTest.java:117) 
at com.openbravo.test.integration.erp.testscripts.OpenbravoERPTest.setUpBeforeClass(OpenbravoERPTest.java:105) 
at org.eclipse.ant.internal.launching.remote.EclipseSingleCheckExecutor.executeTargets(EclipseSingleCheckExecutor.java:30) 
at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) 
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:424) 
at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:138) 
</error> 
</testcase> 
<system-out><![CDATA[asd 
]]></system-out> 
<system-err><![CDATA[]]></system-err> 
</testsuite> 

답변

0

config 디렉토리가있는 디렉토리가 클래스 경로에 있는지 확인하십시오.

0

경로 이름은 상대적이다 : 당신은 당신이 바로 그 디렉토리에 명령 줄에서 스크립트를 실행하고 있는지 확인 config/OpenbravoERPTest.properties

있습니까?

+0

기본 디렉토리에만 있습니다 .. 사용중인 개미 작업을하고 있습니다 .. – Chikku

관련 문제