<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to get a project's ivy version?</title><link>https://answers.axonivy.com/questions/1186/how-to-get-a-project-s-ivy-version</link><description>&lt;p&gt;I would like to compare a project's ivy version to ivy engine's version. Are there any API-s which support it?&lt;br&gt;&lt;br&gt;
Thank you&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/1186/how-to-get-a-project-s-ivy-version" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 04 Mar 2015 16:53:49 -0500</lastBuildDate><item><title>Answer by Tamas KIS</title><link>https://answers.axonivy.com/questions/1186/how-to-get-a-project-s-ivy-version/1199</link><description>&lt;p&gt;The answer of HaraldWeber is basically good. The version of the current trunk is wrong yet, it will set just before the release. It's to be decided which will be the final version number (5.2 or 6.0)&lt;/p&gt;
&lt;p&gt;&lt;code&gt;tip: you may navigate from iProject to ivyProject also: 
ivyProject= (IIvyProject) pmv.getProject().getAdapter(IIvyProject.class);
&lt;/code&gt;
&lt;code&gt;versionNumber = ivyProject.getVersion()&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;So the 2 first digits of the Engine (e.g. "6.0" -&amp;gt; "60" ) should be greater or equal to the first 2 digits of the project version number. (e.g. 51902 -&amp;gt; "51") then your Engine is not older than the project.&lt;/p&gt;
&lt;p&gt;In fact the engine contains some other validators which help to prove if a project is acceptable to be deployed or not. (e.g. Java classes are built)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tamas KIS</dc:creator><pubDate>Wed, 04 Mar 2015 16:53:49 -0500</pubDate><guid>https://answers.axonivy.com/questions/1186/how-to-get-a-project-s-ivy-version/1199</guid></item><item><title>Answer by HaraldWeber</title><link>https://answers.axonivy.com/questions/1186/how-to-get-a-project-s-ivy-version/1188</link><description>&lt;p&gt;This should do it.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;IProject project = WorkflowNavigationUtil
  .getWorkflowProcessModelVersion(
    Ivy.request().getProcessModelVersion())
      .getProject();
IIvyProject ivyProject = IvyProjectUtil
  .getIvyProjectByName(project.getName());
Ivy.log().info(ivyProject.getVersion());
&lt;/code&gt;&lt;/pre&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">HaraldWeber</dc:creator><pubDate>Mon, 02 Mar 2015 17:46:02 -0500</pubDate><guid>https://answers.axonivy.com/questions/1186/how-to-get-a-project-s-ivy-version/1188</guid></item></channel></rss>