eclipse.junit4.headlessのlibrary.xmlのantfileを起動するだけということ。
あとは、引数やプロパティを設定するだけという簡単な仕組みらしいです。
ふぅ〜ん。簡単じゃん。
でもMac動かないよw
Win環境がないから、プロパティが悪いのか、macのバグなのかわからない。
macはSWTのバグが結構多いらしいので、ちょっと踏んでる可能性があるからなぁ。
一応-XstartOnFirstThreadは渡しているから大丈夫なはず。
会社で調べてみるか。。。
- <project basedir="." default="run" name="testsuite">
- <property name="eclipse-home" value="/Users/xxxx/work/eclipse">
- <property name="plugin-name" value="ph.jpn.calm.swtbot.example">
- <property name="test-classname" value="MyFirstTest02">
- <property name="swtbot" value="org.eclipse.swtbot.eclipse.junit4.headless_2.0.5.20111003_1754-3676ac8-dev-e36">
- <property name="library-file" value="${eclipse-home}/plugins/${swtbot}/library.xml">
- <description>
- description
- </description>
- <target name="suite">
- <property name="jvmOption" value=""></property>
- <property name="temp-workspace" value="workspace"></property>
- <ant antfile="${library-file}" dir="${eclipse-home}" target="swtbot-test">
- <property name="data-dir" value="${temp-workspace}"></property>
- <property name="plugin-name" value="${plugin-name}"></property>
- <property name="os" value="macosx">
- <property name="ws" value="cocoa"></property>
- <property name="arch" value="x86"></property>
- <property name="classname" value="${test-classname}"></property>
- <property name="vmargs" value="-Dosgi.requiredJavaVersion=1.5 -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts -XX:MaxPermSize=256m -Xms40m -Xmx512m -Xdock:icon=../Resources/Eclipse.icns -XstartOnFirstThread -Dorg.eclipse.swt.internal.carbon.smallFonts">
- </property></property></ant>
- </target>
- <target name="cleanup"></target>
- <target depends="suite,cleanup" description="description" name="run">
- </target>
- <target name="depends">
- </target>
- </property></property></property></property></property></project>