The working directory is set with the dir attribute in <antcall>. You
may need to change this location and/or the properties you use for the
location to create HSQLDB (setting relevant directory properties) so
that it is consistant when running this both as a stand alone build
(assuming you want to do this also) and within the other build file via
antcall.
Kristian
-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Saturday, 14 August 2004 3:40 AM
To: Ant Users List
Subject: Re: Two <exec> tasks cause neither to run
Thanks for the suggestion. This is working for me. Now I have a new
issue. The "install" target depends on a bunch of other targets - one
of which is a "test" target. This target created a HSQLDB in the
current working directory. However, it fails because it can't create
anything in the working directory. I think using the <exec> task was
the workaround, I'll have to talk to the original author. Is it
possible to switch the working directory when using this target? You'd
think it'd use the directories, but it doesn't appear to be working
that way.
Matt
On Aug 12, 2004, at 9:34 PM, Perkins, Kristian wrote:
Why don't you use the <ant> task instead of <exec>ing ant?
e.g.
<!-- Run on Everywhere -->
<ant dir="${software.repository}/samples-&product-version;/appfuse"
target="install"/>
Kristian
-----Original Message-----
From: Matt Raible [mailto:[EMAIL PROTECTED]
Sent: Friday, 13 August 2004 10:52 AM
To: [EMAIL PROTECTED]
Subject: Two <exec> tasks cause neither to run
I have the following two <exec> tasks in my build file. I'm hoping
that
one executes for Linux, while the other does it for Windows. I've
found
that if both are present, the whole target fails, but if I comment one
out, then it'll run. Any ideas what's causing this? I'm also open to
improved ways of doing the tasks below.
<!-- Run on Linux -->
<exec vmlauncher="false"
dir="${software.repository}/samples-&product-version;/appfuse"
executable="ant" os="Linux">
<env key="PATH"
path="${env.PATH};${software.repository}/&ant-dir;/bin"/>
<env key="ANT_HOME" value="${software.repository}/&ant-dir;"/>
<env key="JAVA_HOME" value="${env.JAVA_HOME}"/>
<!-- CLASSPATH hack in case user has bad classpath vars -->
<env key="classpath" value="${env.JAVA_HOME}/lib/tools.jar"/>
<env key="ClassPath" value="${env.JAVA_HOME}/lib/tools.jar"/>
<env key="Classpath" value="${env.JAVA_HOME}/lib/tools.jar"/>
<env key="CLASSPATH" value="${env.JAVA_HOME}/lib/tools.jar"/>
<arg line="install"/>
</exec>
<chmod dir="${software.repository}" perm="ugo+rwx"
includes="samples-&product-version;/**/**"/>
<!-- Run on Windows -->
<exec vmlauncher="false"
dir="${software.repository}/samples-&product-version;/appfuse"
executable="ant.bat" os="Windows 2000,Windows XP,Windows 2003">
<env key="Path"
path="${env.Path};${software.repository}/&ant-dir;/bin"/>
<env key="ANT_HOME" value="${software.repository}/&ant-dir;"/>
<env key="JAVA_HOME" value="${env.JAVA_HOME}"/>
<!-- CLASSPATH hack in case user has bad classpath vars -->
<env key="classpath" value="${env.JAVA_HOME}/lib/tools.jar"/>
<env key="ClassPath" value="${env.JAVA_HOME}/lib/tools.jar"/>
<env key="Classpath" value="${env.JAVA_HOME}/lib/tools.jar"/>
<env key="CLASSPATH" value="${env.JAVA_HOME}/lib/tools.jar"/>
<arg line="install"/>
</exec>
Thanks,
Matt
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
****************************************************************
IMPORTANT
The information transmitted is for the use of the intended recipient
only and may contain confidential and/or legally privileged material.
Any review, re-transmission, disclosure dissemination or other use of,
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited and may
result in severe penalties. If you have received this e-mail in error
please notify the Privacy Hotline of the Australian Taxation Office,
telephone 13 28 69 and delete all copies of this transmission together
with any attachments.
****************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
****************************************************************
IMPORTANT
The information transmitted is for the use of the intended recipient
only and may contain confidential and/or legally privileged material.
Any review, re-transmission, disclosure dissemination or other use of,
or taking of any action in reliance upon, this information by persons
or entities other than the intended recipient is prohibited and may
result in severe penalties. If you have received this e-mail in error
please notify the Privacy Hotline of the Australian Taxation Office,
telephone 13 28 69 and delete all copies of this transmission together
with any attachments.
****************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]