I have a few Tapestry 5.3.x component projects. As part of the test code, there is a webapp that uses jquery/showSource, to display the source of the test page to instruct the user on how to use the component. For example, the tapestry5-highcharts project does exactly this.
My question is, is there an elegant way to set the source directory for the showSource widget? Right now I do something like this in AppModule.java, in contributeApplicationDefaults: configuration.add("demo-src-dir","/Users/George/Dropbox/etc../myProject/src/test"); This works, but obviously it's hard-coded. How can I elegantly determine the source dir and add it to the application defaults within AppModule? I've tried it using an Asset as well as a Context, but haven't been able to make it work. -George