Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » cannot find plugin error when running headless ant
cannot find plugin error when running headless ant [message #373119] Wed, 29 July 2009 13:03 Go to next message
lalitha Missing name is currently offline lalitha Missing nameFriend
Messages: 29
Registered: July 2009
Junior Member
I am created the sample test plugin and exported it and dropped it on to
eclipse's plugin directory. when i run my build.xml it gives me plugin not
found error. If I modify the build.xml to take some other existing plugin
is finds it.
What am i doing wrong?

Here is my build.xml

<?xml version="1.0" encoding="UTF-8" ?>

<project name="testsuit" default="run" basedir=".">
<property name="eclipse-home"
value="d:/eclipse4.1_swtbot/eclipse-3.4.1/eclipse" />
<property name="plugin-name" value="org.dmissoh.rcp.mail.test" />
<property name="test-classname" value="RcpMailTestCase" />
<property name="library-file"
value=" ${eclipse-home}/plugins/org.eclipse.swtbot.eclipse.junit4.he adless_2.0.0.371-dev-e34/library.xml "
/>

<target name="suite">

<property name="jvmOption" value=""></property>
<property name="temp-workspace" value="workspaceJuly23" />
<delete dir="${temp-workspace}" quiet="false" />

<ant target="swtbot-test" antfile="${library-file}" dir="${eclipse-home}">
<property name="data-dir" value="${temp-workspace}" />
<property name="plugin-name" value="${plugin-name}" />
<property name="os" value="win32" />
<property name="ws" value="win32" />
<property name="arch" value="x86" />
<property name="classname" value="${test-classname}" />
<property name="vmargs" value="-Xms128M -XX:MaxPermSize=512m -Xmx512M" />
<property name="product" value="org.dmissoh.rcp.mail.product" />

</ant>
</target>

<target name="cleanup" />

<target name="run" depends="suite,cleanup">
</target>

</project>

The following is the error:*******************


D:\swtbot>ant
Buildfile: build.xml

suite:

init:

swtbot-test:

java-test:
[echo] Running RcpMailTestCase. Result file:
d:/eclipse4.1_swtbot/eclipse-3
4.1/eclipse/results/RcpMailTestCase.xml.
[java] java.lang.Exception: Could not find plugin
"org.dmissoh.rcp.mail.tes
t"
[java] at
org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .
loadSuiteClass(EclipseTestRunner.java:303)
[java] at
org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .
getTest(EclipseTestRunner.java:239)
[java] at
org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .
<init>(EclipseTestRunner.java:222)
[java] at
org.eclipse.swtbot.eclipse.junit4.headless.EclipseTestRunner .
run(EclipseTestRunner.java:206)
[java] at
org.eclipse.swtbot.eclipse.junit4.headless.UITestApplication .
runTests(UITestApplication.java:115)
[java] at
org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(Work b
enchTestable.java:68)
[java] at java.lang.Thread.run(Thread.java:595)

collect-results:
[style] Warning: the task name <style> is deprecated. Use <xslt>
instead.
[style] Transforming into
d:\eclipse4.1_swtbot\eclipse-3.4.1\eclipse\results



Regards,

L.
Re: cannot find plugin error when running headless ant [message #373854 is a reply to message #373119] Wed, 29 July 2009 15:48 Go to previous messageGo to next message
Derek  is currently offline Derek Friend
Messages: 30
Registered: July 2009
Member
lalitha wrote:

> <project name="testsuit" default="run" basedir=".">

Your build.xml looks nearly the same as mine does.

Only difference I see is that my project name is "testsuite" instead of
what you have "testsuit"
Re: cannot find plugin error when running headless ant [message #374683 is a reply to message #373119] Wed, 29 July 2009 16:57 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 29/7/09 18:33, lalitha wrote:

> <property name="data-dir" value="${temp-workspace}" />
> <property name="plugin-name" value="${plugin-name}" />
> <property name="os" value="win32" />
> <property name="ws" value="win32" />
> <property name="arch" value="x86" />
> <property name="classname" value="${test-classname}" />
> <property name="vmargs" value="-Xms128M -XX:MaxPermSize=512m -Xmx512M" />
> <property name="product" value="org.dmissoh.rcp.mail.product" />

The arguments are incorrect, the product property should be
"testProduct". See the target "java-test" in library.xml for the other
properties that you may use.

Also the file ${test-classname}.txt will contain the console output of
the execution that you may use for diagnosis. I suspect it's a
misconfigured property or a missing dependency or something similar.

> [java] java.lang.Exception: Could not find plugin "org.dmissoh.rcp.mail.tes
> t"

Seems your installation does not contain the test plugin (or one of its
dependencies).


--
Ketan
http://studios.thoughtworks.com/twist | http://twitter.com/ketanpkr
Re: cannot find plugin error when running headless ant [message #430028 is a reply to message #374683] Thu, 30 July 2009 15:10 Go to previous message
lalitha Missing name is currently offline lalitha Missing nameFriend
Messages: 29
Registered: July 2009
Junior Member
I finally figured out the reason why the ant script could not find the
plugin.

I created the plugin using jre 1.6 and was executing using jre 1.5 as
JAVA_HOME on my machine was set to jre 1.5. Mixing of jre versions does
not work.

So create and execute the plugin using the same version.

Regards,

L.
Previous Topic:example for modifying a preference setting
Next Topic:eclipse perspective changes C to Java
Goto Forum:
  


Current Time: Fri Apr 26 14:28:24 GMT 2024

Powered by FUDForum. Page generated in 0.03538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top