Permalink
Browse files

Remove docs/examples; they reside at scala/scala-dist

  • Loading branch information...
1 parent dc6dd58 commit e55510607031aaf7b8473453f83c44a26c9b97e0 @adriaanm adriaanm committed Dec 9, 2013
Showing with 1 addition and 6,120 deletions.
  1. +0 −283 build.examples.xml
  2. +1 −6 build.xml
  3. +0 −131 docs/examples/actors/auction.scala
  4. +0 −37 docs/examples/actors/boundedbuffer.scala
  5. +0 −32 docs/examples/actors/channels.scala
  6. +0 −82 docs/examples/actors/fringe.scala
  7. +0 −47 docs/examples/actors/links.scala
  8. +0 −26 docs/examples/actors/looping.scala
  9. +0 −40 docs/examples/actors/message.scala
  10. +0 −61 docs/examples/actors/pingpong.scala
  11. +0 −114 docs/examples/actors/producers.scala
  12. +0 −15 docs/examples/actors/seq.scala
  13. +0 −46 docs/examples/boundedbuffer.scala
  14. +0 −54 docs/examples/computeserver.scala
  15. +0 −68 docs/examples/expressions/expressions-current.scala
  16. +0 −112 docs/examples/fors.scala
  17. +0 −17 docs/examples/futures.scala
  18. +0 −22 docs/examples/gadts.scala
  19. +0 −28 docs/examples/iterators.scala
  20. +0 −55 docs/examples/jolib/Ref.scala
  21. +0 −58 docs/examples/jolib/parallelOr.scala
  22. +0 −187 docs/examples/maps.scala
  23. +0 −86 docs/examples/monads/callccInterpreter.scala
  24. +0 −55 docs/examples/monads/directInterpreter.scala
  25. +0 −86 docs/examples/monads/errorInterpreter.scala
  26. +0 −75 docs/examples/monads/simpleInterpreter.scala
  27. +0 −86 docs/examples/monads/stateInterpreter.scala
  28. +0 −64 docs/examples/oneplacebuffer.scala
  29. +0 −57 docs/examples/parsing/ArithmeticParser.scala
  30. +0 −70 docs/examples/parsing/ArithmeticParsers.scala
  31. +0 −44 docs/examples/parsing/JSON.scala
  32. +0 −33 docs/examples/parsing/ListParser.scala
  33. +0 −30 docs/examples/parsing/ListParsers.scala
  34. +0 −52 docs/examples/parsing/MiniML.scala
  35. +0 −34 docs/examples/parsing/lambda/Main.scala
  36. +0 −68 docs/examples/parsing/lambda/TestParser.scala
  37. +0 −86 docs/examples/parsing/lambda/TestSyntax.scala
  38. +0 −1 docs/examples/parsing/lambda/test/test-01.kwi
  39. +0 −1 docs/examples/parsing/lambda/test/test-02.kwi
  40. +0 −1 docs/examples/parsing/lambda/test/test-03.kwi
  41. +0 −1 docs/examples/parsing/lambda/test/test-04.kwi
  42. +0 −1 docs/examples/parsing/lambda/test/test-05.kwi
  43. +0 −1 docs/examples/parsing/lambda/test/test-06.kwi
  44. +0 −1 docs/examples/parsing/lambda/test/test-07.kwi
  45. +0 −1 docs/examples/parsing/lambda/test/test-08.kwi
  46. +0 −36 docs/examples/patterns.scala
  47. +0 −77 docs/examples/pilib/elasticBuffer.scala
  48. +0 −186 docs/examples/pilib/handover.scala
  49. +0 −172 docs/examples/pilib/mobilePhoneProtocol.scala
  50. +0 −89 docs/examples/pilib/piNat.scala
  51. +0 −329 docs/examples/pilib/rwlock.scala
  52. +0 −150 docs/examples/pilib/scheduler.scala
  53. +0 −72 docs/examples/pilib/semaphore.scala
  54. +0 −67 docs/examples/pilib/twoPlaceBuffer.scala
  55. +0 −11 docs/examples/plugintemplate/.classpath
  56. +0 −18 docs/examples/plugintemplate/.project
  57. +0 −265 docs/examples/plugintemplate/build.xml
  58. +0 −68 docs/examples/plugintemplate/doc/README
  59. +0 −8 docs/examples/plugintemplate/doc/examples/plugintemplate/examples/BasicExample.scala
  60. +0 −1 docs/examples/plugintemplate/lib/scalatest.jar.desired.sha1
  61. +0 −4 docs/examples/plugintemplate/misc/scalac-plugin.xml
  62. +0 −10 docs/examples/plugintemplate/plugin.properties
  63. +0 −61 docs/examples/plugintemplate/src/plugintemplate/PluginProperties.scala
  64. +0 −20 docs/examples/plugintemplate/src/plugintemplate/TemplateAnnotationChecker.scala
  65. +0 −35 docs/examples/plugintemplate/src/plugintemplate/TemplateComponent.scala
  66. +0 −79 docs/examples/plugintemplate/src/plugintemplate/TemplateInfoTransformComponent.scala
  67. +0 −52 docs/examples/plugintemplate/src/plugintemplate/TemplatePlugin.scala
  68. +0 −58 docs/examples/plugintemplate/src/plugintemplate/TemplateTransformComponent.scala
  69. +0 −32 docs/examples/plugintemplate/src/plugintemplate/TemplateTraverseComponent.scala
  70. +0 −44 docs/examples/plugintemplate/src/plugintemplate/standalone/Main.scala
  71. +0 −36 docs/examples/plugintemplate/src/plugintemplate/standalone/PluginRunner.scala
  72. +0 −14 docs/examples/plugintemplate/test/plugintemplate/PluginPropertiesSuite.scala
  73. +0 −22 docs/examples/plugintemplate/test/plugintemplate/TemplatePluginSuite.scala
  74. +0 −48 docs/examples/sort.scala
  75. +0 −22 docs/examples/sort1.scala
  76. +0 −25 docs/examples/sort2.scala
  77. +0 −24 docs/examples/swing/ButtonApp.scala
  78. +0 −42 docs/examples/swing/CelsiusConverter.scala
  79. +0 −36 docs/examples/swing/CelsiusConverter2.scala
  80. +0 −86 docs/examples/swing/ComboBoxes.scala
  81. +0 −30 docs/examples/swing/CountButton.scala
  82. +0 −176 docs/examples/swing/Dialogs.scala
  83. +0 −64 docs/examples/swing/GridBagDemo.scala
  84. +0 −13 docs/examples/swing/HelloWorld.scala
  85. +0 −19 docs/examples/swing/LabelTest.scala
  86. +0 −53 docs/examples/swing/LinePainting.scala
  87. +0 −17 docs/examples/swing/ListViewDemo.scala
  88. +0 −18 docs/examples/swing/SimpleApplet.scala
  89. +0 −29 docs/examples/swing/SwingApp.scala
  90. +0 −96 docs/examples/swing/TableSelection.scala
  91. +0 −147 docs/examples/swing/UIDemo.scala
  92. BIN docs/examples/swing/images/banana.jpg
  93. BIN docs/examples/swing/images/margarita1.jpg
  94. BIN docs/examples/swing/images/margarita2.jpg
  95. BIN docs/examples/swing/images/rose.jpg
  96. +0 −167 docs/examples/tcpoly/collection/HOSeq.scala
  97. +0 −69 docs/examples/tcpoly/monads/Monads.scala
  98. +0 −253 docs/examples/typeinf.scala
  99. +0 −26 docs/examples/xml/phonebook/embeddedBook.scala
  100. +0 −38 docs/examples/xml/phonebook/phonebook.scala
  101. +0 −21 docs/examples/xml/phonebook/phonebook1.scala
  102. +0 −25 docs/examples/xml/phonebook/phonebook2.scala
  103. +0 −81 docs/examples/xml/phonebook/phonebook3.scala
  104. +0 −24 docs/examples/xml/phonebook/verboseBook.scala
