Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator creates all app files in the yeoman-app root folder #104

Open
deepu105 opened this issue Feb 4, 2016 · 13 comments
Open

Generator creates all app files in the yeoman-app root folder #104

deepu105 opened this issue Feb 4, 2016 · 13 comments
Labels

Comments

@deepu105
Copy link
Contributor

deepu105 commented Feb 4, 2016

platform: windows
node v5.5 npm v37.1

Generator used: https://github.com/jhipster/generator-jhipster

when running the generator even when i select a folder the files are cretaed in the actual yeoman-app root folder, there are some folders alone created in the folder I choose.

Trace below.

PS: we use the this.copy and this.template methods to write files


> [email protected] start D:\Projects\GIT\yeoman-app
> electron . -r


App load time: 142ms
YO-Process { action: 'generator:init', args: [] }
APP { event: 'generator:installed-generators',
  data:
   [ { name: 'generator-generator',
       version: '1.0.1',
       description: 'Generate a Yeoman generator',
       isCompatible: true,
       officialGenerator: false },
     { name: 'generator-jhipster',
       version: '2.27.0',
       description: 'Java + Spring + JPA + AngularJS complete dev stack',
       isCompatible: true,
       officialGenerator: false },
     { name: 'generator-jhipster-bootstrap-material-design',
       version: '0.0.2',
       description: 'Add Material design to your JHipster application',
       isCompatible: true,
       officialGenerator: false },
     { name: 'generator-jhipster-bootswatch',
       version: '0.2.2',
       description: 'A jhipster mdoule to enable bootswatch theme switcher to generated application',
       isCompatible: true,
       officialGenerator: false },
     { name: 'generator-jhipster-entity-audit',
       version: '1.0.7',
       description: 'JHipster module to enable entity audit and audit log page',
       isCompatible: true,
       officialGenerator: false },
     { name: 'generator-jhipster-module',
       version: '1.0.0',
       description: 'JHipster module, used to create a JHipster module',
       isCompatible: true,
       officialGenerator: false },
     { name: 'generator-jhipster-react',
       version: '0.0.0',
       description: 'A Jhipster based generator to create react + spring boot application',
       isCompatible: true,
       officialGenerator: false } ] }
YO-Process { action: 'generator:run',
  args: [ 'generator-jhipster', 'D:\\Projects\\test\\yeo-app' ] }

        ÔûêÔûê  ÔûêÔûê    ÔûêÔûê  ÔûêÔûêÔûêÔûêÔûêÔûêÔûêÔûê  ÔûêÔûêÔûêÔûêÔûêÔûêÔûê    ÔûêÔûêÔûêÔûêÔûêÔûê  ÔûêÔûêÔûêÔûêÔûêÔûêÔûêÔûê  ÔûêÔûêÔûêÔûêÔûêÔûêÔûêÔûê  ÔûêÔûêÔûêÔûêÔûêÔûêÔûê
        ÔûêÔûê  ÔûêÔûê    ÔûêÔûê     ÔûêÔûê     ÔûêÔûê    ÔûêÔûê  ÔûêÔûê          ÔûêÔûê     ÔûêÔûê        ÔûêÔûê    ÔûêÔûê
        ÔûêÔûê  ÔûêÔûêÔûêÔûêÔûêÔûêÔûêÔûê     ÔûêÔûê     ÔûêÔûêÔûêÔûêÔûêÔûêÔûê    ÔûêÔûêÔûêÔûêÔûê      ÔûêÔûê     ÔûêÔûêÔûêÔûêÔûêÔûê    ÔûêÔûêÔûêÔûêÔûêÔûêÔûê
  ÔûêÔûê    ÔûêÔûê  ÔûêÔûê    ÔûêÔûê     ÔûêÔûê     ÔûêÔûê             ÔûêÔûê     ÔûêÔûê     ÔûêÔûê        ÔûêÔûê   ÔûêÔûê
   ÔûêÔûêÔûêÔûêÔûêÔûê   ÔûêÔûê    ÔûêÔûê  ÔûêÔûêÔûêÔûêÔûêÔûêÔûêÔûê  ÔûêÔûê        ÔûêÔûêÔûêÔûêÔûêÔûê      ÔûêÔûê     ÔûêÔûêÔûêÔûêÔûêÔûêÔûêÔûê  ÔûêÔûê
   ÔûêÔûê

                            http://jhipster.github.io

