<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -4,11 +4,10 @@
 	&lt;classpathentry excluding=&quot;**/CVS/*&quot; kind=&quot;src&quot; output=&quot;build/classes/test&quot; path=&quot;test&quot;/&gt;
 	&lt;classpathentry kind=&quot;con&quot; path=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot;/&gt;
 	&lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/bsf.jar&quot;/&gt;
-	&lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/junit.jar&quot;/&gt;
-	&lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/ant.jar&quot;/&gt;
 	&lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/asm-commons-2.2.3.jar&quot;/&gt;
 	&lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/asm-2.2.3.jar&quot;/&gt;
 	&lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/jline-0.9.91.jar&quot;/&gt;
 	&lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/backport-util-concurrent.jar&quot;/&gt;
+	&lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/junit.jar&quot;/&gt;
 	&lt;classpathentry kind=&quot;output&quot; path=&quot;build/classes/jruby&quot;/&gt;
 &lt;/classpath&gt;</diff>
      <filename>.classpath</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
 &lt;projectDescription&gt;
-	&lt;name&gt;jruby&lt;/name&gt;
+	&lt;name&gt;jruby_trunk&lt;/name&gt;
 	&lt;comment&gt;&lt;/comment&gt;
 	&lt;projects&gt;
 	&lt;/projects&gt;
@@ -12,16 +12,6 @@
 		&lt;/buildCommand&gt;
 		&lt;buildCommand&gt;
 			&lt;name&gt;org.eclipse.ui.externaltools.ExternalToolBuilder&lt;/name&gt;
-			&lt;triggers&gt;auto,full,incremental,&lt;/triggers&gt;
-			&lt;arguments&gt;
-				&lt;dictionary&gt;
-					&lt;key&gt;LaunchConfigHandle&lt;/key&gt;
-					&lt;value&gt;&amp;lt;project&amp;gt;/.externalToolBuilders/Serialize Builtin Files.launch&lt;/value&gt;
-				&lt;/dictionary&gt;
-			&lt;/arguments&gt;
-		&lt;/buildCommand&gt;
-		&lt;buildCommand&gt;
-			&lt;name&gt;org.eclipse.ui.externaltools.ExternalToolBuilder&lt;/name&gt;
 			&lt;triggers&gt;full,incremental,&lt;/triggers&gt;
 			&lt;arguments&gt;
 				&lt;dictionary&gt;</diff>
      <filename>.project</filename>
    </modified>
    <modified>
      <diff>@@ -97,14 +97,9 @@
       &lt;classpath refid=&quot;build.classpath&quot;/&gt;
     &lt;/javac&gt;
 
-    &lt;taskdef name=&quot;jruby-serialize&quot; classname=&quot;org.jruby.util.ant.JRubySerialize&quot;&gt;
-      &lt;classpath path=&quot;${jruby.classes.dir}&quot;/&gt;
-    &lt;/taskdef&gt;
-    
     &lt;copy todir=&quot;${jruby.classes.dir}&quot;&gt;
         &lt;fileset dir=&quot;${src.dir}&quot;&gt;
             &lt;include name=&quot;**/*.rb&quot;/&gt;
-            &lt;exclude name=&quot;builtin/**/*.rb&quot;/&gt;
         &lt;/fileset&gt;
     &lt;/copy&gt;
     
@@ -137,16 +132,7 @@
           description=&quot;Compile the source files for the project.&quot;&gt;
   &lt;/target&gt;
 
-  &lt;target name=&quot;serialize&quot; depends=&quot;compile&quot;
-          description=&quot;Serializes builting Ruby libraries into Java format&quot;&gt;
-    &lt;jruby-serialize destdir=&quot;${jruby.classes.dir}&quot;&gt;
-      &lt;fileset dir=&quot;${src.dir}&quot;&gt;
-        &lt;include name=&quot;builtin/**/*.rb&quot;/&gt;
-      &lt;/fileset&gt;
-    &lt;/jruby-serialize&gt;
-  &lt;/target&gt;
-
-  &lt;target name=&quot;generate-method-classes&quot; depends=&quot;serialize&quot;&gt;
+  &lt;target name=&quot;generate-method-classes&quot; depends=&quot;compile&quot;&gt;
     &lt;touch file=&quot;${build.dir}/__empty.rb&quot;/&gt;
     &lt;java classname=&quot;org.jruby.Main&quot; fork=&quot;true&quot;&gt;
       &lt;classpath refid=&quot;build.classpath&quot;/&gt;
@@ -158,15 +144,6 @@
     &lt;delete file=&quot;${build.dir}/__empty.rb&quot; quiet=&quot;true&quot;/&gt;
   &lt;/target&gt;
 
