Menu

Commit [r5519]  Maximize  Restore  History

This revision finally passes the class path and build directory for a

project to the Scala compiler. BUT it fails if any of the segment
names in the fully qualified build directory contain spaces. The
classpath may be similarly restricted. We should overcome this
limitation if possible; it depends on what quoting conventions the
Scala compiler recognizes. If possible, I would prefer to pass
compiler arguments programmatically rather than as platform dependent
strings.

In refactoring to get package names to be correctly stored in project
files, I may have made too many changes. But the caching policy for
_packageName in the various document objects (OpenDefinitionsDocument,
DefinitionsDocument) is not clearly spelled out in the code
documentation. I would prefer a simply lazy field (which can be
explicitly updated) that is not intialized until it is demanded.
Ironically, Scala directly supports this idiom.

The following files were modified:

M drjava/lib/platform.jar
M drjava/src/edu/rice/cs/drjava/model/GlobalModelIOTest.java
M drjava/src/edu/rice/cs/drjava/model/definitions/DefinitionsDocument.java
M drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java

rcartwright 2012-04-08

changed /branches/drscala/drjava/lib/platform.jar
changed /branches/drscala/drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java
changed /branches/drscala/drjava/src/edu/rice/cs/drjava/model/GlobalModelIOTest.java
changed /branches/drscala/drjava/src/edu/rice/cs/drjava/model/definitions/DefinitionsDocument.java
/branches/drscala/drjava/src/edu/rice/cs/drjava/model/AbstractGlobalModel.java Diff Switch to side-by-side view
Loading...
/branches/drscala/drjava/src/edu/rice/cs/drjava/model/GlobalModelIOTest.java Diff Switch to side-by-side view
Loading...
/branches/drscala/drjava/src/edu/rice/cs/drjava/model/definitions/DefinitionsDocument.java Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB