Project

General

Profile

Actions

Bug #5669

closed

replace ProjectLocator.findKeplerModulesDir() with something more robust.

Added by Derik Barseghian over 12 years ago. Updated about 9 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
build system
Target version:
Start date:
08/09/2012
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5669

Description

This method is problematic. Bug#5458 also mentions it.

/**
 * 
 * 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
*/
private static KeplerModulesDir findKeplerModulesDir()
Actions

Also available in: Atom PDF