@@ -59,32 +59,34 @@ var OracleJetHybridCreateGenerator = generators.Base.extend({
5959 {
6060 var done = this . async ( ) ;
6161 common . validateAppDirNotExistsOrIsEmpty ( this )
62- . then ( function ( )
62+ . then ( function ( validAppDir )
6363 {
64+ this . appDir = path . basename ( validAppDir ) ;
65+
66+ // platforms that will be added by cordova API.
67+ // note if this.options.platforms is not provided
68+ // it will test out the platform candidates during the prompting
69+ // lifecycle; otherwise it will parse the provided
70+ // platforms options and filter to those that are capable
71+ // on the user's machine
72+ this . _platformsToProcess ;
73+
74+ if ( ! this . options . appName )
75+ {
76+ this . options . appName = _getAppBaseName ( this . appDir ) ;
77+ }
78+
79+ if ( ! this . options . appId )
80+ {
81+ this . options . appId = _getDefaultAppId ( this . appDir ) ;
82+ }
83+
6484 done ( ) ;
65- } )
85+ } . bind ( this ) )
6686 . catch ( function ( err )
6787 {
6888 this . env . error ( commonMessages . prefixError ( err ) ) ;
6989 } . bind ( this ) ) ;
70-
71- // platforms that will be added by cordova API
72- // note if this.options.platforms is not provided
73- // it will test out the platform candidates during the prompting
74- // lifecycle; otherwise it will parse the provided
75- // platforms options and filter to those that are capable
76- // on the user's machine
77- this . _platformsToProcess ;
78-
79- if ( ! this . options . appName )
80- {
81- this . options . appName = _getAppBaseName ( this . appDir ) ;
82- }
83-
84- if ( ! this . options . appId )
85- {
86- this . options . appId = _getDefaultAppId ( this . appDir ) ;
87- }
8890 } ,
8991
9092 prompting : function ( )
0 commit comments