+1 Since this ant script is not an artifact, we cannot put it into CEP_HOME>/samples/artifacts/
Therefore, we'll add a new folder called utils and add these kind of scripts there. For websocket samples, I suggest: /samples/utils/*input-websocket-local-adapter/* /samples/utils/*output-websocket-local-adapter/* So, if a sample uses input websocket-local adapter, then the user will go to /samples/utils/input-websocket-local-adapter/ folder and run 'ant -DsampleNumber=<sampleNumber> This will copy the necessary webapp to samples/artifacts/<sampleeNumber>/webapps folder. Please raise if you have any concerns. Suho, Thanks for your suggestions, given offline. Regards, Dilini On Sun, May 10, 2015 at 10:05 AM, Sriskandarajah Suhothayan <[email protected]> wrote: > For this use cases we can have a ant script for coping them to the > relevant folders. > > - Sent from phone - > On May 10, 2015 7:07 AM, "Dilini Muthumala" <[email protected]> wrote: > >> Hi, >> This is regarding samples which use Websocket-local Adapter (either input >> or output). >> >> For such sample-modes to work, user needs to copy the following two >> webapps: >> >> 1. inputwebsocket.war >> 2. outputwebsocket.war >> >> , from <CEP_HOME>/repository/deployment/server/webapps to >> <CEP_HOME>/sample/artifacts/<sample_no>/webapps folder. >> >> The reason why these webapps are not included in >> <CEP_HOME>/sample/artifacts/<sample_no>/webapps folder (in the product >> itself) is because these webapps are not sample-artifacts. Rather, they are >> adapter components. Duplicating adapter components is not a good approach, >> IMHO. >> >> Please raise if you have any concerns regarding this approach; or have a >> better approach. >> >> Thanks, >> Dilini >> >> -- >> *Dilini Muthumala* >> Software Engineer, >> WSO2 Inc. >> >> *E-mail :* [email protected] >> *Mobile: *+94 713-400-029 >> > -- *Dilini Muthumala* Software Engineer, WSO2 Inc. *E-mail :* [email protected] *Mobile: *+94 713-400-029
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