View
@@ -1,283 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<project name="scala-examples" default="build">
-
- <description>
- I am SABBUS for ${ant.project.name}, the build system for the Scala compiler
- and core library. Please check the 'docs/README' file for more information
- about me.
- </description>
-
- <echo level="info" message="Running SABBUS for ${ant.project.name}..."/>
-
-<!-- ===========================================================================
-PROPERTIES
-============================================================================ -->
-
- <property environment="env"/>
-
- <!-- Prevents system classpath from being used -->
- <property name="build.sysclasspath" value="ignore"/>
-
- <!-- Base properties -->
- <property name="src.dir" value="${basedir}/docs"/>
- <property name="src.examples.dir" value="${src.dir}/examples"/>
- <property name="lib.dir" value="${basedir}/lib"/>
- <!-- User properties -->
- <property file="${basedir}/build.examples.properties"/>
- <!-- Location of pre-compiled libraries properties -->
- <property name="scala.lib.jar" value="${lib.dir}/scala-library.jar"/>
- <property name="scala.comp.jar" value="${lib.dir}/scala-compiler.jar"/>
- <property name="fjbg.name" value="fjbg.jar"/>
- <property name="fjbg.jar" value="${lib.dir}/${fjbg.name}"/>
- <property name="msil.name" value="msil.jar"/>
- <property name="msil.jar" value="${lib.dir}/${msil.name}"/>
- <property name="ant.jar" value="${ant.home}/lib/ant.jar"/>
- <property name="ant-contrib.jar" value="${lib.dir}/ant/ant-contrib.jar"/>
- <!-- -->
- <property name="build.dir" value="${basedir}/build"/>
- <property name="build.examples.dir" value="${build.dir}/examples"/>
- <!-- tbd -->
- <property name="excludes.compile"
- value="**/*current.*,**/parsers2.*,**/typeinf.*"/>
- <property name="excludes.run"
- value="**/Parsers.*"/>
-
-<!-- ===========================================================================
-INITIALISATION
-============================================================================ -->
-
- <target name="init" unless="init.avail">
- <tstamp prefix="start">
- <format
- property="human-time"
- pattern="EEEE, d MMMM yyyy, HH:mm:ss (zz)"
- />
- </tstamp>
- <!-- Testing if everything is in place -->
- <echo level="verbose" message="scala.lib.jar=${scala.lib.jar}"/>
- <fail message="Scala library in '${lib.dir}/' is not available">
- <condition><not><and>
- <available
- classname="scala.Predef"
- classpath="${scala.lib.jar}"
- />
- <available
- classname="scala.collection.immutable.List"
- classpath="${scala.lib.jar}"
- />
- <available
- classname="scala.runtime.ObjectRef"
- classpath="${scala.lib.jar}"
- />
- </and></not></condition>
- </fail>
- <echo level="verbose" message="scala.comp.jar=${scala.comp.jar}"/>
- <fail message="Scala compiler in '${lib.dir}/' is not available">
- <condition><not>
- <available
- classname="scala.tools.ant.Scalac"
- classpath="${scala.comp.jar}:${scala.lib.jar}"
- />
- </not></condition>
- </fail>
- <echo level="verbose" message="fjbg.jar=${fjbg.jar}"/>
- <fail message="FJBG library in '${lib.dir}/' is not available">
- <condition><not>
- <available
- classname="ch.epfl.lamp.fjbg.JCode"
- classpath="${fjbg.jar}"
- />
- </not></condition>
- </fail>
- <echo level="verbose" message="msil.jar=${msil.jar}"/>
- <fail message="MSIL library in '${lib.dir}/' is not available">
- <condition><not>
- <available
- classname="ch.epfl.lamp.compiler.msil.MemberInfo"
- classpath="${msil.jar}"
- />
- </not></condition>
- </fail>
- <echo level="verbose" message="ant.jar=${ant.jar}"/>
- <echo level="verbose" message="ant-contrib.jar=${ant-contrib.jar}"/>
- <fail message="Additional Ant tasks in '${lib.dir}/' is not available">
- <condition><not>
- <available
- classname="net.sf.antcontrib.AntContribVersion"
- classpath="${ant-contrib.jar}"
- />
- </not></condition>
- </fail>
- <!-- Creating class-pathes -->
- <path id="common.classpath">
- <pathelement location="${fjbg.jar}"/>
- <pathelement location="${msil.jar}"/>
- </path>
- <path id="scala.classpath">
- <pathelement location="${scala.lib.jar}"/>
- <pathelement location="${scala.comp.jar}"/>
- <path refid="common.classpath"/>
- </path>
- <!-- Creating boot-level tasks -->
- <taskdef resource="net/sf/antcontrib/antlib.xml">
- <classpath>
- <pathelement location="${ant-contrib.jar}"/>
- </classpath>
- </taskdef>
- <!-- Finding out what system architecture is being used -->
- <condition property="os.win">
- <os family="windows"/>
- </condition>
- <if><isset property="os.win"/>
- <then>
- <exec
- executable="cygpath"
- vmlauncher="no"
- errorproperty="cygpath.err"
- outputproperty="cygpath.out"
- >
- <arg value="--windir"/>
- </exec>
- <condition property="os.cygwin">
- <equals arg1="${cygpath.err}" arg2=""/>
- </condition>
- </then>
- </if>
- <condition property="os.unix">
- <or>
- <os family="unix"/>
- <os family="mac"/>
- <isset property="os.cygwin"/>
- </or>
- </condition>
- <if><isset property="os.cygwin"/>
- <then><property name="os.type" value="Cygwin"/></then>
- <elseif><isset property="os.win"/>
- <then><property name="os.type" value="Windows"/></then>
- </elseif>
- <elseif><isset property="os.unix"/>
- <then><property name="os.type" value="UNIX"/></then>
- </elseif>
- <else>
- <fail>System environment could not be determined</fail>
- </else>
- </if>
- <echo
- level="info"
- message="OS: ${os.type} (${os.name} ${os.arch} ${os.version});"
- />
- <echo
- level="info"
- message="Java: ${java.version} ('${java.home}');"
- />
- <echo
- level="info"
- message="JVM: ${java.vm.name} ${java.vm.version};"
- />
- <echo
- level="info"
- message="Ant: ${ant.version}."
- />
- <property name="init.avail" value="yes"/>
- </target>
-
- <target name="setup" depends="init">
- <!-- Creating boot-level tasks -->
- <taskdef
- name="scalac"
- classname="scala.tools.ant.Scalac"
- classpathref="scala.classpath"
- />
- <property name="init.avail" value="yes"/>
- </target>
-
-<!-- ===========================================================================
-BUILD
-============================================================================ -->
-
- <target name="build" depends="setup">
- <mkdir dir="${build.dir}"/>
- <echo level="verbose">src.dir=${src.dir}</echo>
- <pathconvert property="list" pathsep=",">
- <path>
- <fileset
- dir="${src.dir}"
- includes="examples/*.scala"
- excludes="${excludes.compile}"
- />
- </path>
- <mapper>
- <globmapper from="${src.dir}/*" to="*"/>
- </mapper>
- </pathconvert>
- <for list="${list}" param="file">
- <sequential>
- <scalac srcdir="${src.dir}"
- destdir="${build.dir}" deprecation="true">
- <classpath>
- <pathelement location="${scala.lib.jar}"/>
- <pathelement location="${build.dir}"/>
- </classpath>
- <include name="@{file}"/>
- </scalac>
- </sequential>
- </for>
- </target>
-
-<!-- ===========================================================================
-RUN
-============================================================================ -->
-
- <target name="run" depends="build">
- <pathconvert property="list" pathsep=",">
- <path>
- <fileset
- dir="${src.dir}"
- includes="examples/*.scala"
- excludes="${excludes.run}"
- />
- </path>
- <mapper>
- <globmapper from="${src.dir}/*" to="*"/>
- </mapper>
- </pathconvert>
- <for list="${list}" param="file">
- <sequential>
- <var name="classname" unset="true"/>
- <basename property="classname" file="@{file}" suffix=".scala"/>
- <echo>Executing Scala program examples.${classname}..</echo>
- <java classname="examples.${classname}" fork="true"
- output="${build.examples.dir}/${classname}.log"
- error="${build.examples.dir}/${classname}.log"
- append="true">
- <classpath>
- <pathelement location="${scala.lib.jar}"/>
- <pathelement location="${build.dir}"/>
- </classpath>
- </java>
- </sequential>
- </for>
- </target>
-
-<!-- ===========================================================================
-CLEAN
-============================================================================ -->
-
- <macrodef name="remove">
- <attribute name="dir"/>
- <sequential>
- <delete
- dir="@{dir}"
- includeemptydirs="yes"
- quiet="yes"
- failonerror="no"
- />
- </sequential>
- </macrodef>
-
- <target name="clean" description="Removes all build examples">
- <remove dir="${build.examples.dir}"/>
- </target>
-
-</project>
View
@@ -1868,12 +1868,7 @@ TODO:
<copy toDir="${dist.dir}/doc/scala-devel-docs/api">
<fileset dir="${build-docs.dir}/library"/>
</copy>
- <mkdir dir="${dist.dir}/doc/scala-devel-docs/examples"/>
- <copy toDir="${dist.dir}/doc/scala-devel-docs/examples">
- <fileset dir="${docs.dir}/examples">
- <exclude name="**/*.desired.sha1"/>
- </fileset>
- </copy>
+
<mkdir dir="${dist.dir}/doc/scala-devel-docs/tools"/>
<copy toDir="${dist.dir}/doc/scala-devel-docs/tools">
<fileset dir="${build-docs.dir}/manual/html"/>
Oops, something went wrong.

0 comments on commit e555106

Please sign in to comment.