Permalink
Browse files

Massive reconfiguration of the cvs directory structure:

mozilla/js/rhino/org is now distributed between
mozilla/js/rhino/src and mozilla/js/rhino/toolsrc.
The build.xml has been split in three.
Docs now live in the project directory.

These changes mean that the cvs directories mirror the distribution and thus a distribution
will build the same way as a cvs build.
  • Loading branch information...
1 parent 571c398 commit 21edd57ff4cde7e58e59f45bcf55d8105c002490 @norrisboyd norrisboyd committed Apr 24, 2001
Showing with 3,717 additions and 103,599 deletions.
  1. 0 built-on-date → build-date
  2. +25 −109 build.xml
  3. +161 −0 docs/RhinoDebugger.html
  4. +128 −0 docs/api.html
  5. +43 −0 docs/bsf.html
  6. +129 −0 docs/changes.html
  7. +98 −0 docs/debugApi.html
  8. +361 −0 docs/debugger.html
  9. +149 −0 docs/doc.html
  10. +59 −0 docs/download.html
  11. +278 −0 docs/embedding-engine.html
  12. +89 −0 docs/examples.html
  13. +81 −0 docs/faq.html
  14. +48 −0 docs/footprint.html
  15. +38 −0 docs/help.html
  16. +45 −0 docs/history.html
  17. +75 −0 docs/index.html
  18. +66 −0 docs/javaone.html
  19. +162 −0 docs/js15.html
  20. +82 −0 docs/jsc.html
  21. BIN docs/jsdebug.jpg
  22. +86 −0 docs/limits.html
  23. BIN docs/lookup.gif
  24. +68 −0 docs/opt.html
  25. +149 −0 docs/overview.html
  26. +3 −0 docs/owner.js
  27. +83 −0 docs/perf.html
  28. BIN docs/rhino50.jpg
  29. +138 −0 docs/runtime.html
  30. BIN docs/scopes.gif
  31. +174 −0 docs/scopes.html
  32. BIN docs/scriptjava-frame.jpg
  33. +199 −0 docs/scriptjava.html
  34. BIN docs/scriptjavaframe.jpg
  35. +128 −0 docs/shell.html
  36. +31 −0 docs/tools.html
  37. +336 −0 docs/tutorial.html
  38. +78 −0 docs/users.html
  39. +0 −1,082 org/mozilla/classfile/ByteCode.java
  40. +0 −1,465 org/mozilla/classfile/ClassFileWriter.java
  41. +0 −76 org/mozilla/classfile/ClassManager.java
  42. +0 −130 org/mozilla/javascript/Arguments.java
  43. +0 −75 org/mozilla/javascript/BinaryDigitReader.java
  44. +0 −48 org/mozilla/javascript/ClassDefinitionException.java
  45. +0 −63 org/mozilla/javascript/ClassNameHelper.java
  46. +0 −57 org/mozilla/javascript/ClassOutput.java
  47. +0 −1,952 org/mozilla/javascript/Context.java
  48. +0 −53 org/mozilla/javascript/ContextListener.java
  49. +0 −1,197 org/mozilla/javascript/DToA.java
  50. +0 −111 org/mozilla/javascript/DebuggableEngineImpl.java
  51. +0 −63 org/mozilla/javascript/DefaultErrorReporter.java
  52. +0 −250 org/mozilla/javascript/Delegator.java
  53. +0 −152 org/mozilla/javascript/EcmaError.java
  54. +0 −103 org/mozilla/javascript/ErrorReporter.java
  55. +0 −56 org/mozilla/javascript/EvaluatorException.java
  56. +0 −341 org/mozilla/javascript/FlattenedObject.java
  57. +0 −86 org/mozilla/javascript/Function.java
  58. +0 −94 org/mozilla/javascript/FunctionNode.java
  59. +0 −659 org/mozilla/javascript/FunctionObject.java
  60. +0 −1,056 org/mozilla/javascript/IRFactory.java
  61. +0 −287 org/mozilla/javascript/IdFunction.java
  62. +0 −499 org/mozilla/javascript/IdScriptable.java
  63. +0 −176 org/mozilla/javascript/ImporterTopLevel.java
  64. +0 −112 org/mozilla/javascript/InterpretedFunction.java
  65. +0 −96 org/mozilla/javascript/InterpretedScript.java
  66. +0 −2,016 org/mozilla/javascript/Interpreter.java
  67. +0 −134 org/mozilla/javascript/InterpreterData.java
  68. +0 −77 org/mozilla/javascript/InterpreterFrame.java
  69. +0 −294 org/mozilla/javascript/Invoker.java
  70. +0 −926 org/mozilla/javascript/JavaAdapter.java
  71. +0 −589 org/mozilla/javascript/JavaMembers.java
  72. +0 −109 org/mozilla/javascript/JavaScriptException.java
  73. +0 −104 org/mozilla/javascript/Label.java
  74. +0 −80 org/mozilla/javascript/LabelTable.java
  75. +0 −99 org/mozilla/javascript/LazilyLoadedCtor.java
  76. +0 −412 org/mozilla/javascript/LineBuffer.java
  77. +0 −114 org/mozilla/javascript/ListenerCollection.java
  78. +0 −79 org/mozilla/javascript/LocalVariable.java
  79. +0 −1,116 org/mozilla/javascript/NativeArray.java
  80. +0 −157 org/mozilla/javascript/NativeBoolean.java
  81. +0 −133 org/mozilla/javascript/NativeCall.java
  82. +0 −1,796 org/mozilla/javascript/NativeDate.java
  83. +0 −146 org/mozilla/javascript/NativeError.java
  84. +0 −1,030 org/mozilla/javascript/NativeFunction.java
  85. +0 −792 org/mozilla/javascript/NativeGlobal.java
  86. +0 −155 org/mozilla/javascript/NativeJavaArray.java
  87. +0 −275 org/mozilla/javascript/NativeJavaClass.java
  88. +0 −87 org/mozilla/javascript/NativeJavaConstructor.java
  89. +0 −502 org/mozilla/javascript/NativeJavaMethod.java
  90. +0 −929 org/mozilla/javascript/NativeJavaObject.java
  91. +0 −236 org/mozilla/javascript/NativeJavaPackage.java
  92. +0 −395 org/mozilla/javascript/NativeMath.java
  93. +0 −271 org/mozilla/javascript/NativeNumber.java
  94. +0 −201 org/mozilla/javascript/NativeObject.java
  95. +0 −170 org/mozilla/javascript/NativeScript.java
  96. +0 −979 org/mozilla/javascript/NativeString.java
  97. +0 −169 org/mozilla/javascript/NativeWith.java
  98. +0 −469 org/mozilla/javascript/Node.java
  99. +0 −734 org/mozilla/javascript/NodeTransformer.java
  100. +0 −52 org/mozilla/javascript/NotAFunctionException.java
  101. +0 −1,487 org/mozilla/javascript/Parser.java
  102. +0 −92 org/mozilla/javascript/PreorderNodeIterator.java
  103. +0 −65 org/mozilla/javascript/PropertyException.java
  104. +0 −68 org/mozilla/javascript/RegExpProxy.java
  105. +0 −51 org/mozilla/javascript/ScopeInitializer.java
  106. +0 −73 org/mozilla/javascript/Script.java
  107. +0 −2,166 org/mozilla/javascript/ScriptRuntime.java
  108. +0 −339 org/mozilla/javascript/Scriptable.java
  109. +0 −1,792 org/mozilla/javascript/ScriptableObject.java
  110. +0 −148 org/mozilla/javascript/SecuritySupport.java
  111. +0 −69 org/mozilla/javascript/ShallowNodeIterator.java
  112. +0 −222 org/mozilla/javascript/SourceTextItem.java
  113. +0 −82 org/mozilla/javascript/SourceTextManager.java
  114. +0 −77 org/mozilla/javascript/Synchronizer.java
  115. +0 −182 org/mozilla/javascript/TestScan.java
  116. +0 −1,394 org/mozilla/javascript/TokenStream.java
  117. +0 −138 org/mozilla/javascript/Undefined.java
  118. +0 −146 org/mozilla/javascript/VariableTable.java
  119. +0 −68 org/mozilla/javascript/WrapHandler.java
  120. +0 −115 org/mozilla/javascript/WrappedException.java
  121. +0 −55 org/mozilla/javascript/Wrapper.java
  122. +0 −51 org/mozilla/javascript/debug/DebugFrame.java
  123. +0 −101 org/mozilla/javascript/debug/DebugReader.java
  124. +0 −92 org/mozilla/javascript/debug/DebuggableEngine.java
  125. +0 −85 org/mozilla/javascript/debug/DebuggableScript.java
  126. +0 −51 org/mozilla/javascript/debug/Debugger.java
  127. +0 −696 org/mozilla/javascript/optimizer/Block.java
  128. +0 −3,856 org/mozilla/javascript/optimizer/Codegen.java
  129. +0 −130 org/mozilla/javascript/optimizer/DataFlowBitSet.java
  130. +0 −92 org/mozilla/javascript/optimizer/FatBlock.java
  131. +0 −81 org/mozilla/javascript/optimizer/JavaScriptClassLoader.java
  132. +0 −181 org/mozilla/javascript/optimizer/OptClassNameHelper.java
  133. +0 −128 org/mozilla/javascript/optimizer/OptFunctionNode.java
  134. +0 −66 org/mozilla/javascript/optimizer/OptIRFactory.java
  135. +0 −98 org/mozilla/javascript/optimizer/OptLocalVariable.java
  136. +0 −314 org/mozilla/javascript/optimizer/OptRuntime.java
  137. +0 −191 org/mozilla/javascript/optimizer/OptTransformer.java
  138. +0 −74 org/mozilla/javascript/optimizer/OptVariableTable.java
  139. +0 −1,082 org/mozilla/javascript/optimizer/Optimizer.java
  140. +0 −94 org/mozilla/javascript/optimizer/StmtNodeIterator.java
  141. +0 −62 org/mozilla/javascript/optimizer/TypeEvent.java
  142. +0 −2,391 org/mozilla/javascript/regexp/NativeRegExp.java
  143. +0 −195 org/mozilla/javascript/regexp/NativeRegExpCtor.java
  144. +0 −576 org/mozilla/javascript/regexp/RegExpImpl.java
  145. +0 −62 org/mozilla/javascript/regexp/SubString.java
  146. +0 −567 org/mozilla/javascript/resources/Messages.properties
  147. +0 −36 org/mozilla/javascript/resources/Security.properties
  148. +0 −177 org/mozilla/javascript/tools/ToolErrorReporter.java
  149. +0 −3,165 org/mozilla/javascript/tools/debugger/JSDebugger.java
  150. +0 −43 org/mozilla/javascript/tools/debugger/ScopeProvider.java
  151. +0 −418 org/mozilla/javascript/tools/debugger/VariableModel.java
  152. +0 −289 org/mozilla/javascript/tools/jsc/Main.java
  153. +0 −296 org/mozilla/javascript/tools/shell/ConsoleTextArea.java
  154. +0 −135 org/mozilla/javascript/tools/shell/Environment.java
  155. +0 −383 org/mozilla/javascript/tools/shell/Global.java
  156. +0 −211 org/mozilla/javascript/tools/shell/JSConsole.java
  157. +0 −372 org/mozilla/javascript/tools/shell/Main.java
  158. +37 −0 src/build.xml
  159. 0 { → src}/manifest
  160. +0 −1,082 src/org/mozilla/classfile/ByteCode.java
  161. +0 −1,465 src/org/mozilla/classfile/ClassFileWriter.java
  162. +0 −76 src/org/mozilla/classfile/ClassManager.java
  163. +0 −130 src/org/mozilla/javascript/Arguments.java
  164. +0 −75 src/org/mozilla/javascript/BinaryDigitReader.java
  165. +0 −48 src/org/mozilla/javascript/ClassDefinitionException.java
  166. +0 −63 src/org/mozilla/javascript/ClassNameHelper.java
  167. +0 −57 src/org/mozilla/javascript/ClassOutput.java
  168. +0 −1,952 src/org/mozilla/javascript/Context.java
  169. +0 −53 src/org/mozilla/javascript/ContextListener.java
  170. +0 −1,197 src/org/mozilla/javascript/DToA.java
  171. +0 −111 src/org/mozilla/javascript/DebuggableEngineImpl.java
  172. +0 −63 src/org/mozilla/javascript/DefaultErrorReporter.java
  173. +0 −250 src/org/mozilla/javascript/Delegator.java
  174. +0 −152 src/org/mozilla/javascript/EcmaError.java
  175. +0 −103 src/org/mozilla/javascript/ErrorReporter.java
  176. +0 −56 src/org/mozilla/javascript/EvaluatorException.java
  177. +0 −341 src/org/mozilla/javascript/FlattenedObject.java
  178. +0 −86 src/org/mozilla/javascript/Function.java
  179. +0 −94 src/org/mozilla/javascript/FunctionNode.java
  180. +0 −659 src/org/mozilla/javascript/FunctionObject.java
  181. +0 −1,056 src/org/mozilla/javascript/IRFactory.java
  182. +0 −287 src/org/mozilla/javascript/IdFunction.java
  183. +0 −499 src/org/mozilla/javascript/IdScriptable.java
  184. +0 −176 src/org/mozilla/javascript/ImporterTopLevel.java
  185. +0 −112 src/org/mozilla/javascript/InterpretedFunction.java
  186. +0 −96 src/org/mozilla/javascript/InterpretedScript.java
  187. +0 −2,016 src/org/mozilla/javascript/Interpreter.java
  188. +0 −134 src/org/mozilla/javascript/InterpreterData.java
  189. +0 −77 src/org/mozilla/javascript/InterpreterFrame.java
  190. +0 −294 src/org/mozilla/javascript/Invoker.java
  191. +0 −926 src/org/mozilla/javascript/JavaAdapter.java
  192. +0 −589 src/org/mozilla/javascript/JavaMembers.java
  193. +0 −109 src/org/mozilla/javascript/JavaScriptException.java
  194. +0 −104 src/org/mozilla/javascript/Label.java
  195. +0 −80 src/org/mozilla/javascript/LabelTable.java
  196. +0 −99 src/org/mozilla/javascript/LazilyLoadedCtor.java
  197. +0 −412 src/org/mozilla/javascript/LineBuffer.java
  198. +0 −114 src/org/mozilla/javascript/ListenerCollection.java
  199. +0 −79 src/org/mozilla/javascript/LocalVariable.java
  200. +0 −1,116 src/org/mozilla/javascript/NativeArray.java
  201. +0 −157 src/org/mozilla/javascript/NativeBoolean.java
  202. +0 −133 src/org/mozilla/javascript/NativeCall.java
  203. +0 −1,796 src/org/mozilla/javascript/NativeDate.java
  204. +0 −146 src/org/mozilla/javascript/NativeError.java
  205. +0 −1,030 src/org/mozilla/javascript/NativeFunction.java
  206. +0 −792 src/org/mozilla/javascript/NativeGlobal.java
  207. +0 −155 src/org/mozilla/javascript/NativeJavaArray.java
  208. +0 −275 src/org/mozilla/javascript/NativeJavaClass.java
  209. +0 −87 src/org/mozilla/javascript/NativeJavaConstructor.java
  210. +0 −502 src/org/mozilla/javascript/NativeJavaMethod.java
  211. +0 −929 src/org/mozilla/javascript/NativeJavaObject.java
  212. +0 −236 src/org/mozilla/javascript/NativeJavaPackage.java
  213. +0 −395 src/org/mozilla/javascript/NativeMath.java
  214. +0 −271 src/org/mozilla/javascript/NativeNumber.java
  215. +0 −201 src/org/mozilla/javascript/NativeObject.java
  216. +0 −170 src/org/mozilla/javascript/NativeScript.java
  217. +0 −979 src/org/mozilla/javascript/NativeString.java
  218. +0 −169 src/org/mozilla/javascript/NativeWith.java
  219. +0 −469 src/org/mozilla/javascript/Node.java
  220. +0 −734 src/org/mozilla/javascript/NodeTransformer.java
  221. +0 −52 src/org/mozilla/javascript/NotAFunctionException.java
  222. +0 −1,487 src/org/mozilla/javascript/Parser.java
  223. +0 −92 src/org/mozilla/javascript/PreorderNodeIterator.java
  224. +0 −65 src/org/mozilla/javascript/PropertyException.java
  225. +0 −68 src/org/mozilla/javascript/RegExpProxy.java
  226. +0 −51 src/org/mozilla/javascript/ScopeInitializer.java
  227. +0 −73 src/org/mozilla/javascript/Script.java
  228. +0 −2,166 src/org/mozilla/javascript/ScriptRuntime.java
  229. +0 −339 src/org/mozilla/javascript/Scriptable.java
  230. +0 −1,792 src/org/mozilla/javascript/ScriptableObject.java
  231. +0 −148 src/org/mozilla/javascript/SecuritySupport.java
  232. +0 −69 src/org/mozilla/javascript/ShallowNodeIterator.java
  233. +0 −222 src/org/mozilla/javascript/SourceTextItem.java
  234. +0 −82 src/org/mozilla/javascript/SourceTextManager.java
  235. +0 −77 src/org/mozilla/javascript/Synchronizer.java
  236. +0 −1,394 src/org/mozilla/javascript/TokenStream.java
  237. +0 −138 src/org/mozilla/javascript/Undefined.java
  238. +0 −146 src/org/mozilla/javascript/VariableTable.java
  239. +0 −68 src/org/mozilla/javascript/WrapHandler.java
  240. +0 −115 src/org/mozilla/javascript/WrappedException.java
  241. +0 −55 src/org/mozilla/javascript/Wrapper.java
  242. +0 −51 src/org/mozilla/javascript/debug/DebugFrame.java
  243. +0 −101 src/org/mozilla/javascript/debug/DebugReader.java
  244. +0 −92 src/org/mozilla/javascript/debug/DebuggableEngine.java
  245. +0 −85 src/org/mozilla/javascript/debug/DebuggableScript.java
  246. +0 −51 src/org/mozilla/javascript/debug/Debugger.java
  247. +0 −696 src/org/mozilla/javascript/optimizer/Block.java
  248. +0 −3,856 src/org/mozilla/javascript/optimizer/Codegen.java
  249. +0 −130 src/org/mozilla/javascript/optimizer/DataFlowBitSet.java
  250. +0 −92 src/org/mozilla/javascript/optimizer/FatBlock.java
  251. +0 −81 src/org/mozilla/javascript/optimizer/JavaScriptClassLoader.java
  252. +0 −181 src/org/mozilla/javascript/optimizer/OptClassNameHelper.java
  253. +0 −128 src/org/mozilla/javascript/optimizer/OptFunctionNode.java
  254. +0 −66 src/org/mozilla/javascript/optimizer/OptIRFactory.java
  255. +0 −98 src/org/mozilla/javascript/optimizer/OptLocalVariable.java
  256. +0 −314 src/org/mozilla/javascript/optimizer/OptRuntime.java
  257. +0 −191 src/org/mozilla/javascript/optimizer/OptTransformer.java
  258. +0 −74 src/org/mozilla/javascript/optimizer/OptVariableTable.java
  259. +0 −1,082 src/org/mozilla/javascript/optimizer/Optimizer.java
  260. +0 −94 src/org/mozilla/javascript/optimizer/StmtNodeIterator.java
  261. +0 −62 src/org/mozilla/javascript/optimizer/TypeEvent.java
  262. +0 −2,391 src/org/mozilla/javascript/regexp/NativeRegExp.java
  263. +0 −195 src/org/mozilla/javascript/regexp/NativeRegExpCtor.java
  264. +0 −576 src/org/mozilla/javascript/regexp/RegExpImpl.java
  265. +0 −62 src/org/mozilla/javascript/regexp/SubString.java
  266. +0 −567 src/org/mozilla/javascript/resources/Messages.properties
  267. +0 −36 src/org/mozilla/javascript/resources/Security.properties
  268. +90 −0 toolsrc/build.xml
  269. +0 −177 toolsrc/org/mozilla/javascript/tools/ToolErrorReporter.java
  270. +0 −3,165 toolsrc/org/mozilla/javascript/tools/debugger/Main.java
  271. +0 −43 toolsrc/org/mozilla/javascript/tools/debugger/ScopeProvider.java
  272. +0 −418 toolsrc/org/mozilla/javascript/tools/debugger/VariableModel.java
  273. +0 −289 toolsrc/org/mozilla/javascript/tools/jsc/Main.java
  274. +0 −296 toolsrc/org/mozilla/javascript/tools/shell/ConsoleTextArea.java
  275. +0 −135 toolsrc/org/mozilla/javascript/tools/shell/Environment.java
  276. +0 −383 toolsrc/org/mozilla/javascript/tools/shell/Global.java
  277. +0 −211 toolsrc/org/mozilla/javascript/tools/shell/JSConsole.java
  278. +0 −372 toolsrc/org/mozilla/javascript/tools/shell/Main.java
