0

私は ant からアプリを起動しますが、コマンド cmd command line を介して起動したとき。
フォアグラウンドで実行されたばかりで、次のターゲットに進みません。
アプリを実行してから、ant を介して junit タスクでテストするにはどうすればよいですか?

<target name="init" depends="compile,run,test" description="init build ">
</target>

<target name="compile" depends="build_dirs"
        description="compile the source " >
    <javac srcdir="${src}" destdir="${build}" verbose="${TALK}" includeantruntime="false" >

        <classpath refid="class.path" />
    </javac>    
  </target>


<target name="run">

        <java classname="${main-class}" fork="true">    
            <env key="LD_LIBRARY_PATH" value="${libs_java_library_path}:${env.LD_LIBRARY_PATH}"/>       

             <classpath>                
               <pathelement location="../lib/misc/log4j.jar"/>             
               <pathelement path="conf"/>
               <pathelement path="dist/lib"/>
             </classpath>             
        </java>
</target>


<target name="test"  >
    <junit printsummary="no" showoutput="true">
      <classpath refid="test.classpath"/>      
      <formatter type="brief" usefile="false" />
      <test name="com.controller.core.workflowShouldHaveValidXML" />          
    </junit>
  </target>

テスト ターゲットが実行されませんでした。なぜですか?

4

0 に答える 0