Welcome to the JHipster Generator v2.27.0

APP { event: 'generator:prompt-questions',
  data:
   [ { type: 'confirm',
       name: 'insight',
       message: 'May JHipster anonymously report usage statistics to improve the tool over time?',
       default: true } ] }
YO-Process { action: 'generator:prompt-answer',
  args: [ { insight: true } ] }
APP { event: 'generator:prompt-questions',
  data:
   [ { type: 'list',
       name: 'applicationType',
       message: '(1/15) Which *type* of application would you like to create?',
       choices: [Object],
       default: 'monolith' } ] }
YO-Process { action: 'generator:prompt-answer',
  args: [ { applicationType: 'monolith' } ] }
APP { event: 'generator:prompt-questions',
  data:
   [ { type: 'input',
       name: 'baseName',
       message: '(2/15) What is the base name of your application?',
       default: 'jhipster' } ] }
YO-Process { action: 'generator:prompt-answer',
  args: [ { baseName: 'jhipster' } ] }
APP { event: 'generator:prompt-questions',
  data:
   [ { type: 'input',
       name: 'packageName',
       message: '(3/15) What is your default Java package name?',
       default: 'com.mycompany.myapp',
       store: true },
     { type: 'list',
       name: 'authenticationType',
       message: '(4/15) Which *type* of authentication would you like to use?',
       choices: [Object],
       default: 0 },
     { type: 'list',
       name: 'databaseType',
       message: '(5/15) Which *type* of database would you like to use?',
       choices: [Object],
       default: 0 },
     { type: 'list',
       name: 'databaseType',
       message: '(5/15) Which *type* of database would you like to use?',
       choices: [Object],
       default: 0 },
     { type: 'list',
       name: 'prodDatabaseType',
       message: '(6/15) Which *production* database would you like to use?',
       choices: [Object],
       default: 0 },
     { type: 'list',
       name: 'devDatabaseType',
       message: '(7/15) Which *development* database would you like to use?',
       choices: [Object],
       default: 0 },
     { type: 'list',
       name: 'devDatabaseType',
       message: '(7/15) Which *development* database would you like to use?',
       choices: [Object],
       default: 0 },
     { type: 'list',
       name: 'devDatabaseType',
       message: '(7/15) Which *development* database would you like to use?',
       choices: [Object],
       default: 0 },
     { type: 'list',
       name: 'hibernateCache',
       message: '(8/15) Do you want to use Hibernate 2nd level cache?',
       choices: [Object],
       default: 1 },
     { type: 'list',
       name: 'searchEngine',
       message: '(9/15) Do you want to use a search engine in your application?',
       choices: [Object],
       default: 0 },
     { type: 'list',
       name: 'clusteredHttpSession',
       message: '(10/15) Do you want to use clustered HTTP sessions?',
       choices: [Object],
       default: 0 },
     { type: 'list',
       name: 'websocket',
       message: '(11/15) Do you want to use WebSockets?',
       choices: [Object],
       default: 0 },
     { type: 'list',
       name: 'buildTool',
       message: '(12/15) Would you like to use Maven or Gradle for building the backend?',
       choices: [Object],
       default: 'maven' } ] }
YO-Process { action: 'generator:prompt-answer',
  args:
   [ { authenticationType: 'session',
       buildTool: 'maven',
       clusteredHttpSession: 'no',
       databaseType: 'sql',
       devDatabaseType: 'h2Disk',
       hibernateCache: 'no',
       packageName: 'com.mycompany.myapp',
       prodDatabaseType: 'mysql',
       searchEngine: 'no',
       websocket: 'no' } ] }
APP { event: 'generator:prompt-questions',
  data:
   [ { type: 'confirm',
       name: 'useSass',
       message: '(13/15) Would you like to use the LibSass stylesheet preprocessor for your CSS?',
       default: false },
     { type: 'confirm',
       name: 'enableTranslation',
       message: '(14/15) Would you like to enable translation support with Angular Translate?',
       default: true } ] }
YO-Process { action: 'generator:prompt-answer',
  args: [ { enableTranslation: true, useSass: false } ] }
APP { event: 'generator:prompt-questions',
  data:
   [ { type: 'checkbox',
       name: 'testFrameworks',
       message: '(15/15) Which testing frameworks would you like to use?',
       choices: [Object],
       default: [Object] } ] }