-  &lt;target name=&quot;serialize.rubylib&quot; depends=&quot;compile&quot;
-          description=&quot;Serializes the core Ruby library into Java format&quot;&gt;
-    &lt;jruby-serialize destdir=&quot;${jruby.classes.dir}&quot; verbose=&quot;true&quot;&gt;
-      &lt;fileset dir=&quot;${ruby.home}/lib/ruby/1.8&quot;&gt;
-        &lt;patternset refid=&quot;ruby.src.pattern&quot;/&gt;
-      &lt;/fileset&gt;
-    &lt;/jruby-serialize&gt;
-  &lt;/target&gt;
-
   &lt;target name=&quot;jar-jruby&quot; depends=&quot;generate-method-classes&quot;&gt;
     &lt;jar destfile=&quot;${lib.dir}/jruby.jar&quot; compress=&quot;true&quot;&gt;
       &lt;fileset dir=&quot;${jruby.classes.dir}&quot;&gt;
@@ -220,7 +197,6 @@
         &lt;fileset dir=&quot;${jruby.classes.dir}&quot;&gt;
           &lt;include name=&quot;**/*.class&quot;/&gt;
         &lt;include name=&quot;**/*.properties&quot;/&gt;
-        &lt;include name=&quot;**/*.rb.ast.ser&quot;/&gt;
           &lt;exclude name=&quot;org/jruby/util/ant/**/*.class&quot;/&gt;
         &lt;/fileset&gt;
         &lt;fileset dir=&quot;${basedir}/lib/ruby/1.8&quot;&gt;
@@ -264,7 +240,7 @@
   &lt;target name=&quot;jar&quot; depends=&quot;jar-jruby&quot; description=&quot;Create the jruby.jar file&quot;&gt;
   &lt;/target&gt;
 
-  &lt;target name=&quot;jar.standalone&quot; depends=&quot;generate-method-classes, serialize.rubylib, jar&quot;
+  &lt;target name=&quot;jar.standalone&quot; depends=&quot;generate-method-classes, jar&quot;
     description=&quot;Create a standalone jruby.jar file using libraries from RUBY_HOME/lib/ruby/1.8&quot;/&gt;
 
   &lt;target name=&quot;compile-test&quot; depends=&quot;jar&quot; description=&quot;Compile the unit tests&quot;&gt;</diff>
      <filename>build.xml</filename>
    </modified>
    <modified>
      <diff>@@ -263,6 +263,10 @@ public final class Ruby {
         return newInstance(config);
     }
 
+    public IRubyObject evalScript(Reader reader, String name) {
+        return eval(parse(reader, name, getCurrentContext().getCurrentScope(), 0));
+    }
+    
     /**
      * Evaluates a script and returns a RubyObject.
      */</diff>
      <filename>src/org/jruby/Ruby.java</filename>
    </modified>
    <modified>
      <diff>@@ -58,13 +58,12 @@ import org.jruby.runtime.Constants;
 import org.jruby.runtime.builtin.IRubyObject;
 import org.jruby.util.BuiltinScript;
 import org.jruby.util.JRubyFile;
-import org.jruby.util.PreparsedScript;
 
 /**
  * &lt;b&gt;How require works in JRuby&lt;/b&gt;
  * When requiring a name from Ruby, JRuby will first remove any file extension it knows about,
  * thereby making it possible to use this string to see if JRuby has already loaded
- * the name in question. If a .rb or .rb.ast.ser extension is specified, JRuby will only try
+ * the name in question. If a .rb extension is specified, JRuby will only try
  * those extensions when searching. If a .so, .o, .dll, or .jar extension is specified, JRuby
  * will only try .so or .jar when searching. Otherwise, JRuby goes through the known suffixes
  * (.rb, .rb.ast.ser, .so, and .jar) and tries to find a library with this name. The process for finding a library follows this order
@@ -122,10 +121,10 @@ import org.jruby.util.PreparsedScript;
 public class LoadService {
     protected static final String JRUBY_BUILTIN_SUFFIX = &quot;.rb&quot;;
 
-    protected static final String[] sourceSuffixes = { &quot;.rb&quot;, &quot;.rb.ast.ser&quot; };
+    protected static final String[] sourceSuffixes = { &quot;.rb&quot; };
     protected static final String[] extensionSuffixes = { &quot;.so&quot;, &quot;.jar&quot; };
-    protected static final String[] allSuffixes = { &quot;.rb&quot;, &quot;.rb.ast.ser&quot;, &quot;.so&quot;, &quot;.jar&quot; };
-    protected static final Pattern sourcePattern = Pattern.compile(&quot;\\.(?:rb|rb\\.ast\\.ser)$&quot;);
+    protected static final String[] allSuffixes = { &quot;.rb&quot;, &quot;.so&quot;, &quot;.jar&quot; };
+    protected static final Pattern sourcePattern = Pattern.compile(&quot;\\.(?:rb)$&quot;);
     protected static final Pattern extensionPattern = Pattern.compile(&quot;\\.(?:so|o|dll|jar)$&quot;);
 
     protected final RubyArray loadPath;
@@ -382,8 +381,6 @@ public class LoadService {
 
         if (file.endsWith(&quot;.jar&quot;)) {
             return new JarredScript(resource);
-        } else if (file.endsWith(&quot;.rb.ast.ser&quot;)) {
-        	return new PreparsedScript(resource);
         } else {
             return new ExternalScript(resource, file);
         }
@@ -397,8 +394,6 @@ public class LoadService {
 
         if (file.endsWith(&quot;.jar&quot;)) {
             return new JarredScript(resource);
-        } else if (file.endsWith(&quot;.rb.ast.ser&quot;)) {
-        	return new PreparsedScript(resource);
         } else {
             return new ExternalScript(resource, file);
         }</diff>
      <filename>src/org/jruby/runtime/load/LoadService.java</filename>
    </modified>
    <modified>
      <diff>@@ -30,18 +30,16 @@
  ***** END LICENSE BLOCK *****/
 package org.jruby.util;
 
