You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by my...@apache.org on 2011/09/13 03:21:14 UTC

svn commit: r1169998 - /db/derby/code/branches/10.8/build.xml

Author: myrnavl
Date: Tue Sep 13 01:21:14 2011
New Revision: 1169998

URL: http://svn.apache.org/viewvc?rev=1169998&view=rev
Log:
DERBY-5287; adjusting executable to ant.bat for my environment

Modified:
    db/derby/code/branches/10.8/build.xml

Modified: db/derby/code/branches/10.8/build.xml
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.8/build.xml?rev=1169998&r1=1169997&r2=1169998&view=diff
==============================================================================
--- db/derby/code/branches/10.8/build.xml (original)
+++ db/derby/code/branches/10.8/build.xml Tue Sep 13 01:21:14 2011
@@ -2049,7 +2049,7 @@
 
      <ant dir="${docs.root}" target="clobber"/>
 
-     <exec executable="ant" dir="${docs.root}">
+     <exec executable="ant.bat" dir="${docs.root}">
        <env key="ANT_OPTS" value="-Xmx512m"/>
        <env key="CLASSPATH" path="${docs.root}/lib/fop.jar"/>
        <arg value="-Drelease.id.short=${eversion}"/>



Re: svn commit: r1169998 - /db/derby/code/branches/10.8/build.xml

Posted by Myrna van Lunteren <m....@gmail.com>.
On Tue, Sep 13, 2011 at 2:06 AM, Kristian Waagan
<kr...@oracle.com> wrote:
> On 13.09.11 03:21, myrnavl@apache.org wrote:
>>
>> Author: myrnavl
>> Date: Tue Sep 13 01:21:14 2011
>> New Revision: 1169998
>>
>> URL: http://svn.apache.org/viewvc?rev=1169998&view=rev
>> Log:
>> DERBY-5287; adjusting executable to ant.bat for my environment
>
> Would it be an idea to script this, such that 'ant' or 'ant.bat' is chosen
> based on the operating system?
>
> It can be done with some code duplication at least, I'm not sure if it can
> be done in a more elegant way as well.
>
>
> --
> Kristian
>
Yes, it would be good to have this scripted, this should be
independent of platform.
But - I do not understand why it didn't work; when I run 'ant' from
the command line, the OS *knows* it need to run ant.bat, but it failed
when it was called from build.xml. Perhaps someone knows the
explanation?
I can spend some more time on this later and/or will log a separate bug.

Myrna

Re: svn commit: r1169998 - /db/derby/code/branches/10.8/build.xml

Posted by Kristian Waagan <kr...@oracle.com>.
On 13.09.11 03:21, myrnavl@apache.org wrote:
> Author: myrnavl
> Date: Tue Sep 13 01:21:14 2011
> New Revision: 1169998
>
> URL: http://svn.apache.org/viewvc?rev=1169998&view=rev
> Log:
> DERBY-5287; adjusting executable to ant.bat for my environment

Would it be an idea to script this, such that 'ant' or 'ant.bat' is 
chosen based on the operating system?

It can be done with some code duplication at least, I'm not sure if it 
can be done in a more elegant way as well.


-- 
Kristian

>
> Modified:
>      db/derby/code/branches/10.8/build.xml
>
> Modified: db/derby/code/branches/10.8/build.xml
> URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.8/build.xml?rev=1169998&r1=1169997&r2=1169998&view=diff
> ==============================================================================
> --- db/derby/code/branches/10.8/build.xml (original)
> +++ db/derby/code/branches/10.8/build.xml Tue Sep 13 01:21:14 2011
> @@ -2049,7 +2049,7 @@
>
>        <ant dir="${docs.root}" target="clobber"/>
>
> -<exec executable="ant" dir="${docs.root}">
> +<exec executable="ant.bat" dir="${docs.root}">
>          <env key="ANT_OPTS" value="-Xmx512m"/>
>          <env key="CLASSPATH" path="${docs.root}/lib/fop.jar"/>
>          <arg value="-Drelease.id.short=${eversion}"/>
>
>