<div dir="ltr">Please note that these changes will only affect Mondrian 3.X branches. <div><br></div><div>We do not intend on pushing these changes to the 4.X code lines because Maven is the tool favored for these branches.<div><br></div><div>Thanks again for your help!</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 13, 2015 at 11:49 AM, Luc Boudreau <span dir="ltr">&lt;<a href="mailto:lucboudreau@gmail.com" target="_blank">lucboudreau@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello devs,</div><div><br></div><div>We&#39;ve been busy cleaning up the build scripts for Mondrian lately and we&#39;d need your help to test a thing or two before we deploy these changes at large.</div><div><br></div><div>We have created a branch where the changes are found.</div><div><br></div><div> </div><div>    <a href="https://github.com/lucboudreau/mondrian/tree/jdkcleanup" target="_blank">https://github.com/lucboudreau/mondrian/tree/jdkcleanup</a> </div><div><br></div><div><br></div><div>There are a lot of changes and they greatly simplify how mondrian is built and tested.</div><div><br></div><div><br></div><div> - The &#39;help&#39; target tells people everything they need to know. Just run &#39;ant&#39; and read.</div><div><br></div><div> -  There is no need to configure JDK paths anymore. The build will use whatever is in the OS path. We use the same settings as subfloor, and for now it requires Java 7.</div><div> </div><div> -  There is no need to create a mondrian.properties file anymore (but it still works). Command line parameters can be used. (see ant help)</div><div> </div><div> - The old FoodMart DBs are gone. Derby and Access are no more. Only the generic SQL scripts used by &#39;load-foodmart&#39; remain.</div><div> </div><div> - The build will happen in ${base.dir}/build, whereas it used to be in ${base.dir}/bin. This was done because mondrian already has stuff in bin and it caused a lot of build problems to clean it properly without deleting needed stuff.</div><div> </div><div> - Jacoco and Sonar metrics are enabled. You will not be able to publish to sonar from a local machine, but running &#39;jacoco&#39; and looking at the coverage stats does work fine.</div><div><br></div><div> - Targets related to building a WAR archive are gone. We removed support for WAR archives a while back, but never got around to cleaning up everything; it is now done.</div><div> </div><div><br></div><div> Here&#39;s a quick cheat sheet to help us test these changes.</div><div><br></div><div><br></div><div><font face="monospace, monospace">     # Clone the repo locally</font></div><div><font face="monospace, monospace">     $ git clone <a href="https://github.com/lucboudreau/mondrian.git" target="_blank">https://github.com/lucboudreau/mondrian.git</a></font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">     # Go to the folder</font></div><div><font face="monospace, monospace">     cd mondrian</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">     # Switch to the branch to test</font></div><div><font face="monospace, monospace">     $ git checkout jdkcleanup</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">     # Get some help</font></div><div><font face="monospace, monospace">     ant help</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace">     # Run the tests</font></div><div><font face="monospace, monospace">     ant -Dmondrian.foodmart.jdbcURL=&quot;jdbc:mysql://localhost/foodmart&quot; \</font></div><div><font face="monospace, monospace">         -Dmondrian.foodmart.jdbcUser=foodmart \</font></div><div><font face="monospace, monospace">         -Dmondrian.foodmart.jdbcPassword=foodmart \</font></div><div><font face="monospace, monospace">         -Dmondrian.jdbcDrivers=com.mysql.jdbc.Driver \</font></div><div><font face="monospace, monospace">         -Ddriver.classpath=&quot;/opt/mysql-connector-java-5.1.25-bin.jar&quot;</font></div><div><font face="monospace, monospace">         clean-deep test</font></div><div><br></div><div><br></div><div>If your tests do uncover some issues, please share as much details as possible, especially regarding your environment, like ant version, logs, JDK versions, OS and such.</div><div><br></div><div>Thanks!</div></div>
</blockquote></div><br></div>