@@ -105,7 +105,7 @@ var plugins = [
105
105
{ alias : 'icons' , name : 'org.eclipse_icons.editor.feature.feature.group' } ,
106
106
{ alias : 'jjs' , name : 'org.nodeclipse.jjs.feature.feature.group' } ,
107
107
{ alias : 'jsdt' , name : 'org.eclipse.wst.jsdt.feature.feature.group' , repository : 'current' } , // requires kepler,etc update site
108
- { alias : 'less' , name : 'net.vtst.ow.eclipse.less.feature.feature.group' , repository : 'enide' } , // TODO
108
+ { alias : 'less' , name : 'net.vtst.ow.eclipse.less.feature.feature.group' , repository : 'enide-repository ' } , // TODO
109
109
{ alias : 'markdown' , name : 'markdown.editor.feature.feature.group' } ,
110
110
{ alias : 'maven' , name : 'org.nodeclipse.enide.maven.feature.feature.group' } , //org.nodeclipse.enide.maven.feature.feature.jar,
111
111
{ alias : 'mongodb' , name : 'net.jumperz.app.MMonjaDB.feature.group' } ,
@@ -123,13 +123,14 @@ var plugins = [
123
123
] ;
124
124
var repositories = [
125
125
{ name : 'dev' , url : 'jar:file:/D:/Workspaces/Nodeclipse-DEV/nodeclipse-1/org.nodeclipse.site/target/org.nodeclipse.site-0.10.0-SNAPSHOT.zip!/' } , //hack to help author
126
- { name : 'nodeclipse' , url : 'http://www.nodeclipse.org/updates/' } ,
127
- { name : 'enide' , url : 'https://raw.github.com/Enide/eclipse-p2-composite-repository/master/' } ,
126
+ { name : 'nodeclipse-updates ' , url : 'http://www.nodeclipse.org/updates/' } ,
127
+ { name : 'enide-repository ' , url : 'https://raw.github.com/Enide/eclipse-p2-composite-repository/master/' } ,
128
128
{ name : 'indigo' , url : 'http://download.eclipse.org/releases/indigo' } ,
129
129
{ name : 'juno' , url : 'http://download.eclipse.org/releases/juno' } ,
130
- { name : '4.3' , url : 'http://download.eclipse.org/eclipse/updates/4.3' } , // likely is part of kepler
130
+ { name : '4.3' , url : 'http://download.eclipse.org/eclipse/updates/4.3' } , // is part of kepler
131
131
{ name : 'kepler' , url : 'http://download.eclipse.org/releases/kepler' } , //current
132
132
{ name : 'current' , url : 'http://download.eclipse.org/releases/kepler' } , //current
133
+ { name : '4.4' , url : 'http://download.eclipse.org/eclipse/updates/4.4' } ,
133
134
{ name : 'luna' , url : 'http://download.eclipse.org/releases/luna' } ,
134
135
] ;
135
136
@@ -219,7 +220,8 @@ if (argv[2]=='i'){
219
220
if ( argv . length === 2
220
221
|| argv [ 2 ] == 'help' || argv [ 2 ] == '--help' || argv [ 2 ] == '-h'
221
222
//|| ( argv[2]=='list' && !argv[3]) //will list default repository
222
- || ! ( argv [ 2 ] == 'install' || argv [ 2 ] == 'i' || argv [ 2 ] == 'materialize' || argv [ 2 ] == 'new' || argv [ 2 ] == 'list' || argv [ 2 ] == 'uninstall' )
223
+ || ! ( argv [ 2 ] == 'install' || argv [ 2 ] == 'i' || argv [ 2 ] == 'materialize' || argv [ 2 ] == 'new' || argv [ 2 ] == 'list'
224
+ || argv [ 2 ] == 'uninstall' || argv [ 2 ] == 'update' )
223
225
)
224
226
{
225
227
console . log ( ' nodeclipse help' ) ;
@@ -237,6 +239,8 @@ if (argv.length === 2
237
239
// console.log(' repositoryURL may be file e.g. jar:file:/D:/Workspaces/Nodeclipse-DEV/nodeclipse-1/org.nodeclipse.site/target/org.nodeclipse.site-0.10.0-SNAPSHOT.zip!/');
238
240
console . log ( ' nodeclipse install <alias|exact.feature.name.feature.group> [...]' ) ;
239
241
console . log ( ' nodeclipse install from <repository> <alias|exact.feature.name.feature.group> [...]' ) ;
242
+ console . log ( ' nodeclipse uninstall <alias|exact.feature.name.feature.group> [...]' ) ;
243
+ console . log ( ' nodeclipse update [from <repository>] <alias|exact.feature.name.feature.group> [...]' ) ;
240
244
console . log ( ' nodeclipse install all from <repository> // BE CAREFUL WHAT YOU ASK FOR' ) ;
241
245
// console.log(' nodeclipse install [-repository repositoryURL] <alias|exact.feature.name.feature.group> [...]');
242
246
console . log ( ' nodeclipse materialize [from <repository>] to <folder>' ) ;
@@ -301,6 +305,15 @@ if (argv[2]=='list'){ // this does not work (from http://www.jshint.com/docs/):
301
305
else if ( argv [ 2 ] == 'uninstall' ) {
302
306
var command = 'uninstall' ;
303
307
}
308
+ else if ( argv [ 2 ] == 'update' ) {
309
+ var command = 'update' ;
310
+ if ( argv [ 3 ] == 'from' ) { // was || argv[3]=='-repository'
311
+ if ( argv [ 4 ] ) {
312
+ repository = argv [ 4 ] ;
313
+ startingIndex = 5 ;
314
+ }
315
+ }
316
+ }
304
317
//TODO nci new [from kepler] to e:/builder/eclipse1/
305
318
else if ( argv [ 2 ] == 'materialize' || argv [ 2 ] == 'new' ) {
306
319
var command = 'materialize' ;
@@ -403,6 +416,8 @@ var optionsInstall = ['-nosplash', '-application', 'org.eclipse.equinox.p2.direc
403
416
'-installIU' , plugin , '-tag' , plugin , '-vmargs' , '-Declipse.p2.mirrors=false' ] ;
404
417
var optionsUninstall = [ '-nosplash' , '-application' , 'org.eclipse.equinox.p2.director' , '-repository' , repository ,
405
418
'-uninstallIU' , plugin , '-tag' , plugin ] ;
419
+ var optionsUpdate = [ '-nosplash' , '-application' , 'org.eclipse.equinox.p2.director' , '-repository' , repository ,
420
+ '-uninstallIU' , plugin , '-installIU' , plugin , '-tag' , plugin , '-vmargs' , '-Declipse.p2.mirrors=false' ] ;
406
421
407
422
//DONE nci materialize from kepler to e:/builder/eclipse1/
408
423
@@ -492,6 +507,8 @@ if ( command == 'list'){
492
507
}
493
508
} else if ( command == 'uninstall' ) {
494
509
var spawned = spawning ( what , optionsUninstall , log2console , onExitShowCode ) ;
510
+ } else if ( command == 'update' ) {
511
+ var spawned = spawning ( what , optionsUpdate , log2console , onExitShowCode ) ;
495
512
} else {
496
513
console . log ( "Unexpected command " + command ) ;
497
514
console . log ( "Try nodeclipse help" ) ;
0 commit comments