<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to DevQuickStart_Eclipse</title><link>https://sourceforge.net/p/carbones/wiki/DevQuickStart_Eclipse/</link><description>Recent changes to DevQuickStart_Eclipse</description><atom:link href="https://sourceforge.net/p/carbones/wiki/DevQuickStart_Eclipse/feed" rel="self"/><language>en</language><lastBuildDate>Fri, 20 Mar 2015 14:20:06 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/carbones/wiki/DevQuickStart_Eclipse/feed" rel="self" type="application/rss+xml"/><item><title>DevQuickStart_Eclipse modified by Anonymous</title><link>https://sourceforge.net/p/carbones/wiki/DevQuickStart_Eclipse/</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;Introduction&lt;/li&gt;
&lt;li&gt;Details&lt;ul&gt;
&lt;li&gt;1. Check out the projects&lt;/li&gt;
&lt;li&gt;2. Edit the settings&lt;/li&gt;
&lt;li&gt;Edit properties file carbones_local.properties&lt;/li&gt;
&lt;li&gt;Edit web.xml&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id="introduction"&gt;Introduction&lt;/h1&gt;
&lt;p&gt;How to get started developing the CARBONES web application in Eclipse &lt;/p&gt;
&lt;h1 id="details"&gt;Details&lt;/h1&gt;
&lt;h2 id="146-check-out-the-projects"&gt;1. Check out the projects&lt;/h2&gt;
&lt;p&gt;In Eclipse &lt;strong&gt;SVN Repository&lt;/strong&gt; perspective, add a repository. Use the URL displayed on the &lt;strong&gt;Source&lt;/strong&gt; tab of the Google Code website, removing "/trunk" from the end of the URL. &lt;/p&gt;
&lt;p&gt;In the SVN repositories view, expand the &lt;code&gt;trunk&lt;/code&gt; node and select the &lt;code&gt;CarbonesConfig&lt;/code&gt; project. Right click, and choose "Check out". You should check out as a project in the workspace. &lt;/p&gt;
&lt;p&gt;In the SVN repositories view, expand the &lt;code&gt;trunk&lt;/code&gt; node and select the &lt;code&gt;Carbones&lt;/code&gt; project. Right click, and choose "Check out". You should check out as a project in the workspace. &lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hint&lt;/strong&gt; Eclipse will probably run its JavaScript validator against all the JavaScript in the project. You might like to cancel this, as it is very time consuming. &lt;/p&gt;
&lt;h2 id="246-edit-the-settings"&gt;2. Edit the settings&lt;/h2&gt;
&lt;h3 id="edit-properties-file-carbones_localproperties"&gt;Edit properties file &lt;code&gt;carbones_local.properties&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Edit &lt;code&gt;carbones_local.properties&lt;/code&gt;. The username, password and database name should match those used to &lt;a class="" href="/p/carbones/wiki/DevQuickStart_GraphDatabase"&gt;create your local PostGreSQL database&lt;/a&gt;&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;Carbones&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;external_config_files&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;carbones_local&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;properties&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Property&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Typical value&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;Notes&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;carbones.jdbc.username &lt;br /&gt;
postgres &lt;br /&gt;
PostGreSQL username. Default PostGreSQL installation creates a "postgres" user with password "postgres"&lt;/p&gt;
&lt;p&gt;carbones.jdbc.password &lt;br /&gt;
postgres &lt;br /&gt;
PostGreSQL password. &lt;/p&gt;
&lt;p&gt;carbones.jdbc.url &lt;br /&gt;
jdbc:postgresql://localhost:5432/carbones_graph &lt;br /&gt;
Final part of the URL is the database name (recommend carbones_graph). You may also need to change the port if you chose a different port when installing PostGreSQL. &lt;/p&gt;
&lt;p&gt;TIMESERIES_SQL_STRING &lt;br /&gt;
&lt;code&gt;select * from linegraph ( ? ,?,?,?,?,?)&lt;/code&gt;&lt;br /&gt;
You may need to change the name of the stored procedure. &lt;strong&gt;linegraph&lt;/strong&gt; is defined in the SQL stored on &lt;code&gt;P:\&lt;/code&gt; NB there is no underscore in &lt;code&gt;linegraph&lt;/code&gt;! &lt;/p&gt;
&lt;p&gt;TIMESERIES_MULTIREGION_SQL_STRING &lt;br /&gt;
&lt;code&gt;select &amp;lt;&amp;lt;regions&amp;gt;&amp;gt; from linegraph_multiregion ( ? ,?,?,&amp;lt;&amp;lt;regionValues&amp;gt;&amp;gt;,?,?) As (&amp;lt;&amp;lt;regionTypes&amp;gt;&amp;gt;)&lt;/code&gt;&lt;br /&gt;
You should not need to change the name of the stored procedure. &lt;strong&gt;linegraph_multiregion&lt;/strong&gt; is defined in the SQL stored on &lt;code&gt;P:\&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The procedure linegraph_multiregion was added to the SQL on 11 Aug 2011. It is also available at &lt;code&gt;Q:\CRs\Utilities\CARBONES_F862\Website\CR0004 Change CSV to show region data in different columns\ChangedFilesAfterReview\linegraph_multiregion.txt&lt;/code&gt;&lt;/p&gt;
&lt;h3 id="edit-webxml"&gt;Edit &lt;code&gt;web.xml&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Right-click the &lt;code&gt;carbones_local.properties&lt;/code&gt; file and copy the location onto the clipboard. &lt;/p&gt;
&lt;p&gt;Now edit the file &lt;code&gt;/Carbones/WebContent/WEB-INF/web.xml&lt;/code&gt; and paste the location into the parameter node &lt;code&gt;externalConfigurationFilesLocation&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Change backslashes to forward slashes &lt;/li&gt;
&lt;li&gt;Enter the directory location only (delete the filename) &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For example &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;    &lt;span class="nt"&gt;&amp;lt;context-param&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;description&amp;gt;&lt;/span&gt;Absolute path of the directory containing the Carbones configuration files (use forward slashes eg. C:/external_config_files)&lt;span class="nt"&gt;&amp;lt;/description&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;param-name&amp;gt;&lt;/span&gt;externalConfigurationFilesLocation&lt;span class="nt"&gt;&amp;lt;/param-name&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;param-value&amp;gt;&lt;/span&gt;G:/Java/CARBONESWeb/Carbones/external_config_files&lt;span class="nt"&gt;&amp;lt;/param-value&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/context-param&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Fri, 20 Mar 2015 14:20:06 -0000</pubDate><guid>https://sourceforge.net2ef832402ff15a7cd5a1a3676bfe777b30a17a75</guid></item></channel></rss>