Holdmail setup on Windows using Eclipse
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
- Obtain source code.
- Import as a gradle project in Eclipse, on Windows.
Additional Information
-
Wildcards do not work on Windows. Do the following 2 fixes:
-
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",
-
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.
-
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!
@majoshi1
this issue , browserify command args inexactitude (old and path ).
just amend it , I compile in windows.
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.