removed task 'examples' from build.xml
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@6631 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
a47b53941b
commit
8a89650451
44
build.xml
44
build.xml
|
@ -813,50 +813,6 @@ DOCUMENTATION
|
|||
<echo level="error" message="Docs is not available yet."/>
|
||||
</target>
|
||||
|
||||
<!-- ===========================================================================
|
||||
EXAMPLES
|
||||
============================================================================ -->
|
||||
|
||||
<target name="examples" depends="setup">
|
||||
<remove dir="${build.dir}/examples"/>
|
||||
<mkdir dir="${build.dir}"/>
|
||||
<pathconvert property="list" pathsep=",">
|
||||
<path>
|
||||
<fileset dir="${docs.dir}" includes="examples/*.scala"
|
||||
excludes="**/*current.scala,**/fors.scala,**/parsers2.scala,**/typeinf.scala"/>
|
||||
</path>
|
||||
<mapper>
|
||||
<globmapper from="${docs.dir}/*" to="*"/>
|
||||
</mapper>
|
||||
</pathconvert>
|
||||
<for list="${list}" param="file">
|
||||
<sequential>
|
||||
<starr srcdir="${docs.dir}"
|
||||
destdir="${build.dir}">
|
||||
<classpath>
|
||||
<pathelement location="${starr.lib.jar}"/>
|
||||
<pathelement location="${build.dir}"/>
|
||||
</classpath>
|
||||
<include name="@{file}"/>
|
||||
</starr>
|
||||
</sequential>
|
||||
</for>
|
||||
<for list="${list}" param="file">
|
||||
<sequential>
|
||||
<var name="classname" unset="true"/>
|
||||
<basename property="classname" file="@{file}" suffix=".scala"/>
|
||||
<echo>classname=${classname}</echo>
|
||||
<java classname="examples.${classname}"
|
||||
output="${build.dir}/examples/${classname}.log">
|
||||
<classpath>
|
||||
<pathelement location="${starr.lib.jar}"/>
|
||||
<pathelement location="${build.dir}"/>
|
||||
</classpath>
|
||||
</java>
|
||||
</sequential>
|
||||
</for>
|
||||
</target>
|
||||
|
||||
<!-- ===========================================================================
|
||||
GENERATES A DISTRIBUTION
|
||||
============================================================================ -->
|
||||
|
|
Loading…
Reference in New Issue