YO-Process { action: 'generator:prompt-answer',
  args: [ { testFrameworks: [] } ] }
   create ..\..\GIT\yeoman-app\bower.json
 conflict ..\..\GIT\yeoman-app\package.json
APP { event: 'generator:prompt-questions',
  data:
   [ { name: 'action',
       type: 'expand',
       message: 'Overwrite ..\\..\\GIT\\yeoman-app\\package.json?',
       choices: [Object] } ] }
YO-Process { action: 'generator:prompt-answer',
  args: [ { action: 'force' } ] }
    force ..\..\GIT\yeoman-app\package.json
    force ..\..\GIT\yeoman-app\README.md
    force ..\..\GIT\yeoman-app\.gitignore
   create ..\..\GIT\yeoman-app\.gitattributes
    force ..\..\GIT\yeoman-app\.editorconfig
   create ..\..\GIT\yeoman-app\.jshintrc
    force ..\..\GIT\yeoman-app\.travis.yml
   create ..\..\GIT\yeoman-app\src\main\docker\sonar.yml
   create ..\..\GIT\yeoman-app\src\main\docker\prod.yml
   create ..\..\GIT\yeoman-app\mvnw
   create ..\..\GIT\yeoman-app\mvnw.cmd
   create ..\..\GIT\yeoman-app\.mvn\wrapper\maven-wrapper.jar
   create ..\..\GIT\yeoman-app\.mvn\wrapper\maven-wrapper.properties
   create ..\..\GIT\yeoman-app\pom.xml
   create ..\..\GIT\yeoman-app\src\main\resources\banner.txt
   create ..\..\GIT\yeoman-app\src\main\resources\.h2.server.properties
   create ..\..\GIT\yeoman-app\src\main\resources\templates\error.html
   create ..\..\GIT\yeoman-app\src\main\resources\logback-spring.xml
   create ..\..\GIT\yeoman-app\src\main\resources\config\application.yml
   create ..\..\GIT\yeoman-app\src\main\resources\config\application-dev.yml
   create ..\..\GIT\yeoman-app\src\main\resources\config\application-prod.yml
   create ..\..\GIT\yeoman-app\src\main\resources\config\liquibase\changelog\00000000000000_initial_schema.xml
   create ..\..\GIT\yeoman-app\src\main\resources\config\liquibase\master.xml
   create ..\..\GIT\yeoman-app\src\main\resources\config\liquibase\users.csv
   create ..\..\GIT\yeoman-app\src\main\resources\config\liquibase\authorities.csv
   create ..\..\GIT\yeoman-app\src\main\resources\config\liquibase\users_authorities.csv
   create ..\..\GIT\yeoman-app\src\main\resources\mails\activationEmail.html
   create ..\..\GIT\yeoman-app\src\main\resources\mails\creationEmail.html
   create ..\..\GIT\yeoman-app\src\main\resources\mails\passwordResetEmail.html
   create ..\..\GIT\yeoman-app\src\main\resources\i18n\messages_en.properties
   create ..\..\GIT\yeoman-app\src\main\resources\i18n\messages_fr.properties
   create ..\..\GIT\yeoman-app\src\main\resources\i18n\messages.properties
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\Application.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\ApplicationWebXml.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\aop\logging\LoggingAspect.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\apidoc\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\apidoc\SwaggerConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\async\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\async\ExceptionHandlingAsyncTaskExecutor.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\AsyncConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\CacheConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\Constants.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\CloudDatabaseConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\DatabaseConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\JacksonConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\JHipsterProperties.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\LocaleConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\LoggingAspectConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\MetricsConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\SecurityConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\ThymeleafConfiguration.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\WebConfigurer.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\errors\ErrorConstants.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\errors\CustomParameterizedException.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\errors\ErrorDTO.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\errors\ExceptionTranslator.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\errors\FieldErrorDTO.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\errors\ParameterizedErrorDTO.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\audit\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\audit\AuditEventConverter.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\locale\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\locale\AngularCookieLocaleResolver.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\liquibase\AsyncSpringLiquibase.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\config\liquibase\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\AbstractAuditingEntity.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\Authority.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\PersistentAuditEvent.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\PersistentToken.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\User.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\util\JSR310DateConverters.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\util\JSR310PersistenceConverters.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\util\JSR310DateTimeSerializer.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\util\JSR310LocalDateDeserializer.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\domain\util\FixedH2Dialect.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\repository\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\repository\AuthorityRepository.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\repository\CustomAuditEventRepository.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\repository\PersistenceAuditEventRepository.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\repository\UserRepository.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\repository\PersistentTokenRepository.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\AjaxAuthenticationFailureHandler.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\AjaxAuthenticationSuccessHandler.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\AjaxLogoutSuccessHandler.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\AuthoritiesConstants.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\CustomAccessDeniedHandler.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\CustomPersistentRememberMeServices.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\Http401UnauthorizedEntryPoint.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\SecurityUtils.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\SpringSecurityAuditorAware.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\UserDetailsService.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\security\UserNotActivatedException.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\service\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\service\AuditEventService.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\service\UserService.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\service\MailService.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\service\util\RandomUtil.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\filter\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\filter\CachingHttpHeadersFilter.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\filter\StaticResourcesProductionFilter.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\filter\CsrfCookieGeneratorFilter.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\dto\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\dto\LoggerDTO.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\dto\UserDTO.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\dto\ManagedUserDTO.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\util\HeaderUtil.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\dto\KeyAndPasswordDTO.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\util\PaginationUtil.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\package-info.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\AccountResource.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\AuditResource.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\LogsResource.java
   create ..\..\GIT\yeoman-app\src\main\java\com\mycompany\myapp\web\rest\UserResource.java
   create ..\..\GIT\yeoman-app\src\test\java\com\mycompany\myapp\security\SecurityUtilsUnitTest.java
   create ..\..\GIT\yeoman-app\src\test\java\com\mycompany\myapp\service\UserServiceIntTest.java
   create ..\..\GIT\yeoman-app\src\test\java\com\mycompany\myapp\web\rest\AccountResourceIntTest.java
   create ..\..\GIT\yeoman-app\src\test\java\com\mycompany\myapp\web\rest\AuditResourceIntTest.java
   create ..\..\GIT\yeoman-app\src\test\java\com\mycompany\myapp\web\rest\TestUtil.java
   create ..\..\GIT\yeoman-app\src\test\java\com\mycompany\myapp\web\rest\UserResourceIntTest.java
   create ..\..\GIT\yeoman-app\src\test\resources\config\application.yml
   create ..\..\GIT\yeoman-app\src\test\resources\logback-test.xml
   create ..\..\GIT\yeoman-app\.bowerrc
   create ..\..\GIT\yeoman-app\gulpfile.js
   create ..\..\GIT\yeoman-app\gulp\handleErrors.js
   create ..\..\GIT\yeoman-app\gulp\utils.js
   create ..\..\GIT\yeoman-app\src\main\webapp\content\css\main.css
   create ..\..\GIT\yeoman-app\src\main\webapp\favicon.ico
   create ..\..\GIT\yeoman-app\src\main\webapp\robots.txt
   create ..\..\GIT\yeoman-app\src\main\webapp\.htaccess
   create ..\..\GIT\yeoman-app\src\main\webapp\404.html
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\activate.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\audits.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\configuration.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\error.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\login.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\logs.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\home.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\metrics.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\password.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\register.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\sessions.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\settings.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\reset.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\user-management.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\global.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\en\health.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\activate.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\audits.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\configuration.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\error.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\login.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\logs.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\home.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\metrics.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\password.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\register.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\sessions.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\settings.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\reset.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\user-management.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\global.json
   create ..\..\GIT\yeoman-app\src\main\webapp\i18n\fr\health.json
   create ..\..\GIT\yeoman-app\src\main\webapp\swagger-ui\index.html
   create ..\..\GIT\yeoman-app\src\main\webapp\swagger-ui\images\throbber.gif
   create ..\..\GIT\yeoman-app\src\main\webapp\app\app.module.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\app.config.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\app.constants.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\account.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\activate\activate.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\activate\activate.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\activate\activate.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\login\login.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\login\login.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\login\login.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\password\password.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\password\password.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\password\password.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\password\password.directive.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\register\register.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\register\register.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\register\register.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\reset\request\reset.request.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\reset\request\reset.request.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\reset\request\reset.request.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\reset\finish\reset.finish.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\reset\finish\reset.finish.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\reset\finish\reset.finish.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\sessions\sessions.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\sessions\sessions.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\sessions\sessions.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\settings\settings.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\settings\settings.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\account\settings\settings.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\admin.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\audits\audits.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\audits\audits.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\audits\audits.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\audits\audits.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\configuration\configuration.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\configuration\configuration.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\configuration\configuration.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\configuration\configuration.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\docs\docs.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\docs\docs.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\health\health.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\health\health.modal.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\health\health.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\health\health.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\health\health.modal.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\health\health.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\logs\logs.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\logs\logs.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\logs\logs.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\logs\logs.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\metrics\metrics.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\metrics\metrics.modal.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\metrics\metrics.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\metrics\metrics.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\metrics\metrics.modal.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\metrics\metrics.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\user-management\user-management.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\user-management\user-management-detail.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\user-management\user-management-dialog.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\user-management\user-management-delete-dialog.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\user-management\user-management.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\user-management\user-management.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\user-management\user-management-detail.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\user-management\user-management-dialog.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\admin\user-management\user-management-delete-dialog.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\form\form.directive.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\form\maxbytes.directive.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\form\minbytes.directive.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\form\uib-pager.config.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\form\uib-pagination.config.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\form\pagination.constants.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\language\language.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\language\language.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\util\base64.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\util\capitalize.filter.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\util\parse-links.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\util\truncate.filter.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\util\date-util.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\util\data-util.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\util\sort.directive.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\interceptor\auth.interceptor.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\interceptor\errorhandler.interceptor.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\interceptor\notification.interceptor.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\alert\alert.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\components\alert\alert.directive.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\entities\entity.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\home\home.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\home\home.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\home\home.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\layouts\navbar\navbar.directive.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\layouts\navbar\navbar.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\layouts\navbar\navbar.controller.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\layouts\error\error.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\layouts\error\accessdenied.html
   create ..\..\GIT\yeoman-app\src\main\webapp\app\layouts\error\error.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\services\auth\auth.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\services\auth\principal.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\services\auth\authority.directive.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\services\auth\auth.session.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\services\auth\account.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\services\auth\activate.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\services\auth\password.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\services\auth\register.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\services\auth\sessions.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\app\services\user\user.service.js
   create ..\..\GIT\yeoman-app\src\main\webapp\content\css\documentation.css
   create ..\..\GIT\yeoman-app\src\main\webapp\content\images\development_ribbon.png
   create ..\..\GIT\yeoman-app\src\main\webapp\content\images\hipster.png
   create ..\..\GIT\yeoman-app\src\main\webapp\content\images\hipster2x.png
   create ..\..\GIT\yeoman-app\src\main\webapp\index.html
   create ..\..\GIT\yeoman-app\src\test\javascript\karma.conf.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\helpers\module.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\helpers\httpBackend.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\admin\health\health.controller.spec.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\account\login\login.controller.spec.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\account\password\password.controller.spec.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\account\password\password.directive.spec.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\account\settings\settings.controller.spec.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\account\activate\activate.controller.spec.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\account\register\register.controller.spec.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\account\reset\finish\reset.finish.controller.spec.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\account\reset\request\reset.request.controller.spec.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\services\auth\auth.services.spec.js
   create ..\..\GIT\yeoman-app\src\test\javascript\spec\app\account\sessions\sessions.controller.spec.js


