Continuum

add shell command execution

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.0.1
  • Component/s: None
  • Labels:
    None
  • Complexity:
    Novice
  • Number of attachments :
    3

Description

add support for shell command execution and not only for shell script execution.
This way, there is no need for the dedicated ant execution and shell script execution module. This can be accomplished by running a shell command and you automatically added support for make, rake, ... .

Activity

Hide
Brett Porter added a comment -

I think this works already, but it should be confirmed and fixed if not for 1.0

Show
Brett Porter added a comment - I think this works already, but it should be confirmed and fixed if not for 1.0
Hide
Emmanuel Venisse added a comment -

already works

Show
Emmanuel Venisse added a comment - already works
Hide
yo added a comment -

At least on mac os x this feature does not work as advertised. When i enter a command (e.g. make) in the POM File field (i think this is wrongly labled as i've choosen shell project whichs has no pom fileat all) is gives me an error saying:

org.apache.maven.continuum.execution.ContinuumBuildExecutorException: Error while executing shell command. The most common error is that 'rake' is not in your path.
at org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellCommand(AbstractBuildExecutor.java:191)
at org.apache.maven.continuum.execution.shell.ShellBuildExecutor.build(ShellBuildExecutor.java:70)
at org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.execute(ExecuteBuilderContinuumAction.java:130)
at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:170)
at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53)
at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103)
at java.lang.Thread.run(Thread.java:552)

but rake is in my path and trying to enter a absolute path to rake gives an error too.

Show
yo added a comment - At least on mac os x this feature does not work as advertised. When i enter a command (e.g. make) in the POM File field (i think this is wrongly labled as i've choosen shell project whichs has no pom fileat all) is gives me an error saying: org.apache.maven.continuum.execution.ContinuumBuildExecutorException: Error while executing shell command. The most common error is that 'rake' is not in your path. at org.apache.maven.continuum.execution.AbstractBuildExecutor.executeShellCommand(AbstractBuildExecutor.java:191) at org.apache.maven.continuum.execution.shell.ShellBuildExecutor.build(ShellBuildExecutor.java:70) at org.apache.maven.continuum.core.action.ExecuteBuilderContinuumAction.execute(ExecuteBuilderContinuumAction.java:130) at org.apache.maven.continuum.buildcontroller.DefaultBuildController.build(DefaultBuildController.java:170) at org.apache.maven.continuum.buildcontroller.BuildProjectTaskExecutor.executeTask(BuildProjectTaskExecutor.java:53) at org.codehaus.plexus.taskqueue.execution.ThreadedTaskQueueExecutor$ExecutorRunnable.run(ThreadedTaskQueueExecutor.java:103) at java.lang.Thread.run(Thread.java:552) but rake is in my path and trying to enter a absolute path to rake gives an error too.
Hide
Emmanuel Venisse added a comment -

Can you attach logs before and after this exception?

Show
Emmanuel Venisse added a comment - Can you attach logs before and after this exception?
Hide
yo added a comment -

this is the log file. i had some problems with the svn config maybe thats interesting for you too. ill also atach a screenshot of my config.

Show
yo added a comment - this is the log file. i had some problems with the svn config maybe thats interesting for you too. ill also atach a screenshot of my config.
Hide
yo added a comment -

the project-confs as screenshot

Show
yo added a comment - the project-confs as screenshot
Hide
Emmanuel Venisse added a comment -

Fixed. I don't know why your rake isn't find in your path, but I create a little patch that fixed your pb.

For other error in your log (scm pb and FileNotFoundException), it's already fixed.

Show
Emmanuel Venisse added a comment - Fixed. I don't know why your rake isn't find in your path, but I create a little patch that fixed your pb. For other error in your log (scm pb and FileNotFoundException), it's already fixed.
Hide
Emmanuel Venisse added a comment -

what is your os?
How do you run continuum?

Show
Emmanuel Venisse added a comment - what is your os? How do you run continuum?
Hide
yo added a comment -

im running continuum on mac os x.
What do you mean by how i run it?
via terminal. i execute plexus.sh and not the osx.sh file.
is that what you mean?
maybe its not possible for a java to use the path file. maybe you should consider to allow absolute paths for the pom file. This would fix the problem too.

cheers
yo

Show
yo added a comment - im running continuum on mac os x. What do you mean by how i run it? via terminal. i execute plexus.sh and not the osx.sh file. is that what you mean? maybe its not possible for a java to use the path file. maybe you should consider to allow absolute paths for the pom file. This would fix the problem too. cheers yo
Hide
Emmanuel Venisse added a comment -

yes, it what I mean.

absolute path is now allowed.
So, now, we search in working directory, in path. If executable isn't found, we use it without modification, so you can use rake or path_to/rake

Show
Emmanuel Venisse added a comment - yes, it what I mean. absolute path is now allowed. So, now, we search in working directory, in path. If executable isn't found, we use it without modification, so you can use rake or path_to/rake

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: