<html>
<head>
<style>
body {
font-family: Verdana, sans-serif;
font-size: 0.8em;
color:#484848;
}
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; margin: 0px; }
h1 { font-size: 1.2em; }
h2, h3 { font-size: 1.1em; }
a, a:link, a:visited { color: #2A5685;}
a:hover, a:active { color: #c61a1a; }
a.wiki-anchor { display: none; }
hr {
width: 100%;
height: 1px;
background: #ccc;
border: 0;
}
.footer {
font-size: 0.8em;
font-style: italic;
}
</style>
</head>
<body>
<span class="header"></span>
Issue #5669 has been updated by Daniel Crawl.
<ul>
<li><strong>Priority</strong> changed from <i>Normal</i> to <i>High</i></li>
<li><strong>Target version</strong> changed from <i>Unspecified</i> to <i>2.5.0</i></li>
</ul>
<p>The kepler-tasks module cannot be patched: once a patch is installed for kepler-tasks, Kepler will not start. The problem is that findKeplerModulesDir() uses the location of the kepler-tasks jar as the location where Kepler is installed. Since the patch is in KeplerData/kepler.modules, findKeplerModulesDir() assumes that all modules are in this directory and will not find the modules in the Kepler installation directory.</p>
<hr />
<h1><a href="https://projects.ecoinformatics.org/ecoinfo/issues/5669#change-20710">Bug #5669: replace ProjectLocator.findKeplerModulesDir() with something more robust.</a></h1>
<ul>
<li>Author: Derik Barseghian</li>
<li>Status: New</li>
<li>Priority: High</li>
<li>Assignee: jianwu jianwu</li>
<li>Category: build system</li>
<li>Target version: 2.5.0</li>
<li>Bugzilla-Id: 5669</li>
</ul>
<p>This method is problematic. Bug#5458 also mentions it.</p>
<pre><code>/**
*
* FIXME replace this with something(s) more robust. Be careful when doing so, some things probably always want
* KeplerData/kepler.modules, others always the other "application modules dir", others one or the other depending on
* what exists.
*
* On linux(at least) during ant run, MemoryProperties invokes this, and the search begins based on the location of ant.jar
* i.e. /usr/share/ant/lib/ant.jar/build-area/modules.txt can be the first attempt.
*
* find the project dir
* WARNING this can return either the application modules dir,
* or KeplerData/kepler.modules, or a false positive (e.g. some arbitrary parent dir that happens to contain build-area/modules.txt),
* or the system-dependent default directory (in the catch).
* @return<br /> */<br /> private static KeplerModulesDir findKeplerModulesDir()</code></pre>
<hr />
<span class="footer"><p>You have received this notification because you have either subscribed to it, or are involved in it.<br />To change your notification preferences, please click here: <a class="external" href="https://projects.ecoinformatics.org/ecoinfo/my/account">https://projects.ecoinformatics.org/ecoinfo/my/account</a></p></span>
</body>
</html>