I'm all done. Running npm install & bower install for you to install the required dependencies. If this fails, try running the command yourself.



Web app generated succesfully.


Server app generated succesfully.


Client app generated succesfully.

APP { event: 'generator:done', data: 'D:\\Projects\\test\\yeo-app' }


@deepu105
Copy link
Contributor Author

deepu105 commented Feb 4, 2016

I think its something to do with path selection which might be trying do unix style in windows

@deepu105
Copy link
Contributor Author

deepu105 commented Feb 4, 2016

Tested few other generators all does the same, files are generated in yeoman-app root folder instead of the folder i selected

@deepu105 deepu105 changed the title Generator creates all app files in the yeomna-app root folder Generator creates all app files in the yeoman-app root folder Feb 5, 2016
@deepu105
Copy link
Contributor Author

deepu105 commented Feb 5, 2016

guys I can try to debug and fix this but where should I start looking at??

@stefanbuck
Copy link
Member

First you should read the basics how the app and the ipc communication works: https://github.com/yeoman/yeoman-app/blob/master/docs/events.md

On windows 7 it generates the files in the selected folder. From your logs I can see that the target path seems to be correct.

{ action: 'generator:run', args: [ 'generator-jhipster', 'D:\\Projects\\test\\yeo-app' ] }

Try to replace the run function
yo.js with the code below, too see if it's a yeoman-enviroment issue.

