I'm trying to start and stop the MySQL service from inside my build.xml file
while running on a Windows2000 system.
This the applicable part of my build file:
<apply executable="c:\winnt\system32\net" timeout="5000"
failonerror="yes">
<arg line="start mysql"/>
<fileset dir="\" />
</apply>
<java classname="junit.textui.TestRunner" fork="yes">
<arg line="com.cordiem.tests.AllTests"/>
<sysproperty key="target.db.classname"
value="org.gjt.mm.mysql.Driver"/>
<sysproperty key="target.db.url"
value="jdbc:mysql://localhost/synonyms"/>
<sysproperty key="target.db.username" value="XXX"/>
<sysproperty key="target.db.password" value="XXX"/>
<classpath refid="cordiemTest.class.path" />
</java>
<apply executable="c:\winnt\system32\net" timeout="5000">
<arg line="stop mysql"/>
<fileset dir="\" />
</apply>
The fileset seems to be required although I'm not sure what it should be set
to.
When I run this project, the DOS window just sits there...
Any suggestions?
David Medinets, Consultant, http://www.codebits.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>