HTML5 mobile boilerplate build script empties HTML files - html

All files seems to have run through the build script without any problems except my HTML files. They get added to my publish folder but are completely empty. I have tried both ant build and ant minify.
If i comment out this line file.pages.default.include = index.html, 404.html the files don't get emptied.
One more weird thing happend to. My generated css version started at around 40 the first time i ran the script. Doesn't matter at all really. Just a bit odd.
Update:
I noticed i get this error. ERROR: For JavaScript or CSS compression YUI compressor jar file must be present in the same directory as HtmlCompressor jar.
Read a thread where Paul Irish was saying that updating to the latest htmlcompressor jar should solve it. I did that but some reference somewhere needs to be updated with the new filename to cause now i get an error saying that the htmlcompressor jar couldn't be found.

For those who have the same issue, this has just been answered at the mobile boilerplate site: https://github.com/shichuan/mobile-html5-boilerplate/issues/46

Related

Random behavior due to a file conflict running a Jekyll theme locally?

I have, in some unexplained way, managed to get my first Jekyll site with the "Agency" theme running locally.
However, there is something that is still not right. I extracted all the files from the biggest zip file of the theme, which seem to cover all files.
First I must point out that I'm not using GitHub at all for my site. Using only local resources on my Windows machine (afaik), and I'm developing by browsing http://localhost:4000.
I get this warning:
Jekyll Feed: Generating feed for posts
Conflict: The following destination is shared by multiple files.
The written file may end up with unexpected contents.
C:/web/_site/assets/css/agency.css
- assets/css/agency.scss
- C:/web/assets/css/agency.css
...done in 0.1660095 seconds.
This creates strange behaviour. I run these commands:
bundle update
bundle exec jekyll serve
... The site works perfectly until I make some changes that make the style of the page go bananas. I assume it has to do with the warning of the CSS file. It's like it reverts back to some default CSS and my latest changes won't show.
When running the serve command everything auto-updates anyway. The CSS warning conflict never goes away though.
In my _confg.yml file, I could run any of these lines (or comment them both out) and it will work:
theme: raviriley/agency-jekyll-theme
remote_theme: raviriley/agency-jekyll-theme
I'm still confused in general about how Jekyll works and what might have happened in my case. Hope someone can help me solve the conflict thing.
Not sure what you have changed in your CSS but I cannot reproduce your issues using the Agency theme locally on Windows (I have downloaded the theme here and copied all files).
By default, the _config.yml file contains this line for the theme: theme: jekyll-agency. After running bundle and starting the jekyll server, I can see the page. Any modification, such as * { color: red } shows fine, I don't get errors in the logs.
One difference to your version
There is no agency.css file but only the SCSS version of it. The SCSS file is localed in assets\css\agency.scss
This file imports all the other variables and styles. The styles are placed in scss files in these three folders:
base
components
variables
Of course, you can also add styles to the agency.scss file but I would not do it, the component/layout structure makes sense. Read about the Sass Basics here: https://sass-lang.com/guide

Getting exception "Unknown Error" after bundling the application(exe)

We are using the evaluation version of JXBrowser for some charting application. We wanted to showcase a demo to our client just to check the overall performance of charts with JXBrowser. But we encountered some unexpected issue while we were trying to build an "EXE".
The issue:
We created a build and the passed the URL from the classpath(webView.getBrowser().loadURL(getClass().getResource("/chartiq/stx-advanced.html").toExternalForm());); the build successfully generated and if we run the build we are getting exception "Unknown Error" but its working fine in the IDE(Eclipse).
Afterwards, we tried to host the html pages at some server and we were able to get the html rendered in the application.
Question:
1. Is the aforementioned issue related to evaluation version?
2. If above question is not the case, is there any fix for that? As we have crawled the web and find nothing related to this.
For the reference I attached the screen shot showing the full exception stacktrace.
Any help will be appreciated.
Thanks,
Nikhil
The reason of this issue is that JxBrowser doesn't support loading resources from JAR files. Chromium engine used in JxBrowser cannot load the /chartiq/stx-advanced.html file located inside JAR archive. You need to extract the file and load the extracted file.
FYI: we have already started working on the functionality that allows loading HTML files and other resources from JAR archives. An updated build with this functionality will be available in December.

Missing <component>.html_script_0.js files in Polymer build using the CLI tool

I'm having problems running the polymer build command of the polymer CLI, it gives me the following feedback:
and neither of my built folders (bundled or unbundled) have the javascript files. The build process places <script> tag with the src of a javascript file in the place of my javascript code, but this files are not being generated.
I don't know if both errors are related, but I don't know what can I do to generate the <component>.html_script_0.js files.
I had this same problem and saw that there were several issues reporting it.
It seems a fix has been already merged and is part of v0.9.0 but I'm not completely sure if the fix is up on npm just yet.

Alfresco share custom page can't use images

As directed by this link I have created a custom page for Alfresco Share to use as navigation. The jar file contains images and once again as directed its in META-INF/images (this part was sort of unclear what all should be there).
Upon further research I found out that META-INF is auto generated with a manifest but I am unsure a manifest would help me.
Alright the issue I'm having is that I can't get the images out of the jar file for Alfresco Share.
I've tried this #import url("/share/res/images/Concur.ng");
I've tried hard coding links to where they say it should end up
<src="http/serverIP/share/components/image/alfresco-share-logo.ng">
I tried doing it the way they wanted it done
<i src="/res/images/ADPSelfPortal.png"> (or so I think).
<i src="share/res/images/ADPSelfPortal.png"> tried both.
I need some guidance here if I really wanted to I could just drop the file of images somewhere randomly on the server and point to their location but if they aren't logged in they shouldn't have access to these resources.
Sorry this is a mess I'm frustrated with this problem.
As it turns out the instructions were correct, the smallest typo in the name and syntax when creating the jar is extremely important for adding pages to alfresco. Although finding this information did prove difficult at the time. I mentioned in the comment above that the alfresco folder and the meta-inf folder have to be packaged in the same directory. This functionality is important so that alfresco finds all the proper supporting files. Any new files to add to the static folder must be put into the META-INF folder.

Build directory .js files missing, css link broken, jpegs not processing - common issue?

I'm running HTML5 Boilerplate 3.0 and the latest ant build script. I'm on Windows 7.
After a few issues, the .bat file now executes and everything runs. Upon completion though the script directory is my publish folder is empty, though I have the following .js files in my intermediate directory:
js/scripts-concant.min.js
js/scipt.js
js/plugins.js
js/libs/jquery-1.7.1.js
js/lib/modernizr-2.5.3.min.js
In a possibly related issue, my .css file is minified and renamed and links beautifully from index.html but the rest of the files continue to try to link to style.css
In a maybe possibly related issue, I get a can't open for writing error on every single jpeg that it tries to open. They're copied across fine though, so I just wanted to include this for completion.
I've Googled to no avail and can't seem to find a common reason this would happen. I'd really appreciate any pointers, I don't mind fixing things myself, I just can't find a common thread here.
Many thanks.
For the css issue I was having this issue because I had to include all index files by putting specifying *.html in config/project.properties file.
# Web Pages
#
# These are the pages (files) that will be served to users (.html, .php, .asp, etc).
Files in this property will
# be minified / optimised and have any stylesheet or javascript references updated to
the minified examples
#
# The paths need to be relative
#
# Files can be added in a comma separated form
file.pages = *.html
Don't know about the other issues