Skip to Content
avatar image
Former Member

How to create RFC Destinations using NEO's mojo.connectivity.PutDestinationMojo in Java

Hello,

I am trying to create a cloud destination through Java program using com.sap.core.sdk.cmd.mojo.connectivity.PutDestinationMojo. I am able to create the destination using neo tool through command prompt. as per requirement I should be able to put the destination dynamically. It would be good if some one can share any example.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Oct 03 at 06:33 PM

    Hi,

    You could use this maven goal to upload the destination file you create locally.

    <build>
    <plugins>
      <plugin>
    	<groupId>com.sap.cloud</groupId>
    	<artifactId>neo-java-web-maven-plugin</artifactId>
    ....
    	<executions>
    	  <execution>
    		<id>put-destination-ABC</id>
    		<phase>process-classes</phase>
    		<goals>
    		  <goal>put-destination</goal>
    		</goals>
    		<configuration>
    		  <localpath>${project.build.directory}/destinations/abc</localpath>
    		</configuration>
    	  </execution>
    ....
    

    Regards,
    Ivan

    Add comment
    10|10000 characters needed characters exceeded