function run(generatorName, cwd) {
  process.chdir(cwd);
  fs.mkdirSync('yeoman-says-hello'); 
  sendCommandToAppWindow('generator:done', cwd);
}

@deepu105
Copy link
Contributor Author

Ok guys I did a small test and this indeed might be a yeoman-environment issue

I wrote the below and ran it and it behaves the same as in issue, the files are generated in the root folder where I run instead of the specified folder. Ill open a issue in yeoman-environment as well

var fs = require('fs');
var _ = require('lodash');
var yeoman = require('yeoman-environment');
var env = yeoman.createEnv();

var init = function () {
  //process.chdir('./testDir');
  console.log('init yeoman-environment');
  console.log(process.cwd());
  // Here we register a jhipster generator based on its path. Providing the namespace
  env.register(require.resolve('generator-jhipster'), 'jhipster:app');
};

var runApp = function () {
  console.log('running yo app');
  run('jhipster:app', './testDir')
};

function sendCommandToAppWindow(name, data) {
  if (data instanceof Error) {
    console.error(data);
    data = data.toString();
  }
}

function run(generatorName, cwd) {

  if (!generatorName) {
    return sendCommandToAppWindow('generator:error', new Error('You must provide a generator name'));
  }

  if (!fs.existsSync(cwd)) {
    return sendCommandToAppWindow('generator:error', new Error('The given path does not exist or is not a directory'));
  }
  console.log(process.cwd());
  process.chdir(cwd);
  console.log(process.cwd());

  function done(err) {
    if (err) {
      return sendCommandToAppWindow('generator:error', err);
    }
  }

  // invoke generator
  env.run(generatorName, { 'skip-install': true }, done);
}

