[Webtest] adding jars to ant lib

Conor MacMahon Conor MacMahon" <Conor.MacMahon@qsa.qld.edu.au
Wed, 6 Aug 2008 09:24:32 +1000


This is a multi-part message in MIME format.

------_=_NextPart_001_01C8F752.6AA92CDB
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi Ruel,
           I think we got around that issue here, by making sure the ant
process did that copy for us...so, before you even call the webtest, ant
would have copied those dependant jars to the %ANT_HOME%/lib folder. Not
too pretty, but it's still better than doing it manually.
           We now call the ant webtest task from within maven2, so
webtest picks up those jar references from the maven.test.classpath. So
yeah, just two ways to maybe get around that manual step?
Hope that helps Ruel,
Conor

________________________________

From: webtest-admin@lists.canoo.com
[mailto:webtest-admin@lists.canoo.com] On Behalf Of Loehr, Ruel
Sent: Wednesday, 6 August 2008 1:17 AM
To: webtest@lists.canoo.com
Subject: [Webtest] adding jars to ant lib



We have a number of jars that we need to have in our ant/lib folder in
order for our webtests to run.

 

Examples include commons-logging, bsf.jar, js-1.6R7.jar.

 

I hate this as anytime a new employee comes up we have to fiddle with
remember what jars need to be placed in their ant lib dir in order for
it to work.

I'm a die hard believer in check out from SCM and just run.

 

Anyone have any tricks for getting these jars included on the classpath
dynamically? 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email (including any attached files) is for the intended 
recipient(s) only. If you received this email by mistake, please, 
as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily 
reflect those of the Queensland Studies Authority. All reasonable 
precautions have been taken to ensure that this email contained no 
viruses at the time it was sent.
 

------_=_NextPart_001_01C8F752.6AA92CDB
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<HTML xmlns:eXclaimer=3D"http://www.exclaimer.co.uk">
<HEAD>
<META http-equiv=3D"Content-Type" content=3D"text/html; =
charset=3DUTF-16">

<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.6000.16608" name=3DGENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in =
1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
	COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD><BODY lang=3DEN-US vLink=3Dpurple link=3Dblue><DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D548414922-05082008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Hi Ruel,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D548414922-05082008><FONT =
face=3DArial=20
color=3D#0000ff=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I =
think we=20
got around that issue here, by making sure the ant process did that copy =
for=20
us...so, before you even call the webtest, ant would have copied those =
dependant=20
jars to the %ANT_HOME%/lib folder. Not too pretty, but it's still better =
than=20
doing it manually.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D548414922-05082008><FONT =
face=3DArial=20
color=3D#0000ff=20
size=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;We now=20
call the ant webtest task from within maven2, so webtest picks up those =
jar=20
references from the maven.test.classpath. So yeah, just two ways to =
maybe get=20
around that manual step?</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D548414922-05082008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Hope that helps Ruel,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D548414922-05082008><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Conor</FONT></SPAN></DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> webtest-admin@lists.canoo.com=20
[mailto:webtest-admin@lists.canoo.com] <B>On Behalf Of </B>Loehr,=20
Ruel<BR><B>Sent:</B> Wednesday, 6 August 2008 1:17 AM<BR><B>To:</B>=20
webtest@lists.canoo.com<BR><B>Subject:</B> [Webtest] adding jars to ant=20
lib<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">We have a number of jars =
that we=20
need to have in our ant/lib folder in order for our webtests to=20
run.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Examples include =
commons-logging,=20
bsf.jar, js-1.6R7.jar.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I hate this as anytime a =
new=20
employee comes up we have to fiddle with remember what jars need to be =
placed in=20
their ant lib dir in order for it to work.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">I&#8217;m a die hard =
believer in check out=20
from SCM and just run.<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial">Anyone have any tricks for =
getting=20
these jars included on the classpath=20
dynamically?<o:p></o:p></SPAN></FONT></P></DIV></DIV>
<PRE>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This email (including any attached files) is for the intended=20
recipient(s) only. If you received this email by mistake, please,=20
as a courtesy, tell the sender, then delete this email.

The views and opinions are the originator's and do not necessarily=20
reflect those of the Queensland Studies Authority. All reasonable=20
precautions have been taken to ensure that this email contained no=20
viruses at the time it was sent.
</PRE></BODY></HTML>

------_=_NextPart_001_01C8F752.6AA92CDB--