[Issue 2163] New - Consoleoutput Error not informative, if ANT_HOME not correctly set

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 2163] New - Consoleoutput Error not informative, if ANT_HOME not correctly set

michaelkebe
https://hudson.dev.java.net/issues/show_bug.cgi?id=2163
                 Issue #|2163
                 Summary|Consoleoutput Error not informative, if ANT_HOME not c
                        |orrectly set
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P2
            Subcomponent|ant
             Assigned to|issues@hudson
             Reported by|michaelkebe






------- Additional comments from [hidden email] Mon Aug  4 07:19:48 +0000 2008 -------
If an Ant installation in a freestyle project is selected where the ANT_HOME is
not correctly set (e.g. to a directory that does not exist) the console output
just prints the appended Exception. The Exception is not very informative. It
should be something like: "The selected Ant installation for the freestyle
project is broken" or "Cannot find ANT_HOME/bin/ant, please check your
configuration (System- & Projectconfiguration)"

...
FATAL: 0
java.lang.ArrayIndexOutOfBoundsException: 0
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:443)
        at hudson.Proc$LocalProc.<init>(Proc.java:104)
        at hudson.Proc$LocalProc.<init>(Proc.java:82)
        at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:310)
        at hudson.Launcher$LocalLauncher.launch(Launcher.java:301)
        at hudson.Launcher.launch(Launcher.java:139)
        at hudson.Launcher.launch(Launcher.java:91)
        at hudson.tasks.Ant.perform(Ant.java:200)
        at hudson.model.Build$RunnerImpl.build(Build.java:134)
        at hudson.model.Build$RunnerImpl.doRun(Build.java:109)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:231)
        at hudson.model.Run.run(Run.java:786)
        at hudson.model.Build.run(Build.java:84)
        at hudson.model.ResourceController.execute(ResourceController.java:70)
        at hudson.model.Executor.run(Executor.java:88)

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 2163] Consoleoutput Error not informative, if ANT_HOME not correctly set

michaelkebe
https://hudson.dev.java.net/issues/show_bug.cgi?id=2163



User michaelkebe changed the following:

                What    |Old value                 |New value
================================================================================
     Attachment is patch|                          |Created an attachment (id=
                        |                          |338)
Checks the AntInstall
                        |                          |ation in perform()

--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Tue Aug  5 08:27:26 +0000 2008 -------
Created an attachment (id=338)
Checks the AntInstallation in perform()


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 2163] Consoleoutput Error not informative, if ANT_HOME not correctly set

scm_issue_link
In reply to this post by michaelkebe
https://hudson.dev.java.net/issues/show_bug.cgi?id=2163



User scm_issue_link changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Wed Aug  6 01:19:11 +0000 2008 -------
Code changed in hudson
User: : kohsuke
Path:
 trunk/hudson/main/core/src/main/java/hudson/tasks/Ant.java
 trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=11239
Log:
[FIXED HUDSON-2163] applied a patch to make the error diagnostics more robust.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 2163] Consoleoutput Error not informative, if ANT_HOME not correctly set

scm_issue_link
In reply to this post by michaelkebe
https://hudson.dev.java.net/issues/show_bug.cgi?id=2163






------- Additional comments from [hidden email] Wed Aug  6 16:02:07 +0000 2008 -------
Code changed in hudson
User: : kohsuke
Path:
 trunk/hudson/main/core/src/main/java/hudson/tasks/Ant.java
 trunk/www/changelog.html
http://fisheye4.cenqua.com/changelog/hudson/?cs=11255
Log:
[FIXED HUDSON-2177] Fixed a regression introduced by HUDSON-2163. In 1.245.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]