openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] OpenJPA > Apply an Eclipse Patch
Date Tue, 01 Jun 2010 17:02:00 GMT
<html>
<head>
    <base href="http://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/1810/9/5/_/styles/combined.css?spaceKey=openjpa&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="http://cwiki.apache.org/confluence/display/openjpa/Apply+an+Eclipse+Patch">Apply
an Eclipse Patch</a></h2>
    <h4>Page <b>edited</b> by             <a href="http://cwiki.apache.org/confluence/display/~dianner">Dianne
Richards</a>
    </h4>
        <div id="versionComment">
        <b>Comment:</b>
        Added the text<br />
    </div>
        <br/>
                         <h4>Changes (1)</h4>
                                 
    
<div id="page-diffs">
            <table class="diff" cellpadding="0" cellspacing="0">
            <tr><td class="diff-unchanged" >h1. Apply an Eclipse Patch to DayTrader
<br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">
<br>You can apply an Eclipse patch to DayTrader for the Criteria API changes <br>
<br>h2. Setting up Eclipse <br> <br>First install eclipse by going to&amp;nbsp;[http:/www.eclipse.org|http://www.eclipse.org]
and downloading a  version of it. These instructions assume version 3.5. Unzip the  downloaded
file into a directory. You can start eclipse by running  eclipse.exe in the eclipse directory.
<br> <br>Next install subclipse, the Subversion Eclipse Plugin: <br># In
Eclipse, go to Help \-&gt; Install New software <br># Click on Add button - Enter
Subclipse for Name and [http://subclipse.tigris.org/update_1.6.x|http://subclipse.tigris.org/update_1.6.x]
for  location <br># Select the Subclipse Plugin and click Next \-&gt; Next <br>#
Read and accept the license and click Finish <br> <br>Generate eclipse files for
the DayTrader project. From the *DayTrader/branches/2.1.3* directory, type &quot;mvn eclipse:eclipse&quot;
<br> <br>Set the M2_REPO classpath variable in Eclipse: <br># Go to Window
\-&gt; Preferences \-&gt; Java \-&gt; Build Path \-&gt;  Classpath Variables
<br># Add a new variable called M2_REPO, set to the maven repository  directory.. <br>
<br>Import DayTrader projects into Eclipse. <br> <br># From Eclipse, Click
on File \-&gt; Import... <br># Under the General folder, select Existing Projects
into Workspace  and click on Next. <br># Enter the root directory of *DayTrader/branches/2.1.3*
<br># Select all projects and click Finish <br> <br>h2. Applying the Patch
<br> <br>Apply the eclipse based patch using the following: <br># Download
the patch (TBD - attach) <br># In the Package Explorer view select all daytrader projects
<br># Right click and select Team \-&gt; Apply Patch <br># Enter the path
to the downloaded patch <br> <br>Replace the following files in your local file
system copy of DayTrader: <br>* the pom.xml file in the root (*Daytrader/branches/2.1.3*)
directory with [^pom.xml]. <br>* the createDerbyDB.bat\|.sh file in the *DayTrader/branches/2.1.3/bin/dbscripts/derby*
directory with the appropriate one of the following:&amp;nbsp;[^createDerbyDB.bat] or
[^createDerbyDB.sh]. <br></td></tr>
        </table>
</div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <h1><a name="ApplyanEclipsePatch-ApplyanEclipsePatchtoDayTrader"></a>Apply
an Eclipse Patch to DayTrader</h1>

<p>You can apply an Eclipse patch to DayTrader for the Criteria API changes</p>

<h2><a name="ApplyanEclipsePatch-SettingupEclipse"></a>Setting up Eclipse</h2>

<p>First install eclipse by going to&nbsp;<a href="http://www.eclipse.org" class="external-link"
rel="nofollow">http:/www.eclipse.org</a> and downloading a  version of it. These
instructions assume version 3.5. Unzip the  downloaded file into a directory. You can start
eclipse by running  eclipse.exe in the eclipse directory.</p>

<p>Next install subclipse, the Subversion Eclipse Plugin:</p>
<ol>
	<li>In Eclipse, go to Help &#45;&gt; Install New software</li>
	<li>Click on Add button - Enter Subclipse for Name and <a href="http://subclipse.tigris.org/update_1.6.x"
class="external-link" rel="nofollow">http://subclipse.tigris.org/update_1.6.x</a>
for  location</li>
	<li>Select the Subclipse Plugin and click Next &#45;&gt; Next</li>
	<li>Read and accept the license and click Finish</li>
</ol>


<p>Generate eclipse files for the DayTrader project. From the <b>DayTrader/branches/2.1.3</b>
directory, type "mvn eclipse:eclipse"</p>

<p>Set the M2_REPO classpath variable in Eclipse:</p>
<ol>
	<li>Go to Window &#45;&gt; Preferences &#45;&gt; Java &#45;&gt;
Build Path &#45;&gt;  Classpath Variables</li>
	<li>Add a new variable called M2_REPO, set to the maven repository  directory..</li>
</ol>


<p>Import DayTrader projects into Eclipse.</p>

<ol>
	<li>From Eclipse, Click on File &#45;&gt; Import...</li>
	<li>Under the General folder, select Existing Projects into Workspace  and click on
Next.</li>
	<li>Enter the root directory of <b>DayTrader/branches/2.1.3</b></li>
	<li>Select all projects and click Finish</li>
</ol>


<h2><a name="ApplyanEclipsePatch-ApplyingthePatch"></a>Applying the Patch</h2>

<p>Apply the eclipse based patch using the following:</p>
<ol>
	<li>Download the patch (TBD - attach)</li>
	<li>In the Package Explorer view select all daytrader projects</li>
	<li>Right click and select Team &#45;&gt; Apply Patch</li>
	<li>Enter the path to the downloaded patch</li>
</ol>


<p>Replace the following files in your local file system copy of DayTrader:</p>
<ul>
	<li>the pom.xml file in the root (<b>Daytrader/branches/2.1.3</b>) directory
with <a href="/confluence/download/attachments/21791836/pom.xml?version=1&amp;modificationDate=1275410962212">pom.xml</a>.</li>
	<li>the createDerbyDB.bat&#124;.sh file in the <b>DayTrader/branches/2.1.3/bin/dbscripts/derby</b>
directory with the appropriate one of the following:&nbsp;<a href="/confluence/download/attachments/21791836/createDerbyDB.bat?version=2&amp;modificationDate=1275411249417">createDerbyDB.bat</a>
or <a href="/confluence/download/attachments/21791836/createDerbyDB.sh?version=1&amp;modificationDate=1275411535599">createDerbyDB.sh</a>.</li>
</ul>

    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="http://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="http://cwiki.apache.org/confluence/display/openjpa/Apply+an+Eclipse+Patch">View
Online</a>
        |
        <a href="http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=21791836&revisedVersion=2&originalVersion=1">View
Changes</a>
                |
        <a href="http://cwiki.apache.org/confluence/display/openjpa/Apply+an+Eclipse+Patch?showComments=true&amp;showCommentArea=true#addcomment">Add
Comment</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message