Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – View All Attachments for
Bug 423038
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
Attachment #237960
Sample deploy plugin
text/html
2013-12-03 10:31:34 EST
1.30 KB
no flags
Details
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="../orion/plugin.js"></script> <script> window.onload = function() { var provider = new orion.PluginProvider({postInstallUrl:"../plugin/list.html"}); provider.registerService("orion.project.deploy", { deploy: function(item, projectMetadata, props){ alert("Project shared!"); return { Message: "OK", toSave: { configurationName: "test Config with#$ long name???", parameters: props, url: props.url } }; }, getState: function(props){ return {running: true}; }, start: function(props){ }, stop: function(props){ } }, { id: "orion.test.simpleDeploy", name: "Test Deploy with Params", tooltip: "Test deploy tooltip", parameters: [{id: "url", type: "url", name: "Url:"}], optionalParameters: [{id: "user", type: "test", name: "User:"}, {id: "password", type: "password", name: "Password:"}] // validationProperties: [ // {source: "Git"} // alternate {soruce: "Children:[Name]", match: ".git"} // ] }); provider.connect(); }; </script> </head> <body> </body> </html>