File renamed without changes.
View
134 build.xml
@@ -9,37 +9,31 @@ Requires Ant version 1.2
<target name="properties">
<property name="name" value="rhino"/>
<property name="Name" value="Rhino"/>
+ <property name="version" value="1_5R2pre"/>
<property name="rhino.jar" value="js.jar"/>
<property name="build.compiler" value="classic"/>
<property name="debug" value="off"/>
- <property name="src.dir" value="."/>
- <property name="src.examples" value="${src.dir}/examples"/>
- <property name="src.debugger"
- value="${src.dir}/org/mozilla/javascript/tools/debugger"/>
+ <property name="src.dir" value="src"/>
+ <property name="toolsrc.dir" value="toolsrc"/>
+ <property name="src.examples" value="examples"/>
<property name="build.dir" value="./build"/>
<property name="build.dest" value="${build.dir}/classes"/>
- <property name="dist.name" value="rhino15R2pre"/>
+ <property name="dist.name" value="rhino${version}"/>
<property name="dist.dir" value="${build.dir}/${dist.name}"/>
<property name="dist.src" value="${dist.dir}/src"/>
+ <property name="dist.toolsrc" value="${dist.dir}/toolsrc"/>
<property name="dist.examples" value="${dist.dir}/examples"/>
<property name="dist.docs" value="${dist.dir}/docs"/>
<property name="dist.apidocs" value="${dist.docs}/apidocs"/>
- <property name="dist.file" value="rhinoTip.zip"/>
+ <property name="dist.file" value="rhino${version}.zip"/>
<property file="apiClasses.properties"/>
- <property name="cvs.javasrc.dir" value="${src.dir}"/>
- <property name="cvs.docsrc.dir" value="../../../mozilla-org/html/rhino/"/>
- <property name="dist.javasrc.dir" value="${src.dir}/src"/>
+ <property name="docsrc.dir" value="docs"/>
<property name="dist.docsrc.dir" value="${src.dir}/docs"/>
- <available file="${cvs.javasrc.dir}/org" property="in-cvs-tree"/>
- <available file="${src.debugger}/AbstractCellEditor.java"
- property="swing-ex-available"/>
- <available classname="java.lang.reflect.Proxy"
- property="jdk1.3"/>
</target>
<target name="init" depends="properties">
@@ -50,99 +44,28 @@ Requires Ant version 1.2
<mkdir dir="${build.dest}"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${dist.src}"/>
+ <mkdir dir="${dist.toolsrc}"/>
<mkdir dir="${dist.examples}"/>
<mkdir dir="${dist.docs}"/>
<mkdir dir="${dist.apidocs}"/>
</target>
- <target name="get-swing-ex" unless="swing-ex-available">
- <!-- Download source from Sun's site, unzip it, remove
- the files we don't need, and change the package
- -->
- <get src="http://java.sun.com/products/jfc/tsc/articles/treetable2/downloads/src.zip" dest="${build.dir}/swingExSrc.zip"/>
- <unzip src="${build.dir}/swingExSrc.zip" dest="${src.debugger}"/>
- <delete file="${src.debugger}/FileSystemModel2.java" />
- <delete file="${src.debugger}/MergeSort.java" />
- <delete file="${src.debugger}/TreeTableExample2.java" />
- <replace file="${src.debugger}/AbstractCellEditor.java">
- <replacetoken>import java.awt.Component;</replacetoken>
- <replacevalue>
- package org.mozilla.javascript.tools.debugger;
- import java.awt.Component;
- </replacevalue>
- </replace>
- <replace file="${src.debugger}/AbstractTreeTableModel.java">
- <replacetoken>import javax.swing.tree.*;</replacetoken>
- <replacevalue>
- package org.mozilla.javascript.tools.debugger;
- import javax.swing.tree.*;
- </replacevalue>
- </replace>
- <replace file="${src.debugger}/JTreeTable.java">
- <replacetoken>import javax.swing.*;</replacetoken>
- <replacevalue>
- package org.mozilla.javascript.tools.debugger;
- import javax.swing.*;
- </replacevalue>
- </replace>
- <replace file="${src.debugger}/TreeTableModel.java">
- <replacetoken>import javax.swing.tree.TreeModel;</replacetoken>
- <replacevalue>
- package org.mozilla.javascript.tools.debugger;
- import javax.swing.tree.TreeModel;
- </replacevalue>
- </replace>
- <replace file="${src.debugger}/TreeTableModelAdapter.java">
- <replacetoken>import javax.swing.JTree;</replacetoken>
- <replacevalue>
- package org.mozilla.javascript.tools.debugger;
- import javax.swing.JTree;
- </replacevalue>
- </replace>
+ <target name="compile-src" depends="prepare">
+ <ant dir="${src.dir}"/>
</target>
- <target name="compile-from-cvs"
- if="in-cvs-tree"
- depends="prepare,get-swing-ex">
- <javac srcdir="${cvs.javasrc.dir}"
- destdir="${build.dest}"
- includes="org/**/*.java"
- deprecation="on"
- debug="${debug}">
- <exclude name="**/debugger/*.java" unless="jdk1.3"/>
- </javac>
+ <target name="compile-toolsrc" depends="prepare">
+ <ant dir="${toolsrc.dir}"/>
</target>
- <target name="compile-from-dist" unless="in-cvs-tree" depends="prepare">
- <javac srcdir="${dist.javasrc.dir}"
- destdir="${build.dest}"
- includes="org/**/*.java"
- deprecation="on"
- debug="${debug}" />
- </target>
-
- <target name="compile" depends="compile-from-dist,compile-from-cvs"/>
-
- <target name="copy-properties" depends="prepare">
- <copy todir="${build.dest}">
- <fileset dir="${src.dir}" includes="org/**/*.properties" />
- </copy>
- </target>
+ <target name="compile" depends="compile-src,compile-toolsrc"/>
- <target name="jar" depends="compile,copy-properties">
+ <target name="jar" depends="compile">
<jar jarfile="${dist.dir}/${rhino.jar}"
basedir="${build.dest}"
manifest="${src.dir}/manifest" />
</target>
- <target name="copy-source" depends="prepare">
- <copy todir="${dist.src}">
- <fileset dir="${src.dir}"
- includes="org/**/*.java,org/**/*.properties"
- excludes="**/AbstractCellEditor.java,**/TreeTableModel.java,**/AbstractTreeTableModel.java,**/TreeTableModelAdapter.java,**/JTreeTable.java" />
- </copy>
- </target>
-
<target name="copy-examples" depends="prepare">
<copy todir="${dist.examples}">
<fileset dir="${src.examples}" includes="*.java,*.js,*.html" />
@@ -153,35 +76,28 @@ Requires Ant version 1.2
<tstamp/>
<filter token="datestamp" value="${TODAY}"/>
<copy todir="${dist.dir}" filtering="yes">
- <fileset dir="${src.dir}">
+ <fileset dir=".">
<patternset>
<include name="build.xml"/>
<include name="apiClasses.properties"/>
- <include name="manifest"/>
- <include name="built-on-date"/>
+ <include name="build-date"/>
</patternset>
</fileset>
</copy>
</target>
- <target name="copy-all" depends="copy-source,copy-examples,copy-misc">
+ <target name="copy-all" depends="copy-examples,copy-misc">
</target>
- <target name="copy-docs-cvs" if="in-cvs-tree" depends="prepare">
- <echo message="copy from ${cvs.docsrc.dir}"/>
+ <target name="copy-docs" depends="prepare">
+ <echo message="copy from ${docsrc.dir}"/>
<copy todir="${dist.docs}">
- <fileset dir="${cvs.docsrc.dir}"
+ <fileset dir="${docsrc.dir}"
includes="**/*.html,**/*.jpg,**/*.gif" />
</copy>
</target>
- <target name="copy-docs-dist" unless="in-cvs-tree" depends="prepare">
- <echo message="Docs and source not copied on build from dist."/>
- </target>
-
- <target name="copy-docs" depends="copy-docs-dist,copy-docs-cvs"/>
-
- <target name="javadoc" if="in-cvs-tree" depends="copy-source,copy-docs">
+ <target name="javadoc" depends="compile,copy-docs">
<javadoc sourcefiles="${apiClasses}"
sourcepath="${dist.src}"
destdir="${dist.apidocs}"
@@ -192,9 +108,9 @@ Requires Ant version 1.2
windowtitle="${Name}" />
</target>
- <target name="package" depends="copy-all,jar,javadoc">
- <delete file="${src.dir}/${dist.file}" />
- <zip zipfile="${src.dir}/${dist.file}"
+ <target name="package" depends="copy-all,jar">
+ <delete file="${dist.file}" />
+ <zip zipfile="${dist.file}"
basedir="${build.dir}"
includes="**"
excludes="classes/**" />
View
@@ -0,0 +1,161 @@
+<HTML>
+<HEAD>
+<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
+<META NAME="Generator" CONTENT="Microsoft Word 97">
+<TITLE>1</TITLE>
+</HEAD>
+<BODY>
+
+<OL>
+
+<B><FONT FACE="Arial" SIZE=5 COLOR="#000080"><LI>Using the Rhino JavaScript Debugger</LI>
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The Mozilla Rhino JavaScript engine includes a source-level debugger for debugging JavaScript scripts. The debugger is itself a Java program which you may run as</P>
+</FONT><FONT FACE="Arial" SIZE=2><P ALIGN="JUSTIFY">java org.mozilla.javascript.tools.debugger.JSDebugger [options] [filename.js] [script-arguments]</P>
+</FONT><FONT SIZE=2><P ALIGN="JUSTIFY">where the options are the same as the shell.</P>
+<OL>
+
+<LI><A NAME="_Toc502165108"></FONT><B><FONT FACE="Arial" SIZE=4 COLOR="#000080">Features</A></LI>
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The Rhino JavaScript Debugger can debug scripts running in multiple threads and provides facilities to set and clear breakpoints, control execution, view variables, and evaluate arbitrary JavaScript code in the current scope of an executing script.</P>
+<OL>
+
+<LI><A NAME="_Toc502165109"></FONT><B><FONT FACE="Arial" COLOR="#000080">Console Window</A></LI>
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The debugger redirects the </FONT><FONT FACE="Arial" SIZE=2>System.out</FONT><FONT SIZE=2>, </FONT><FONT FACE="Arial" SIZE=2>System.in</FONT><FONT SIZE=2>, and </FONT><FONT FACE="Arial" SIZE=2>System.err</FONT><FONT SIZE=2> streams to an internal JavaScript console window which provides an editable command line for you to enter JavaScript code and view system output. The console window maintains a history of the commands you have entered. You may move backward and forward through the history list by pressing the Up/Down arrow keys on the keyboard.</P>
+<LI><A NAME="_Toc502165110"></FONT><B><FONT FACE="Arial" COLOR="#000080">Opening Scripts</A></LI>
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">You may select the <B><I>File-&gt;Open</B></I> menu item on the menu bar to load JavaScript scripts contained in files. This action will display a file-selection dialog box prompting you for the location of a script to load. The selected file will be compiled and displayed in a new window.</P>
+</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Running Scripts</LI>
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">You may select the <B><I>File-&gt;Run</B></I> menu item on the menu bar to execute JavaScript scripts contained in files. This action will display a file-selection dialog box prompting you for the location of a script to execute. The loaded script will be run in a new thread and control will be given to the debugger on its first instruction.</P>
+<LI><A NAME="_Toc502165111"></FONT><B><FONT FACE="Arial" COLOR="#000080">Controlling Execution</A></LI>
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The debugger provides the following facilities for you to control the execution of scripts you are debugging:</P>
+<OL>
+
+</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Step Into</LI></OL>
+</OL>
+</OL>
+</OL>
+
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">To single step entering any function calls, you may do any of the following:</P>
+
+<UL>
+<P ALIGN="JUSTIFY"><LI>Select the <B><I>Debug-&gt;Step Into </B></I>menu item on the menu bar</LI></P>
+<P ALIGN="JUSTIFY"><LI>Press the <B><I>Step Into</B></I> button on the toolbar</LI></P>
+<P ALIGN="JUSTIFY"><LI>Press the F11 key on the keyboard</LI></P></UL>
+
+<P ALIGN="JUSTIFY">Execution will resume. If the current line in the script contains a function call control will return to the debugger upon entry into the function. Otherwise control will return to the debugger at the next line in the current function.</P>
+<OL>
+<OL>
+<OL>
+<OL>
+
+</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Step Over</LI></OL>
+</OL>
+</OL>
+</OL>
+
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">To single step to the next line in the current function, you may do any of the following:</P>
+
+<UL>
+<P ALIGN="JUSTIFY"><LI>Select the <B><I>Debug-&gt;Step Over</B></I> menu item on the menu bar</LI></P>
+<P ALIGN="JUSTIFY"><LI>Press the <B><I>Step Over</B></I> button on the toolbar</LI></P>
+<P ALIGN="JUSTIFY"><LI>Press the F7 key on the keyboard</LI></P></UL>
+
+<P ALIGN="JUSTIFY">Execution will resume but control will return to the debugger at the next line in the current function or top-level script.</P>
+<OL>
+<OL>
+<OL>
+<OL>
+
+</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Step Out</LI></OL>
+</OL>
+</OL>
+</OL>
+
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">To continue execution until the current function returns you may do any of the following:</P>
+
+<UL>
+<P ALIGN="JUSTIFY"><LI>Select the <B><I>Debug-&gt;Step Out</B></I> menu item on the menu bar</LI></P>
+<P ALIGN="JUSTIFY"><LI>Press the <B><I>Step Out</B></I> button on the toolbar</LI></P>
+<P ALIGN="JUSTIFY"><LI>Press the F8 key on the keyboard</LI></P></UL>
+
+<P ALIGN="JUSTIFY">Execution will resume until the current function returns or a breakpoint is hit.</P>
+<OL>
+<OL>
+<OL>
+<OL>
+
+</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Go</LI></OL>
+</OL>
+</OL>
+</OL>
+
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">To resume execution of a script you may do any of the following:</P>
+
+<UL>
+<P ALIGN="JUSTIFY"><LI>Select the <B><I>Debug-&gt;Go</B></I> menu item on the menu bar</LI></P>
+<P ALIGN="JUSTIFY"><LI>Press the <B><I>Go</B></I> button on the toolbar</LI></P>
+<P ALIGN="JUSTIFY"><LI>Press the F5 key on the keyboard</LI></P></UL>
+
+<P ALIGN="JUSTIFY">Execution will resume until a breakpoint is hit or the script completes.</P>
+<P ALIGN="JUSTIFY">&nbsp;</P>
+<OL>
+<OL>
+<OL>
+<OL>
+
+</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>Break</LI></OL>
+</OL>
+</OL>
+</OL>
+
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">To stop all running scripts and give control to the debugger you may do any of the following:</P>
+
+<UL>
+<P ALIGN="JUSTIFY"><LI>Select the <B><I>Debug-&gt;Break</B></I> menu item on the menu bar</LI></P>
+<P ALIGN="JUSTIFY"><LI>Press the <B><I>Break</B></I> button on the toolbar</LI></P>
+<P ALIGN="JUSTIFY"><LI>Press the Pause/Break key on the keyboard</LI></P></UL>
+
+<OL>
+<OL>
+<OL>
+
+<LI><A NAME="_Toc502165112"></FONT><B><FONT FACE="Arial" COLOR="#000080">Moving Up and Down the Stack</A></LI>
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The lower-left (dockable) pane in the debugger main window contains a combo-box labeled &quot;Context:&quot; which displays the current stack of the executing script. You may move up and down the stack by selecting an entry in the combo-box. When you select a stack frame the variables and watch windows are updated to reflect the names and values of the variables visible at that scope.</P>
+<LI><A NAME="_Toc502165113"></FONT><B><FONT FACE="Arial" COLOR="#000080">Setting and Clearing Breakpoints</A></LI></OL>
+</OL>
+</OL>
+
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The main desktop of the debugger contains file windows which display the contents of each script you are debugging. You may set a breakpoint in a script by doing one of the following:</P>
+
+<UL>
+<P ALIGN="JUSTIFY"><LI>Place the cursor on the line at which you want to set a breakpoint and right-click with the mouse. This action will display a pop-up menu. Select the <B><I>Set Breakpoint</B></I> menu item. </LI></P>
+<P ALIGN="JUSTIFY"><LI>Simply single-click on the line number of the line at which you want to set a breakpoint.</LI></P></UL>
+
+<P ALIGN="JUSTIFY">If the selected line contains executable code a red dot will appear next to the line number and a breakpoint will be set at that location.</P>
+<P ALIGN="JUSTIFY">You may set clear breakpoint in a script by doing one of the following:</P>
+
+<UL>
+<P ALIGN="JUSTIFY"><LI>Place the cursor on the line at which you want to clear a breakpoint and right-click with the mouse. This action will display a pop-up menu. Select the <B><I>Clear Breakpoint</B></I> menu item. </LI></P>
+<P ALIGN="JUSTIFY"><LI>Simply single-click on the red dot or the line number of the line at which you want to clear a breakpoint.</LI></P></UL>
+
+<P ALIGN="JUSTIFY">The red dot will disappear and the breakpoint at that location will be cleared.</P>
+<OL>
+<OL>
+<OL>
+
+<LI><A NAME="_Toc502165114"></FONT><B><FONT FACE="Arial" COLOR="#000080">Viewing Variables</A></LI>
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The lower-left (dockable) pane in the debugger main window contains a tab-pane with two tabs, labeled &quot;this&quot; and &quot;Locals&quot;. Each pane contains a tree-table which displays the properties of the current object and currently visible local variables, respectively. </P>
+<OL>
+
+</FONT><B><FONT FACE="Arial" COLOR="#000080"><LI>This</LI></OL>
+
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The properties of the current object are displayed in the <B><I>this</B></I> table. If a property is itself a JavaScript object the property may be expanded to show its sub-properties. The <B><I>this</B></I> table is updated each time control returns to the debugger or when you change the stack location in the <B><I>Context:</B></I> window.</P>
+<LI><A NAME="_Toc502165115"></FONT><B><FONT FACE="Arial" COLOR="#000080">Locals</A></LI>
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The local variables of the current function are displayed in the <B><I>Locals</B></I> table. If a variable is itself a JavaScript object the variable may be expanded to show its sub-properties. The <B><I>Locals</B></I> table is updated each time control returns to the debugger or when you change the stack location in the <B><I>Context:</B></I> window</P>
+<LI><A NAME="_Toc502165116"></FONT><B><FONT FACE="Arial" COLOR="#000080">Watch Window</A></LI>
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">You may enter arbitrary JavaScript expressions in the <B><I>Watch:</B></I> table located in the lower-right (dockable) pane in the debugger main window. The expressions you enter are reevaluated in the current scope and their current values displayed each time control returns to the debugger or when you change the stack location in the <B><I>Context:</B></I> window.</P>
+<LI><A NAME="_Toc502165117"></FONT><B><FONT FACE="Arial" COLOR="#000080">Evaluation Window</A></LI></OL>
+</OL>
+</OL>
+
+</B></FONT><FONT SIZE=2><P ALIGN="JUSTIFY">The <B><I>Evaluate</B></I> pane located in the lower-right (dockable) pane in the debugger main window contains an editable command line where you may enter arbitrary JavaScript code. The code is evaluated in the context of the current stack frame. The window maintains a history of the commands you have entered. You may move backward or forward through the history by pressing the Up/Down arrow keys on the keyboard. </P>
+</FONT></BODY>
+</HTML>
Oops, something went wrong.

0 comments on commit 21edd57

Please sign in to comment.