Skip to content

Commit 59987ac

Browse files
author
jeloguy15
committed
changed the test for 1.5 support so that it only works if jsr14 libraries are infront of tools.jar on the class path
git-svn-id: file:///tmp/test-svn/trunk@2792 fe72c1cf-3628-48e9-8b72-1c46755d3cff
1 parent 85fd61e commit 59987ac

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

dynamicjava/src/koala/Version.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* This file is copied to Version.java by the build process, which also
5454
* fills in the right values of the date and time.
5555
*
56-
* This javadoc corresponds to build drjava-20041113-0213;
56+
* This javadoc corresponds to build drjava-20041206-1949;
5757
*
5858
* @version $Id$
5959
*/
@@ -62,7 +62,7 @@ public abstract class Version {
6262
* This string will be automatically expanded upon "ant commit".
6363
* Do not edit it by hand!
6464
*/
65-
private static final String BUILD_TIME_STRING = "20041113-0213";
65+
private static final String BUILD_TIME_STRING = "20041206-1949";
6666

6767
/** A {@link Date} version of the build time. */
6868
private static final Date BUILD_TIME = _getBuildDate();

dynamicjava/src/koala/build-common.xml.15

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
Assumes these targets exist:
1313
stable
1414
development
15+
jar
1516

1617
-->
1718
<!-- <taskdef name="javamake" classname="com.sun.tools.javamake.ant.JavaMake"/> -->
@@ -103,24 +104,21 @@ target="jsr14"
103104
<!-- Commit source to CVS archive
104105
Before doing do, we update our copy with the CVS copy. This ensures that
105106
if there were any clashes, we have to resolve them now. Then we
106-
recompile (from scratch) and retest. If this all succeeds, we can commit.
107+
recompile (from scratch), create a jar file, and retest. If this all succeeds, we can commit.
107108

108109
After committing, we tag the build we just made with the tag
109110
projectname-date-time.
110111
-->
111-
<target name="do-commit" depends="clean, update, test, make-version-stamp">
112+
<target name="do-commit" depends="clean, update, jar, test, make-version-stamp">
112113
<property name="version-tag"
113114
value="${ant.project.name}-${DSTAMP}-${TSTAMP}" />
114115

115116
<!-- recompile to make new version number get into code. -->
116117
<echo message="All tests passed. Rebuilding to put version tag (${version-tag}) into the code." />
117118
<antcall target="compile" />
118119

119-
<!-- Copy the dynamicjava.jar to the lib directory and commit it. -->
120-
<copy file="${jarfile}"
121-
tofile="${lib_dir}/dynamicjava.jar"
122-
overwrite="yes"/>
123-
<echo message="Copied current dynamicjava.jar to the lib directory. Please commit it to keep DrJava in sync with the koala code base." />
120+
<!-- Remind user to commit the new dynamicjar.jar file. -->
121+
<echo message="The built dynamicjava.jar file has been copied to the lib directory. Please commit it to keep DrJava in sync with the koala code base." />
124122

125123
<tempfile property="commit-comments-filename"
126124
destdir="${java.io.tmpdir}"
@@ -223,7 +221,7 @@ target="jsr14"
223221
bootclasspath="${jsr14_classpath}:${jsr14_collect_classpath}:${sun.boot.class.path}"
224222
classpath="${classpath_text}"
225223
source="1.5"
226-
target="jsr14"
224+
target="1.5"
227225
debug="on"
228226
fork="on"
229227
optimize="off">

dynamicjava/src/koala/dynamicjava/util/TigerUtilities.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public class TigerUtilities {
103103
public static void resetVersion() {
104104
try {
105105
//Class.forName("java.lang.Enum");
106-
Class.forName("com.sun.javadoc.ParameterizedType");
106+
// Class.forName("com.sun.javadoc.ParameterizedType");
107+
java.lang.reflect.Method.class.getMethod("isVarArgs", new Class[]{});
107108
_tigerEnabled = true;
108109
}
109110
catch (Throwable t) {

0 commit comments

Comments
 (0)