2004-09-29 23:53:55 +04:00
|
|
|
<project name="Webclient Test Browser" default="main" basedir=".">
|
|
|
|
|
|
|
|
<property environment="myenv" />
|
|
|
|
|
2004-10-15 20:39:07 +04:00
|
|
|
<target name="props">
|
2004-09-29 23:53:55 +04:00
|
|
|
<condition property="PATH_SEP" value=";">
|
|
|
|
<and>
|
|
|
|
<os family="windows" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<condition property="PATH_SEP" value=":">
|
|
|
|
<and>
|
|
|
|
<os family="unix" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
|
2004-10-15 20:39:07 +04:00
|
|
|
<condition property="gre.dir"
|
|
|
|
value="${myenv.HOMEDRIVE}\PROGRA~1\COMMON~1\mozilla.org\GRE\1.7_2004061609">
|
|
|
|
<and>
|
|
|
|
<os family="windows" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<condition property="gre.dir" value=":">
|
|
|
|
<and>
|
|
|
|
<os family="unix" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<condition property="java.libpath"
|
|
|
|
value="${basedir}${PATH_SEP}${basedir}\components${PATH_SEP}${gre.dir}${PATH_SEP}${gre.dir}\components">
|
|
|
|
<and>
|
|
|
|
<os family="windows" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
<condition property="java.libpath"
|
|
|
|
value="${basedir}${PATH_SEP}${basedir}/components${PATH_SEP}${gre.dir}${PATH_SEP}${gre.dir}/components">
|
|
|
|
<and>
|
|
|
|
<os family="unix" />
|
|
|
|
</and>
|
|
|
|
</condition>
|
|
|
|
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
|
|
|
|
<target name="test" depends="props">
|
|
|
|
|
|
|
|
<echo message="ANT_HOME = ${myenv.ANT_HOME}"/>
|
|
|
|
<echo message="HOMEDRIVE = ${myenv.HOMEDRIVE}"/>
|
|
|
|
<echo message="gre.dir = ${gre.dir}"/>
|
|
|
|
<echo message="java.libpath = ${java.libpath}"/>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="main" depends="props">
|
|
|
|
|
|
|
|
<java newenvironment="true"
|
|
|
|
classname="org.mozilla.webclient.test.TestBrowser"
|
2004-09-29 23:53:55 +04:00
|
|
|
classpath="${basedir}/webclient.jar" fork="true">
|
2004-10-15 20:39:07 +04:00
|
|
|
<jvmarg value="-Djava.library.path=${java.libpath}"/>
|
|
|
|
<jvmarg value="-DNSPR_LOG_MODULES=webclient:4,webclientstub:4"/>
|
|
|
|
<jvmarg value="-DNSPR_LOG_FILE=webclient.log"/>
|
|
|
|
<jvmarg value="-DBROWSER_BIN_DIR=${gre.dir}"/>
|
2004-09-29 23:53:55 +04:00
|
|
|
</java>
|
|
|
|
|
|
|
|
</target>
|
|
|
|
|
2004-10-15 20:39:07 +04:00
|
|
|
|
2004-09-29 23:53:55 +04:00
|
|
|
</project>
|