control-freak-ide/server/nodejs/nxappmain/main_export.js
plastic-hub-dev-node-saturn 538369cff7 latest
2021-05-12 18:35:18 +02:00

30 lines
824 B
JavaScript

require([
"dojo/node!path",
"dojo/node!fs",
"dojo/node!util",
'nxapp/Commons',
'nxapp/Logger',
'nxapp/utils/_console',
'xide/utils',
"nxappmain/nxAppExport",
"nxapp/manager/ExportManager",
"nxapp/model/ExportOptions",
"xide/types",
'require'
], function(path,fs,util,_Commons,Logger,_console,utils,nxAppExport,ExportManager,ExportOptions,types,require){
var debugPaths = true;
var app = new nxAppExport({
commander:null
});
app.init();
var profile = app.profile;
var commander = app.commander;
if(debugPaths){
_console.log('export ' + profile.user + ' and system data: ' +profile.system);
}
var exportOptions = new ExportOptions(profile);
var eManager = new ExportManager();
eManager.initWithOptions(profile);
});