scalaのbuild方法について。2.7.2の場合
2.7.2が出ていたので使ってみたら全開作ったAntが動かなくなったよ*A*
ので、一寸修正
scala-home=C:/Home/scala-2.7.2.final
<?xml version="1.0" encoding="Shift_JIS" ?> <project name="processingsample" default="build"> <!-- set property --> <property file="build.properties" /> <property name="scala-compiler-jar" value="${scala-home}/lib/scala-compiler.jar"/> <property name="scala-dbc-jar" value="${scala-home}/lib/scala-dbc.jar"/> <property name="scala-library-jar" value="${scala-home}/lib/scala-library.jar"/> <property name="scala-swing-jar" value="${scala-home}/lib/scala-swing.jar"/> <property name="scala-task-classpath" value="${scala-compiler-jar}:${scala-dbc-jar}:${scala-library-jar}:${scala-swing-jar}"/> <taskdef name="scalac" classname="scala.tools.ant.Scalac" classpath="${scala-task-classpath}"/> <taskdef name="scalascript" classname="scala.tools.ant.ScalaTool" classpath="${scala-task-classpath}"/> <taskdef name="scaladoc" classname="scala.tools.ant.Scaladoc" classpath="${scala-task-classpath}"/> <target name="build"> <scalac srcdir="./src" destdir="./class"> <classpath> <pathelement path="${scala-task-classpath}"/> </classpath> </scalac> </target> <target name="run" depends="build"> <java classname="SwingSample" fork="true"> <classpath> <pathelement path="./class"/> <pathelement path="${scala-task-classpath}"/> </classpath> </java> </target> <target name="clean"> <delete> <fileset dir="./class" includes="*.class" /> </delete> </target> </project>