JUnit / Ant 1.8

shawn smith <[email protected]> Thu, 14 Jul 2011 13:39:16 -0400
Newsgroups gmane.comp.java.junit.devel
Message-ID <[email protected]>
--===============7902280983251619088==
Content-Type: multipart/alternative;
	boundary="_6f22f860-b3e1-4eff-8161-3b6a8e53aa4f_"

--_6f22f860-b3e1-4eff-8161-3b6a8e53aa4f_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


I am trying to get Junit 4 to run with Ant 1.8. I keep getting the same gen=
eric message when I run the build. "Could not create task or type of type :=
 junit" I have my class path set up to access the junit jars. Anyone had si=
milar error?

.......


<!-- JUnit properties -->

 <property name=3D"lib" value=3D"C:\workspaces\ABADSLocalBuild\ProjectSourc=
e\source\published\classes" />=20


<!-- Define the classpath which includes the junit.jar and the classes afte=
r compilling -->
     <path id=3D"junit.class.path">           =20
        <fileset dir=3D"${lib}">
            <include name=3D"**\*.jar" />
        </fileset>   =20
    </path>=20

<target name=3D"test" depends=3D"package_web">
    <junit>
        <classpath refid=3D"junit.class.path" />
        <formatter type=3D"plain" usefile=3D"false" />
        <test name=3D"C:\workspaces\ABADSLocalBuild\ProjectSource\source\ja=
va\build\xyzjunWeb\com\highmark\xyzjun\test\SampleServletTest" />
    </junit>
</target>

........  =20

Greg
 		 	   		  =

--_6f22f860-b3e1-4eff-8161-3b6a8e53aa4f_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style><!--
.hmmessage P
{
margin:0px=3B
padding:0px
}
body.hmmessage
{
font-size: 10pt=3B
font-family:Tahoma
}
--></style>
</head>
<body class=3D'hmmessage'><div dir=3D'ltr'>
I am trying to get Junit 4 to run with Ant 1.8. I keep getting the same gen=
eric message when I run the build. "Could not create task or type of type :=
 junit" I have my class path set up to access the junit jars. Anyone had si=
milar error?<br><br>.......<br><br><br>&lt=3B!-- JUnit properties --&gt=3B<=
br><br>&nbsp=3B&lt=3Bproperty name=3D"lib" value=3D"C:\workspaces\ABADSLoca=
lBuild\ProjectSource\source\published\classes" /&gt=3B <br><br><br>&lt=3B!-=
- Define the classpath which includes the junit.jar and the classes after c=
ompilling --&gt=3B<br>&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&lt=3Bpath id=3D"jun=
it.class.path"&gt=3B&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=3B &nbsp=
=3B&nbsp=3B&nbsp=3B <br>&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=3B &=
lt=3Bfileset dir=3D"${lib}"&gt=3B<br>&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=
=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=3B &lt=3Binclude name=3D"**\*.jar" /&gt=
=3B<br>&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=3B &lt=3B/fileset&gt=
=3B&nbsp=3B&nbsp=3B&nbsp=3B <br>&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B/path&gt=3B =
<br><br>&lt=3Btarget name=3D"test" depends=3D"package_web"&gt=3B<br>&nbsp=
=3B&nbsp=3B&nbsp=3B &lt=3Bjunit&gt=3B<br>&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&=
nbsp=3B&nbsp=3B &lt=3Bclasspath refid=3D"junit.class.path" /&gt=3B<br>&nbsp=
=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbsp=3B &lt=3Bformatter type=3D"plain"=
 usefile=3D"false" /&gt=3B<br>&nbsp=3B&nbsp=3B&nbsp=3B &nbsp=3B&nbsp=3B&nbs=
p=3B &lt=3Btest name=3D"C:\workspaces\ABADSLocalBuild\ProjectSource\source\=
java\build\xyzjunWeb\com\highmark\xyzjun\test\SampleServletTest" /&gt=3B<br=
>&nbsp=3B&nbsp=3B&nbsp=3B &lt=3B/junit&gt=3B<br>&lt=3B/target&gt=3B<br><br>=
........ &nbsp=3B <br><br>Greg<br> 		 	   		  </div></body>
</html>=

--_6f22f860-b3e1-4eff-8161-3b6a8e53aa4f_--


--===============7902280983251619088==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
--===============7902280983251619088==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Junit-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/junit-devel

--===============7902280983251619088==--