What ant lib folder? The integrated Ant support in the groovy-maven- plugin doesn't use any ant lib anything... The proper way is to configure the plugin with dependencies for tasks you need access too.

--jason


On Apr 8, 2008, at 2:47 PM, Iskandar Salim wrote:

Hi,

Had jsch-0.1.31.jar in ant lib folder. The ssh task works if I do not set the "outputproperty" property, where it calls getProject() in the org.apache.tools.ant.taskdefs.optional.ssh.SSHExec and returns null. The scp task always calls getProject() and breaks.

  <plugins>
      <plugin>
          <groupId>org.codehaus.mojo.groovy</groupId>
          <artifactId>groovy-maven-plugin</artifactId>
          <executions>
              <execution>
                  <phase>install</phase>
                  <goals>
                      <goal>execute</goal>
                  </goals>
                  <configuration>
<source> ant.project.resolveFile("somePathInMyProject") // This works
ant.scp(............) // The project property is null and breaks
ant.sshexec(........, outputproperty: "test") // Same here, null project but works without "outputproperty" set
                  </source>                           .
                    .
                    .

Regards,
Iskandar Salim

[EMAIL PROTECTED] wrote:
Normally when you the scp or ssh related ant tasks you have to copy the jsh jar into the ant lib folder. At least thats what we had to do ...

Is it on the classpath? declared as a dependency? at least transitively?


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email




---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to