java - ant run app , the command dosnt get forked -
i start app ant , when started via command cmd command line . got running in foreground , doesn't go on next target. how can execute app , test junit task via ant ?
<target name="init" depends="compile,run,test" description="init build "> </target> <target name="compile" depends="build_dirs" description="compile 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>
the test target never executed , why ?
java ant
No comments:
Post a Comment