Hi Malintha, Yes, that's what I'm doing. I'll try to execute the shell commands from my java code. In case if you want to look at my shell script please find it bellow.
Thanks, Randika On Wed, Jan 13, 2016 at 8:36 PM, Malintha Amarasinghe <[email protected]> wrote: > Hi Nandika, > > Hope you are executing commands similar to the ones described in [1] using > your shell script. In this case I think you would be able to add a swagger > codegen dependency into your java code and try generating sdk from It. > > Thanks, > Malintha > > [1] > https://github.com/swagger-api/swagger-codegen#to-generate-a-sample-client-library > > On Wed, Jan 13, 2016 at 4:41 PM, Randika Navagamuwa <[email protected]> > wrote: > >> Hi all, >> I'm trying to generate a client side sdk using the swagger file that I >> can get from API manager. I'm using swagger codegen to generate the java >> client side code and using that I'm building the jar file. >> Use case is there should be a button and client sdk should be generated >> when it is pressed. In my case I'm using a shell script to run the required >> commands. So when the button is pressed that shell script should be >> executed. >> So I created a java class to execute the shell script. Java method is >> executed through jaggery UI. >> >> Is there a better way to do this? >> >> Thanks, >> Randika >> -- >> *Randika Navagamuwa* >> *Intern - Software Engineering* >> *Mobile : +94711853466 <%2B94711853466>* >> *Twitter : twitter.com/rnavagamuwa <http://twitter.com/rnavagamuwa>* >> *Facebook : facebook.com/rnavagamuwa <http://facebook.com/rnavagamuwa>* >> *Linkedin : lk.linkedin.com/in/rnavagamuwa >> <http://lk.linkedin.com/in/rnavagamuwa>* >> *Blog : **randikan.wordpress.com* <http://randikan.wordpress.com> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Malintha Amarasinghe > Software Engineer > *WSO2, Inc. - lean | enterprise | middleware* > http://wso2.com/ > > Mobile : +94 712383306 > -- *Randika Navagamuwa* *Intern - Software Engineering* *Mobile : +94711853466* *Twitter : twitter.com/rnavagamuwa <http://twitter.com/rnavagamuwa>* *Facebook : facebook.com/rnavagamuwa <http://facebook.com/rnavagamuwa>* *Linkedin : lk.linkedin.com/in/rnavagamuwa <http://lk.linkedin.com/in/rnavagamuwa>* *Blog : **randikan.wordpress.com* <http://randikan.wordpress.com>
generate.sh
Description: Bourne shell script
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
