Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Use a specific autVM with the maven plugin.
Use a specific autVM with the maven plugin. [message #1700778] Tue, 07 July 2015 03:25 Go to next message
Eclipse UserFriend
Hi.

Knows anyone here how I can set a specific Vm for the AUT with the maven plugin?

Re: Use a specific autVM with the maven plugin. [message #1700793 is a reply to message #1700778] Tue, 07 July 2015 05:14 Go to previous messageGo to next message
Eclipse UserFriend
Hi Marcel,

Please use this example:

<aut>
<vmArgs>
<vmArg>-Xmx768m</vmArg>
<vmArg>-XX:MaxPermSize=256m</vmArg>
</vmArgs>
</aut>

Kind regards,
Ulyana.
Re: Use a specific autVM with the maven plugin. [message #1700933 is a reply to message #1700793] Wed, 08 July 2015 05:34 Go to previous messageGo to next message
Eclipse UserFriend
Hi Ulyana,

I already tried this example an it doesn't work.

Kind regards,
Marcel
Re: Use a specific autVM with the maven plugin. [message #1700950 is a reply to message #1700933] Wed, 08 July 2015 07:28 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I think it wasn't about setting VM arguments, but about setting an VM. It should be the Maven counterpart to the command line argument
-autVM <PathToJava>


Best regards
Bastian
Re: Use a specific autVM with the maven plugin. [message #1704083 is a reply to message #1700950] Fri, 07 August 2015 04:41 Go to previous messageGo to next message
Eclipse UserFriend
Hi all,

since I don't have a Maven based solution for this, I wanted to update this topic.

I tried to set the following parameter in my pom:
<aut>
  <args>
    <arg>-autVM  ${JAVA_VM_PATH}</arg>
  </args>
</aut>


This does not work for me. Is that the wrong usage of the parameter?

Best regards and thanks for any kind of help!
Bastian
Re: Use a specific autVM with the maven plugin. [message #1712671 is a reply to message #1704083] Tue, 27 October 2015 08:06 Go to previous messageGo to next message
Eclipse UserFriend
HI,

Did you find any solution for this? I am having the same problem and I need to specify what JVM that should be used.

Best regards
Jonas
Re: Use a specific autVM with the maven plugin. [message #1712765 is a reply to message #1704083] Wed, 28 October 2015 03:43 Go to previous messageGo to next message
Eclipse UserFriend
Hi Bastian,

Could you please try the following way:

<aut>
<args>
<arg>-vm ${JAVA_VM_PATH}</arg>
</args>
</aut>

Kind regards,
Ulyana.
Re: Use a specific autVM with the maven plugin. [message #1715368 is a reply to message #1712765] Sun, 22 November 2015 22:29 Go to previous messageGo to next message
Eclipse UserFriend
Hi Bastian, Marcel,

Any update on this?
Did the solution work?

Kind regards,
Ulyana.
Re: Use a specific autVM with the maven plugin. [message #1715978 is a reply to message #1715368] Sun, 29 November 2015 23:05 Go to previous messageGo to next message
Eclipse UserFriend
I believe it should be:
<aut>
  <vm>.../java.exe</vm>
</aut>
Re: Use a specific autVM with the maven plugin. [message #1719103 is a reply to message #1715978] Tue, 05 January 2016 04:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

have you find solution because I try to do same thing ?

I would like to request a specific VM java for Script RCP TT, like 32bit.



thanks,

jeremie
Re: Use a specific autVM with the maven plugin. [message #1726924 is a reply to message #1719103] Thu, 17 March 2016 09:41 Go to previous messageGo to next message
Eclipse UserFriend
hi,

I didn't find a solution.

Have you find solution ? please.

thanks,

jeremie
Re: Use a specific autVM with the maven plugin. [message #1727259 is a reply to message #1726924] Mon, 21 March 2016 11:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I've looked at code,

<aut>
  <vm>.../java_home</vm>
</aut>


/runner/org.eclipse.rcptt.runner/src/org/eclipse/rcptt/runner/util/AUTsManager.java:getAutVm

Should work fine.
Re: Use a specific autVM with the maven plugin. [message #1727525 is a reply to message #1727259] Wed, 23 March 2016 10:07 Go to previous messageGo to next message
Eclipse UserFriend
hi,

thanks about your answer but I wrote this in my POM.xml

 <aut>
                <!-- Define the AUT identification, based on maven identification -->
                <groupId>com.all4tec</groupId>
                <artifactId>com.all4tec.matelo.rcp</artifactId>
				<classifier>${projet.arch}</classifier>
				<version>${projet.version}</version>
				<args>
					<arg>-data</arg>
					<arg>@noDefault</arg>
					<arg>-Xmx2048m</arg>
                    <arg>-XX:MaxPermSize=2048m</arg>
					<arg>-XX:-UseGCOverheadLimit</arg>
					<arg>-vm  C:\Program Files (x86)\Java\jre1.8.0_45\bin\javaw.exe</arg>
				</args>
				 <!-- Add the Squash feature in the AUT -->
                <!-- The feature name is not given, to ensure all the feature of the repository will be installed.
                    This is mandatory because RCP TT does not make the feature resolution -->
                	<vm>C:\Program Files (x86)\Java\jre1.8.0_45\bin\javaw.exe</vm>
            </aut>



and it's not work , I have this error "AUT-0: Launch failed. Reason: FAIL: AUT requires 32 bit Java VM which cannot be found."

I don't if I understand your answer or if I do something wrong.

jeremie
Re: Use a specific autVM with the maven plugin. [message #1730203 is a reply to message #1700778] Fri, 22 April 2016 06:05 Go to previous message
Eclipse UserFriend
Hi everyone,

I was facing the same problem and I've tried the proposition of Andrey and it works for me (when I finally understand his solution Laughing )

I will try to give you additional information that I needed.
The argument <vm> must be under <aut> and the path is until the jre folder.

So the result, is the following for the description of the AUT.


         <aut>
                <!-- Define the AUT identification, based on maven identification -->
                <groupId>${group}</groupId>
                <artifactId>${artifact}</artifactId>
		<classifier>${projet.classifier}</classifier>
		<version>${projet.version}</version>
		
                <!-- Path to the JVM : C:\Program Files (x86)\Java\jdk1.8.x\jre -->
                <vm>${jvm.path}</vm>
	        <args>
			<arg>-data</arg>
			<arg>@noDefault</arg>
			<arg>-Xmx2048m</arg>
                        <arg>-XX:MaxPermSize=2048m</arg>
			<arg>-XX:-UseGCOverheadLimit</arg>                    
		</args>
         </aut>


I hope this post will be useful !
Previous Topic:Unable to launch the application from RCPTT IDE
Next Topic:Can't add bundle pool based installation as AUT
Goto Forum:
  


Current Time: Tue Jul 08 13:22:14 EDT 2025

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

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

Back to the top