How not to compile files under test (junit) in Eclipse using Ant build -




i using ant compile eclipse project. reads src folder description .classpath file (atleast assume so) because, in ant build script compiles files src (hence decided should pick .classpath). following entries in .classpath file make junit test compile through ant. how avoid junit test files , compiles src java files when compiled through ant build process.

<?xml version="1.0" encoding="utf-8"?> <classpath>     <classpathentry kind="src" output="target/classes" path="src/main/java">         <attributes>             <attribute name="optional" value="true"/>             <attribute name="maven.pomderived" value="true"/>         </attributes>     </classpathentry>     <classpathentry kind="src" output="target/test-classes" path="src/test/java">         <attributes>             <attribute name="optional" value="true"/>             <attribute name="maven.pomderived" value="true"/>         </attributes>     </classpathentry>     <classpathentry kind="con" path="org.eclipse.jdt.launching.jre_container/org.eclipse.jdt.internal.debug.ui.launcher.standardvmtype/j2se-1.5">         <attributes>             <attribute name="maven.pomderived" value="true"/>         </attributes>     </classpathentry> 





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -