holdmail icon indicating copy to clipboard operation
holdmail copied to clipboard

Holdmail setup on Windows using Eclipse

Open majoshi1 opened this issue 8 years ago • 3 comments

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.

majoshi1 avatar May 15 '17 14:05 majoshi1

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 avatar May 16 '17 00:05 barryoneill

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

pkptzx avatar Oct 11 '17 06:10 pkptzx

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.

barryoneill avatar Jan 15 '18 21:01 barryoneill