|
From: <fra...@us...> - 2009-03-29 06:30:31
|
Revision: 1348
http://javapathfinder.svn.sourceforge.net/javapathfinder/?rev=1348&view=rev
Author: frankrimlinger
Date: 2009-03-29 06:30:27 +0000 (Sun, 29 Mar 2009)
Log Message:
-----------
Completed coding for local data upgrade (not debugged yet). The app now accepts a dataHome path, a systemHome path, a userName, and a mangoHome. A session will reference user data (sessions,rules, and input) with pathnames resolved relative to dataHome. By default, a newly created session will save itself and its rule base relative to dataHome in local/userName/xxx. A session resolves its system data pathName relative to systemHome. The systemHome will normally point to the local directory inside the mango project or application bundle, and the system data pathName will normally point to the jar within local/system/input/System/bin. The extra flexibility is intended to facilitate development of the system data itself. The mangoHome is required for the search through the code base for actions, requirements, and icons. I *really* want to eliminate mangoHome in favor of extension points, but the time to do this is not yet ripe.
With this setup, a user directory may be copied from one local directory to another without breaking the sessions. The user need only set the dataHome argument to point to the desired local directory. In particular, results can easily be shared across different machines and different users. If a session references work of other users, then of course those other uses also need to be present in the designated local directory at runtime.
This design tries to balance the need for portability with the inconvenience caused when projects are required to be in special places in order to be analyzed. The scalable solution is full-blown database management, not an issue just yet.
Modified Paths:
--------------
branches/mango/Mango/Mango/src/mango/control/action/input/LibraryJarsAction.java
branches/mango/Mango/Mango/src/mango/control/action/input/TargetJarsAction.java
branches/mango/Mango/Mango/src/mango/control/msg/LoadClassFileDataRequestMsg.java
branches/mango/Mango/Mango/src/mango/control/msg/SetSourceDirectoryRequestMsg.java
branches/mango/Mango/Mango/src/mango/core/gui/action/PrintAbstractionsAction.java
branches/mango/Mango/Mango/src/mango/rmi/file/MangoFilePacket.java
branches/mango/Mango/Mango/src/mango/script/MangoScriptResource.java
branches/mango/Mango/Mango/src/mango/script/MangoScriptSourceDirectory.java
branches/mango/Mango/Mango/src/mango/script/util/MangoScriptUtilities.java
branches/mango/Mango/Mango/src/mango/util/FileSystem.java
branches/mango/Mango/Mango/src/mango/worker/javaModel/classParser/ClassModel.java
branches/mango/Mango/Mango/src/mango/workstation/PopUpResourceManager.java
branches/mango/Mango/Mango/src/mango/workstation/RuleResourceManager.java
branches/mango/Mango/Mango/src/mango/workstation/Workstation.java
branches/mango/Mango/src/mango/intro/Application.java
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|