-import java.io.BufferedInputStream;
+import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStream;
+import java.io.InputStreamReader;
 
-import org.ablaf.ast.IAstDecoder;
 import org.jruby.Ruby;
-import org.jruby.ast.Node;
-import org.jruby.ast.util.RubyAstMarshal;
 import org.jruby.runtime.load.Library;
 
 /**
- * Loading of pre-parsed, serialized, Ruby scripts that are built into JRuby.
+ * Loading of Ruby scripts that are built into JRuby.
  */
 public class BuiltinScript implements Library {
     private final String name;
@@ -51,21 +49,11 @@ public class BuiltinScript implements Library {
     }
 
     public void load(Ruby runtime) throws IOException {
-        runtime.loadNode(&quot;jruby builtin&quot;, getNode(runtime));
-    }
-
-    private Node getNode(Ruby runtime) throws IOException {
-        String resourceName = &quot;/builtin/&quot; + name + &quot;.rb.ast.ser&quot;;
+        String resourceName = &quot;/builtin/&quot; + name + &quot;.rb&quot;;
         InputStream in = getClass().getResourceAsStream(resourceName);
-        if (in == null) {
-            throw runtime.newIOError(&quot;Resource not found: &quot; + resourceName);
-        }
-        in = new BufferedInputStream(in);
-        IAstDecoder decoder = RubyAstMarshal.getInstance().openDecoder(in);
-        try {
-        	return decoder.readNode();
-        } finally {
-        	decoder.close();
-        }
+
+        if (in == null) throw runtime.newIOError(&quot;Resource not found: &quot; + resourceName);
+
+        runtime.evalScript(new BufferedReader(new InputStreamReader(in)), name);
     }
 }</diff>
      <filename>src/org/jruby/util/BuiltinScript.java</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>.externalToolBuilders/Serialize Builtin Files.launch</filename>
    </removed>
    <removed>
      <filename>src/org/jruby/util/PreparsedScript.java</filename>
    </removed>
    <removed>
      <filename>src/org/jruby/util/ant/JRubySerialize.java</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>632666459607151a0fc09d46d301fb9ea8ba3a1e</id>
    </parent>
  </parents>
  <author>
    <name>enebo</name>
    <email>enebo@961051c9-f516-0410-bf72-c9f7e237a7b7</email>
  </author>
  <url>http://github.com/vvs/jruby/commit/44da7d71e63482fd1f9b6b1ef32caa4a3b516172</url>
  <id>44da7d71e63482fd1f9b6b1ef32caa4a3b516172</id>
  <committed-date>2007-05-24T15:00:02-07:00</committed-date>
  <authored-date>2007-05-24T15:00:02-07:00</authored-date>
  <message>JRUBY-994: Remove jruby serialization feature

git-svn-id: https://svn.codehaus.org/jruby/trunk/jruby@3734 961051c9-f516-0410-bf72-c9f7e237a7b7</message>
  <tree>d6c7a3b092635c9f0ba06c31eb98053070555c13</tree>
  <committer>
    <name>enebo</name>
    <email>enebo@961051c9-f516-0410-bf72-c9f7e237a7b7</email>
  </committer>
</commit>
