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 – Attachment 237960 Details for
Bug 423038
[Projects] Deployment with parameters, saving launch configuration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
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.
Sample deploy plugin
deploySamplePlugin.html (text/html), 1.30 KB, created by
Malgorzata Janczarska
on 2013-12-03 10:31:34 EST
(
hide
)
Description:
Sample deploy plugin
Filename:
MIME Type:
Creator:
Malgorzata Janczarska
Created:
2013-12-03 10:31:34 EST
Size:
1.30 KB
patch
obsolete
><!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>
<!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>
View Attachment As Raw
Actions:
View
Attachments on
bug 423038
: 237960