Re: task <java ...fork= "true " >: from which directory is the java
command star | Re: task <java ...fork= "true " >: from which directory is the java
command star 2004-01-20 - By Antoine Levy-Lambert
Rudolf Nottrott wrote:
> Hi, > > I have an Ant <java...> task that runs a database program named > org.hsqldb.Server, see below. The argument to the Server is a > database name, "-database testxyz". The database testxyz.* is > supposed to be taken from (or created in) the directory you were in > when you issued the Java command that started the database Server. > Now, I didn't start Java -- I started Ant which started Java. > > Here is the task: > <target name="hsqldb" description="Start the HSQLB sample database"> > <java classname="org.hsqldb.Server" fork="true" failonerror="true" > maxmemory="128m" > > <arg value="-database testxyz"/> > <classpath><pathelement > location="${lib.home}/hsqldb.jar"/></classpath> > </java> > </target> > > The server starts up ok, but I'm not getting the database I want, > testxyz, and so I'm trying to verify the directory from which the > Java command of task <java ...> was issued. > Any ideas on how trace this? Is there perhaps some task like "print > working directory" that I could run in conjunction with the <java ... > > task? > > You probably want 2 arguments : <arg value="-database"/> <arg value="testxyz"/>
Antoine
--------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|
 |