ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Medinets" <medi...@mtolive.com>
Subject Starting and Stoping MySQL Service from Build.xml
Date Thu, 13 Dec 2001 15:17:55 GMT
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:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message