module.exports = {
  init : init,
  runApp : runApp
}

@SBoudrias
Copy link
Member

most probably a .yo-rc.json in your home folder.

@deepu105
Copy link
Contributor Author

You were right for the sample above which caused the same behavior. But for the behavior within the yeoman-app which I originally reported in this issue is not the case as the yeoman-app root folder did not have any .yo-rc.json file

@deepu105
Copy link
Contributor Author

can you open this plz as its still an issue

@SBoudrias
Copy link
Member

Yeah, let's reopen this one for now.

This does works fine with yo, so let's keep the discussion here as it is only affecting yeoman-app.

@SBoudrias SBoudrias reopened this Feb 25, 2016
@deepu105
Copy link
Contributor Author

not just yeoman-app, its probably something to do with yeoman-environment
itself so should affect any app that uses yeoman-environment and provides
an option to choose folder to generate files to.

Thanks & Regards,
Deepu

On Thu, Feb 25, 2016 at 3:29 PM, Simon Boudrias [email protected]
wrote:

Yeah, let's reopen this one for now.

This does works fine with yo, so let's keep the discussion here as it is
only affecting yeoman-app.


Reply to this email directly or view it on GitHub
#104 (comment).

@revathskumar
Copy link
Member

I tried backbone, webapp and mocha along with yeoman-app and backbone generator generated files in the target directory itself and others generated files in the yeoman-app directory. (I cloned yeoman-app and ran npm start).

@stefanbuck
Copy link
Member

What kind of files are generated in the yeoman-app directory? Always the same files or is it random? What is your OS?

@stefanbuck stefanbuck added the bug label Mar 28, 2016
@revathskumar
Copy link
Member

All the app and test files that particular generator generated. I am on OSX
10.10.

On Mon, Mar 28, 2016 at 9:45 PM, Stefan Buck [email protected]
wrote:

What kind of files are generated in the yeoman-app directory? Always the
same files or is it random? What is your OS?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#104 (comment)

with regards,
Revath S Kumar,
Rubyist / JavaScripter / PHP

markdownblogger.herokuapp.com

www.phprepo.in
revathskumar.com
+919995436867

http://twitter.com/revathskumar http://www.linkedin.com/in/revathskumar
http://www.gplus.to/rsk http://www.about.me/revathskumar
http://www.phprepo.in/
http://www.github.com/revathskumar http://www.youtube.com/revathskumar
http://blog.revathskumar.com https://foursquare.com/revathskumar [image:
normal-1.png] http://careers.stackoverflow.com/revathskumar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants