ant: not found

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

ant: not found

Eric wais
Hi,

I configured a Hudson project that invokes an ant script. When I build the project I get the following error:

[trunk] $ ant -Dxdoclet.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/tools/projects/libraries/xdoclet -Dspringloaded.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/projects/spring-loaded -Dtarget.platform-file=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/trunk/development-platform.properties -Dmiddlegen.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/tools/project/libraries/middlegen -Dtarget.platform=development -Dcatalina-ant.jar=/usr/local/apache-tomcat6.0/lib/catalina-ant.jar -Dlibraries.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/libraries build
FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?
java.io.IOException: java.io.IOException: ant: not found
    at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
    at java.lang.ProcessImpl.start(ProcessImpl.java:65)
    at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
    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:199)
    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)
finished: FAILURE

I tried running the ant command above and it ran successfully. Any ideas why this is happening?

Reply | Threaded
Open this post in threaded view
|

Re: ant: not found

Naresh-11
Hi Eric,

   did you try setting the ANT_HOME variable to the ant installation
path under the "Manage Hudson" page of your dashboard?

Thanks,
Naresh

Eric wais wrote:

> Hi,
>
> I configured a Hudson project that invokes an ant script. When I build
> the project I get the following error:
>
> [trunk] $ ant
> -Dxdoclet.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/tools/projects/libraries/xdoclet
> -Dspringloaded.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/projects/spring-loaded
> -Dtarget.platform-file=/usr/local/apache-tomcat6.0/webhapps/hudson/jobs/ACME/workspace/trunk/development-platform.properties
> -Dmiddlegen.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/tools/project/libraries/middlegen
> -Dtarget.platform=development
> -Dcatalina-ant.jar=/usr/local/apache-tomcat6.0/lib/catalina-ant.jar
> -Dlibraries.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/libraries
> build
> FATAL: command execution failed.Maybe you need to configure the job to
> choose one of your Ant installations?
> java.io.IOException: java.io.IOException: ant: not found
>     at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
>     at java.lang.ProcessImpl.start(ProcessImpl.java:65)
>     at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
>     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:199)
>     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)
> finished: FAILURE
>
> I tried running the ant command above and it ran successfully. Any
> ideas why this is happening?
>


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

Reply | Threaded
Open this post in threaded view
|

Re: ant: not found

Eric wais
Thanks. That solved the problem.

On Wed, Aug 6, 2008 at 12:33 PM, Srinivas Naresh Bhimisetty <[hidden email]> wrote:
Hi Eric,

 did you try setting the ANT_HOME variable to the ant installation path under the "Manage Hudson" page of your dashboard?

Thanks,
Naresh

Eric wais wrote:
Hi,

I configured a Hudson project that invokes an ant script. When I build the project I get the following error:

[trunk] $ ant -Dxdoclet.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/tools/projects/libraries/xdoclet -Dspringloaded.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/projects/spring-loaded -Dtarget.platform-file=/usr/local/apache-tomcat6.0/webhapps/hudson/jobs/ACME/workspace/trunk/development-platform.properties -Dmiddlegen.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/tools/project/libraries/middlegen -Dtarget.platform=development -Dcatalina-ant.jar=/usr/local/apache-tomcat6.0/lib/catalina-ant.jar -Dlibraries.home=/usr/local/apache-tomcat6.0/webapps/hudson/jobs/ACME/workspace/libraries build

FATAL: command execution failed.Maybe you need to configure the job to choose one of your Ant installations?
java.io.IOException: java.io.IOException: ant: not found
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
   at java.lang.ProcessImpl.start(ProcessImpl.java:65)
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:451)
   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:199)
   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)
finished: FAILURE

I tried running the ant command above and it ran successfully. Any ideas why this is happening?



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