1

I am in the process of reducing our application to a bare minimum for some web service testing. So I deleted all of the gsp files except for a half dozen related to login or error handling.

I built the project and logged in, and then went to one of the views I deleted. I was expecting to get a GRE since it could not render the page without the gsp file. Instead the page rendered successfully. In fact, all the views that I had deleted still rendered successfully.

Clearly, something is cached somewhere. So far, I have cleared out my browser caching (for all my browsers), done a grails clean, verified that the view files were deleted on disk, made sure my work, target and target-eclipse directories were clean. Checked my ivy cache and verified that it only contained plugin related downloads and had no files from the core application. Checked my WEB-INF.

Suggestions for what else to clean and any pointers to documentation on how the tc-server process works within GGTS would be much appreciated. (I've googled but not finding what I'm looking for.)

I am out of ideas as to where the cache could be. What am I missing? This also brings home to me that I don't really understand how GGTS works with the vfabric-tc-server.... I've worked with IDEA in the past and that actually built a war file that could be moved around. If the vfabric-tc-server builds a war file, it is not found when I search my windows box.

thanks very much.

4

2 回答 2

1

是的,这个问题一直困扰着很多像你这样的人,所以在运行之前,请养成去目标目录并清除所有内容的习惯grails war

如果使用 linux 只需运行rm -rf target/*后跟grails war.

在 windows cmdRD /S /Q folderPath后跟grails war.

于 2014-08-09T04:14:14.250 回答
0

除非您修改了 中的默认值,否则BuildConfig.groovy2 个最可能的嫌疑人是target/项目中的目录和主.grails/目录下的目录。

于 2014-08-08T18:31:48.283 回答