ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antoine Lévy-Lambert <>
Subject Re: task <java ...fork="true">: from which directory is the java command started
Date Tue, 20 Jan 2004 07:53:07 GMT
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"/>


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message