Skip to content

Commit 49fbb04

Browse files
author
dlsmith
committed
Updated plt.jar and related dependencies.
git-svn-id: file:///tmp/test-svn/trunk@4706 fe72c1cf-3628-48e9-8b72-1c46755d3cff
1 parent 43f44f4 commit 49fbb04

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed

drjava/lib/plt.jar

54.5 KB
Binary file not shown.

drjava/lib/readme.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ VERSIONS:
77

88
asm-3.1.jar: ASM 3.1 (http://asm.objectweb.org)
99
docs.jar: docs-20060901-2010
10-
dynamicjava-base-15.jar: dynamicjava-20080709
10+
dynamicjava-base.jar: dynamicjava-20090115-r4705
1111
forms-1.0.7.jar: JGoodies Forms
12-
javalanglevels.jar: javalanglevels-20080709
12+
javalanglevels-base.jar: javalanglevels-20090115-r4704
1313
junit.jar: JUnit 4.4
1414
looks-2.1.4.jar: JGoodies Looks
15-
platform.jar: platform-20070213-2003
16-
plt.jar: plt-20080709-1847
15+
platform.jar: platform-20090103-r4686
16+
plt.jar: plt-20090115-r4703
1717

1818
buildlib/ant-contrib.jar: ANT Contrib 1.0b3
1919
buildlib/cenquatasks.jar: Distributed with Clover 1.3.9

drjava/src/edu/rice/cs/drjava/model/javadoc/DefaultJavadocModel.java

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646

4747
import edu.rice.cs.plt.lambda.Thunk;
4848
import edu.rice.cs.plt.io.IOUtil;
49+
import edu.rice.cs.plt.concurrent.JVMBuilder;
4950
import edu.rice.cs.plt.concurrent.ConcurrentUtil;
5051
import edu.rice.cs.plt.iter.IterUtil;
5152
import edu.rice.cs.plt.text.TextUtil;
@@ -79,26 +80,25 @@ public class DefaultJavadocModel implements JavadocModel {
7980

8081
/**Manages listeners to this model. */
8182
private final JavadocEventNotifier _notifier = new JavadocEventNotifier();
82-
83-
/** Location of the java command to use (if not the default in {@code java.home}) */
84-
private final File _javaCommand;
85-
86-
/** Location of the tools library containing the javadoc code (if not on the javaCommand's boot class path) */
87-
private final Iterable<File> _toolsPath;
83+
84+
/** Launcher for javadoc process */
85+
private final JVMBuilder _jvmBuilder;
8886

8987
/** The error model containing all current Javadoc errors. */
9088
private CompilerErrorModel _javadocErrorModel;
9189

9290
/** Main constructor.
9391
* @param model Source of documents for this JavadocModel
94-
* @param javaCommand Location of the java command to use (if not the default in {@code java.home})
95-
* @param toolsPath Location of the tools library containing the javadoc code (if not on the
92+
* @param javaCommand Location of the java command to use ({@code null} means the default: {@code java.home})
93+
* @param toolsPath Location of the tools library containing the javadoc code ({@code null} means the default:
9694
* javaCommand's boot class path)
9795
*/
9896
public DefaultJavadocModel(GlobalModel model, File javaCommand, Iterable<File> toolsPath) {
9997
_model = model;
100-
_javaCommand = javaCommand;
101-
_toolsPath = toolsPath;
98+
JVMBuilder builder = JVMBuilder.DEFAULT;
99+
if (javaCommand != null) { builder = builder.javaCommand(javaCommand); }
100+
if (toolsPath != null) { builder = builder.classPath(toolsPath); }
101+
_jvmBuilder = builder;
102102
_javadocErrorModel = new CompilerErrorModel();
103103
}
104104

@@ -312,14 +312,9 @@ private void _runJavadoc(Iterable<String> files, File destDir, Iterable<String>
312312
args = IterUtil.compose(args, ArgumentTokenizer.tokenize(custom));
313313
args = IterUtil.compose(args, files);
314314

315-
File javaCommand = (_javaCommand == null) ? new File(System.getProperty("java.home", "")) : _javaCommand;
316-
Iterable<File> jvmClassPath = (_toolsPath == null) ? IterUtil.<File>empty() : _toolsPath;
317-
318315
List<DJError> errors = new ArrayList<DJError>();
319316
try {
320-
Process p = ConcurrentUtil.runJavaProcess(javaCommand, "com.sun.tools.javadoc.Main", args,
321-
jvmClassPath, new File(System.getProperty("user.dir", "")),
322-
new Properties(), IterUtil.<String>empty());
317+
Process p = _jvmBuilder.start("com.sun.tools.javadoc.Main", args);
323318
Thunk<String> outputString = ConcurrentUtil.processOutAsString(p);
324319
Thunk<String> errorString = ConcurrentUtil.processErrAsString(p);
325320
p.waitFor();

0 commit comments

Comments
 (0)