<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Can i check what libraries were imported but not used it ivy scriplet?</title><link>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet</link><description>&lt;p&gt;Hello all
Currently we take over a big project from other team and it had a large logic already. So our team found that in some scriptlet the old team imported some strange lib in scriplet but not used at any places. So my team really want to remove it as we can do in eclipse with Ctrl+O. How can we do that in ivy scriplet?
Thanks in advance&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet" rel="self"></atom:link><language>en</language><lastBuildDate>Mon, 23 Jun 2014 05:02:17 -0400</lastBuildDate><item><title>Comment by trungdv on Reguel Wermelinger's answer</title><link>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet#807</link><description>&lt;p&gt;Thanks for your suggestion. I think it's best way. But we just do that for user libraries, not for common libraries (Java, XpertIvy)?
We have one time building Hudson failed because somebody import wrong common libraries. Besides, we can't follow good Java coding convention.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trungdv</dc:creator><pubDate>Mon, 23 Jun 2014 05:02:17 -0400</pubDate><guid>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet#807</guid></item><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet/804</link><description>&lt;p&gt;The ivyScript editor has no feature to detect unused code. 
However the fastest way to reveal unused third party libraries in your project is to simply remove the library from your classpath and run the full validation against the local project and all the dependent projects. (Right click -&amp;gt; Validate)&lt;/p&gt;
&lt;p&gt;Then the ivyScript validator will show errors for ivyScripts that have used the library. So you can navigate quickly to the places where the library has been used with the "Problems" view. ...and delete script parts if they are just unused imports.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 20 Jun 2014 14:29:58 -0400</pubDate><guid>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet/804</guid></item><item><title>Comment by trungdv on Daniel Oechslin's answer</title><link>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet#766</link><description>&lt;p&gt;but the problem is i don't know exactly how many imported lib is unneccessary. that project come from other team. If it is Eclipse you can easily see warning marked point. I don't want to open each scriptlet and check whether there are any unused lib&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">trungdv</dc:creator><pubDate>Tue, 10 Jun 2014 13:57:02 -0400</pubDate><guid>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet#766</guid></item><item><title>Answer by Daniel Oechslin</title><link>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet/764</link><description>&lt;p&gt;Run a filesearch and delete it there, so you can be sure it is not used anywhere. If the project is to large to do it in a filesearch, use a unix-regex on your workspace for deletion.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Oechslin</dc:creator><pubDate>Tue, 10 Jun 2014 13:27:11 -0400</pubDate><guid>https://answers.axonivy.com/questions/762/can-i-check-what-libraries-were-imported-but-not-used-it-ivy-scriplet/764</guid></item></channel></rss>