You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2016/10/24 12:56:21 UTC

[Bug 60300] New: new bin/ant argument handling is incompatible with /bin/sh on HP-UX

https://bz.apache.org/bugzilla/show_bug.cgi?id=60300

            Bug ID: 60300
           Summary: new bin/ant argument handling is incompatible with
                    /bin/sh on HP-UX
           Product: Ant
           Version: 1.9.7
          Hardware: HP
                OS: HP-UX
            Status: NEW
          Severity: blocker
          Priority: P2
         Component: Wrapper scripts
          Assignee: notifications@ant.apache.org
          Reporter: mk-linux@gmx.net

The bin/ant script changed between 1.9.6 and 1.9.7. The change, however, is
incompatible with /bin/sh on HP-UX:
----
$ ../apache-ant-1.9.7/bin/ant -file some.xml FooTarget --execdebug
exec "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="$ANT_HOME"
-Dant.library.dir="$ANT_LIB" org.apache.tools.ant.launch.Launcher -cp
"$CLASSPATH" "" "" ""
Buildfile: build.xml does not exist!
Build failed
----
I currently have no other solution than to go back to 1.9.6 which worked on all
platforms we have in use. -- makr

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60300] new bin/ant argument handling is incompatible with /bin/sh on HP-UX

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60300

Stefan Bodewig <bo...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
   Target Milestone|---                         |1.9.8

--- Comment #3 from Stefan Bodewig <bo...@apache.org> ---
supposed to be fixed in 1.9.8 and 1.10.0

*** This bug has been marked as a duplicate of bug 59898 ***

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60300] new bin/ant argument handling is incompatible with /bin/sh on HP-UX

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60300

--- Comment #2 from Matthias Kraft <mk...@gmx.net> ---
I see, I'll have a look into the pull request ... gimme some time though.

Just to have it complete, I'll log my issues with Solaris here too:

It turns out that it also is an issue on older Solaris (here: Solaris 10)
machines:
----
$ /bin/sh -x ../apache-ant-1.9.7/bin/ant -file some.xml FooTarget --execdebug
ant_exec_args=
no_config=false
use_jikes_default=false
ant_exec_debug=false
show_help=false
../apache-ant-1.9.7/bin/ant: syntax error at line 339: `end of file' unexpected
----
Calling the script with /usr/xpg4/bin/sh is working fine, though.

On a recent Solaris 11.3 machine, I get an error like on HP-UX only when called
through Jenkins ...
----
$ /path/to/hudson.tasks.Ant_AntInstallation/Ant-1.9/apache-ant-1.9.7/bin/ant
-file some.xml -D...=... -D...=... -D...=... -D...=... -D...=... -D...=...
-D...=... -D...=... -D..=... FooTarget --execdebug
exec "$JAVACMD" -classpath "$LOCALCLASSPATH" -Dant.home="$ANT_HOME"
-Dant.library.dir="$ANT_LIB" org.apache.tools.ant.launch.Launcher -cp
"$CLASSPATH" "" "" "" "" "" "" "" "" "" "" "" "" ""
Buildfile: build.xml does not exist!
Build failed
----
... but not when called manually from a terminal.
-- makr

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 60300] new bin/ant argument handling is incompatible with /bin/sh on HP-UX

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=60300

--- Comment #1 from Stefan Bodewig <bo...@apache.org> ---
We've already asked on the dev and user mailing lists for help by people with
access to Solaris and HP/UX - as we have received multiple problem reports.
Good that you are here :-)

We currently suspect sed to be the culprit. The master branch of Ant contains a
modified version of the script that is known to work on Linux and Macs and
allows you to pick awk as an alternative to sed. It would be wonderful if you
could give the script a try and tell us whether the sed or awk or neither
version worked for you.

https://github.com/apache/ant/pull/25 contains some discussion.

-- 
You are receiving this mail because:
You are the assignee for the bug.