ilcgmbh / gulp-nwabap-ui5uploader

Deploying a SAPUI5/OpenUI5 file structure to SAP NetWeaver ABAP using a gulp task
11 stars 6 forks source link

nothing gets uploaded #10

Closed nimble-123 closed 7 years ago

nimble-123 commented 7 years ago

hi, i tried this gulp plugin, but unfortunately only a bsp container is created but no files were uploaded to this bsp container.

no error message nor console output. maybe you could help?

NoelHendrikx commented 7 years ago

Can you share your gulp file? That makes it easier to help you :)

nimble-123 commented 7 years ago

for sure :)

var gulp = require('gulp');
var ui5uploader = require('gulp-nwabap-ui5uploader');

gulp.task('deploy', function() {
  return gulp.src('src/openui5-todo-app')
    .pipe(ui5uploader({
        root: 'src/openui5-todo-app',
        conn: {
            server: 'http://frontend.server',
            useStrictSSL: false
        },
        auth: {
            user: 'user',
            pwd: 'password'
        },
        ui5: {
            package: '$TMP',
            bspcontainer: 'ZZ_UI5_LOCAL',
            bspcontainer_text: 'UI5 upload local objects'
        },
    }));
});

and this is the console output

[12:33:42] Requiring external module babel-register
[12:33:43] Using gulpfile ~/workspace/private/openui5-gulp-starter-kit/gulpfile.babel.js
[12:33:43] Starting 'deploy'...
[12:33:44] [OK] BSP-Container ZZ_UI5_LOCAL created.
[12:33:44] Finished 'deploy' after 1.31 s

am i missing some configurations?

NoelHendrikx commented 7 years ago

Mine looks like:

gulp.task('deploy', [ 'build', 'ui5preload'], function () {
    return gulp.src('build/webapp/**')
        .pipe(ui5uploader({
            root: 'build/webapp',
            conn: {
                server: 'myserver',
                useStrictSSL: false
            },
            auth: {
                user: 'myuser',
                pwd: 'mypassword'
            },
            ui5: {
                package: 'ZFIORI',
                bspcontainer: 'ZSC_FORMS',
                bspcontainer_text: 'Shopping cart forms',
                transportno: 'TRANSPNO123',
                calc_appindex: true
            }
        }));
});

Maybe you forgot the gulp.src('src/openui5-todo-app/**')

nimble-123 commented 7 years ago

i was missing the ** at the end of gulp.src('.../'). now all files are uploaded as expected to the backend abap system.

issue could be closed. thanks for your help!