The new location protects the assets and allows Tapestry to serve them up however it wishes, eg. gzipped, renamed with checksum in name, etc.
http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/META-INF-assets-in-5-4-td5714677.html On 8 Jun 2014, at 4:41 pm, Muhammad Gelbana <m.gelb...@gmail.com> wrote: > Is there a logical reason for that ? If there is, it will be easier for me > to remember. > > *---------------------* > *Muhammad Gelbana* > http://www.linkedin.com/in/mgelbana > > > On Sun, Jun 8, 2014 at 4:08 AM, Geoff Callender < > geoff.callender.jumpst...@gmail.com> wrote: > >> Not src/main/webapp/META-INF/ - use src/main/resources/META-INF/, eg. >> >> >> http://jumpstart.doublenegative.com.au/jumpstart7/examples/javascript/javascript >> >> They will end up in your WAR's /WEB-INF/classes/META-INF/. >> >> Cheers, >> >> Geoff >> >> On 8 Jun 2014, at 8:14 am, Muhammad Gelbana <m.gelb...@gmail.com> wrote: >> >>> That's how I included my JS and CSS files >>> >>> @Import(library = { "js/jquery-1.10.2.js", >>> "js/bootstrap.min.js", >>> "js/plugins/metisMenu/jquery.metisMenu.js", >>> "js/plugins/morris/raphael-2.1.0.min.js", >>> "js/plugins/morris/morris.js", >>> "js/sb-admin.js", >>> "js/demo/dashboard-demo.js" }, >>> >>> stylesheet = { "css/bootstrap.min.css", >>> "font-awesome/css/font-awesome.css", >>> "css/plugins/morris/morris-0.4.3.min.css", >>> "css/plugins/timeline/timeline.css", "css/sb-admin.css" }) >>> >>> *---------------------* >>> *Muhammad Gelbana* >>> http://www.linkedin.com/in/mgelbana >>> >>> >>> On Sun, Jun 8, 2014 at 1:06 AM, Muhammad Gelbana <m.gelb...@gmail.com> >>> wrote: >>> >>>> Unable to locate ass >>>> >>>> et 'js/jquery-1.10.2.js' for component Index:layout. It should be >> located >>>> at META-IN >>>> >>>> F/assets/js/jquery-1.10.2.js >>>> >>>> >>>> I've already placed this file in the specified location under the webapp >>>> folder (i.e. src/main/webapp) and put the mentioned files under *js* >>>> folder. >>>> >>>> The file's path on the disk is exactly >>>> * >>>> >> t5-basic-bootstrap/src/main/webapp/META-INF/assets/js/jquery-1.10.2.js >>>> * >>>> >>>> Where else should I place my META-INF directory if not next to the >>>> WEB-INF ? >>>> >>>> *---------------------* >>>> *Muhammad Gel bana* >>>> http://www.linkedin.com/in/mgelbana >>>> >>>> >>>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org