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

Holdmail setup on Windows using Eclipse #24

Open
majoshi1 opened this issue May 15, 2017 · 3 comments
Open

Holdmail setup on Windows using Eclipse #24

majoshi1 opened this issue May 15, 2017 · 3 comments
Assignees
Milestone

Comments

@majoshi1
Copy link

majoshi1 commented May 15, 2017

Question/Issue Overview

Tried to build the code on Windows. But does not work by default.

Expected Behavior

Should be able to build on Windows. Also, simplify H2 interaction.

Current Behavior

Build fails on Windows. Can't interact with H2 by default.

Reproducible Sequence
  1. Obtain source code.
  2. Import as a gradle project in Eclipse, on Windows.
Additional Information
  • Wildcards do not work on Windows. Do the following 2 fixes:

    1. Change wild card to main module name in package.json.
      From:
      "postinstall": "browserify src/main/resources/static/js/*.js | uglifyjs -c -o src/main/resources/static/js/bundle/holdmail.js",
      To:
      "postinstall": "browserify src/main/resources/static/js/HoldmailApp.js | uglifyjs -c -o src/main/resources/static/js/bundle/holdmail.js",

    2. Add "require" by the end of HoldMailApp.js
      require('./MessageListController.js');
      require('./MessageService.js');
      require('./ModalController.js');

  • Compilation fails by default. Add following entry in build.gradle
    compile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.2.1'

  • Rat task fails. Add following under "rat -> excludes" in build.gradle.
    '.settings/',
    'CONTRIBUTING.md',
    '.github/*',
    'docker/',
    '
    /bin/**',
    '.classpath',
    '.project'

  • Add explicit npmInstall task in build.gradle to specify proxy etc.
    npmInstall {
    args = ['--force', '--proxy', 'http://webproxy.example.com:8080/', '--info', '--strict-ssl', 'false']

    execOverrides {
    // it.ignoreExitValue = true
    it.workingDir = '.'
    }
    }

  • Comment buildRpm line.
    //tasks.build.dependsOn('buildRpm')

  • Simplify H2 setup with following steps.
    This way, h2 console works by default.

    • Show h2 console by default
      spring.h2.console.enabled=true

    • Restore default h2 settings:
      From
      spring.datasource.url = jdbc:h2:file:~/holdmail
      To
      spring.datasource.url = jdbc:h2:mem:testdb

    • Reset spring.datasource.password to blank.

@barryoneill
Copy link
Collaborator

Really appreciate the detailed feedback. Over the coming days I'll setup a windows/eclipse runtime and I'll evaluate each of the issues here. Thank you!

@barryoneill barryoneill self-assigned this May 16, 2017
@barryoneill barryoneill added this to the 1.1.0 milestone May 16, 2017
@pkptzx
Copy link

pkptzx commented Oct 11, 2017

@majoshi1
this issue , browserify command args inexactitude (old and path ).
just amend it , I compile in windows.

@barryoneill
Copy link
Collaborator

barryoneill commented Jan 15, 2018

I think there should be fewer problems in windows with the Vue changes brought into master recently, but as for the RAT/eclipse stuff, if somebody would like to raise a PR, it would be welcome.

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

No branches or pull requests

3 participants