java - Jspresso 4.1-SNAPSHOT ViewTester -


i doing reference guide tutorial. when saving changes in view.groovy can see building workspace message of eclipse these changes not shown in viewtester until mvn compile in core directory.

is right behavior? possible see changes in viewtester without explicit mvn compile in core directory?

my setup: win7, jdk1.7.0_55, eclipse luna service release 2 (4.4.2), jspresso developer studio www.jspresso.org/external/updates/e44/

update: when using refid id:'contact' instead of reference 'contact', ref:'contactinfo' mvn compile shows following error:

[info] scanning changes : c:\jspdev\wstutorial\quickhr\core\src\main\dsl [info] detected change on source c:\jspdev\wstutorial\quickhr\core\src\main\dsl\view.groovy. sun may 31 17:59:40 cest 2015 > sun may 31 17:57:14 cest 2015 nbr error : 1 ur-unresolved reference        : "company.pane" ask <company.contact.address> of type field  [info] ------------------------------------------------------------------------ [info] build failure [info] ------------------------------------------------------------------------ [info] total time: 3.038s [info] finished at: sun may 31 17:59:51 cest 2015 [info] final memory: 15m/37m [info] ------------------------------------------------------------------------ [error] failed execute goal org.jspresso.maven:sjs-maven-plugin:4.1-snapshot:compile-sjs (generate-dsl-application) on project quickhr-core: sjs defined frontend / views invalid. [error] nbr error : 1 [error] ur-unresolved reference        : "company.pane" ask <company.contact.address> of type field [error] -> [help 1] [error] [error] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojoexecutionexception 

update2: vincent has told refid 'contact', id:'contact' fixed compilation error when using refid. cleaning project workspace not viewtester problem. have discovered dsl-view.xml updated in directory c:\jspdev\wstutorial\quickhr\core\target\generated-resources\dsl\de\aboware\quickhr\view when view.groovy saved not in directory c:\jspdev\wstutorial\quickhr\core\target\classes\de\aboware\quickhr\view , seems viewtester reading there. running mvn compile updates file in directory (or copying hand) viewtester finds changes. idea why not happens automatically?

update3: maybe eclipse/maven sourced problem. when build clean after saving changes in view.groovy (with autobuild enabled) viewtester gets changes without explicit mvn compile on th console. seems not required parts of project recompiled automatically after saving changes view.groovy. hints me?

update4: every changes in groovy files have build clean see changes in viewtester , in swingstartup. think more problem of eclipse version/setup problem of jspresso. have bind shortcut build clean helps handle this.

update5: have started scratch 2 times (kepler/luna) both times jspresso 4.2-snapshot , checked resource directories there - no success. when saving changes groovy files compile-sjs goal ist triggered , spring xml files updated in target/generated-resources/dsl directory. in default output directory target/classes nothing happens. when change generated spring xml file hand (from inside eclipse), target/classes directory gets updated. think eclipse not recognise generation of spring xml files workspace change has answered auto build. maybe there has been changed in m2e newer eclipse versions. should give try juno? don't know if makes sence use such old release while mars rc2 already.

there error in doc regarding refid use. has been fixed now. correct statement :

refid 'contact', id:'contact'

regarding main problem, relaunching viewtester after saving view.groovy file should enough reflect change. no need go through cli. reading question, can see eclipse build triggered presume automatic build on necessary change appear. can complete clean of workspace (project > clean... > clean projects) , try again ? there times when changes in groovy dsl sources not correctly detected incremental build.

update: please make sure target/generated-resources/dsl correctly installed resource directory in project. should achieved automatically jds plugin registering build hooks in me2.

enter image description here


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -