Created
February 23, 2011 00:55
-
-
Save andrewle/839785 to your computer and use it in GitHub Desktop.
[html5-boilerplate] Running `ant build` when optipng is not installed on OSX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Current | |
$ ant build | |
Buildfile: /Users/andrewle/Projects/html5-boilerplate/build/build.xml | |
build: | |
[echo] Building a Production Environment... | |
-rev: | |
[echo] Increasing the build number... | |
[propertyfile] Updating property file: /Users/andrewle/Projects/html5-boilerplate/build/config/buildinfo.properties | |
[echo] Creating build 0088 | |
-clean: | |
[echo] Cleaning up previous build directory... | |
[delete] Deleting directory /Users/andrewle/Projects/html5-boilerplate/publish | |
-load-build-info: | |
-copy: | |
[echo] Copying over new files... | |
[copy] Copying 18 files to /Users/andrewle/Projects/html5-boilerplate/publish | |
-serverconfig: | |
[echo] Upgrading expires header timeouts for js/css | |
-usemin: | |
[echo] Switching to minified js files... | |
[echo] kill off those versioning flags: ?v=2 | |
-js.libs.minify: | |
[echo] Minifying helper JS files... | |
-js.all.minify: | |
[echo] Minifying concatenated script- and library-file | |
-js.main.concat: | |
[echo] Concatenating Main JS scripts... | |
-js.mylibs.concat: | |
[echo] Concatenating JS libraries | |
-js.scripts.concat: | |
[echo] Concatenating library file with main script file | |
[echo] Concatenating library file with main debug script file | |
-js.delete: | |
[echo] Deleting unoptimized files... | |
[delete] Deleting: /Users/andrewle/Projects/html5-boilerplate/publish/js/scripts-0088.js | |
-strip-console.log: | |
[echo] Commenting out console.log lines | |
-css: | |
[echo] Minifying css... | |
-html: | |
[echo] Clean up the html... | |
-htmlclean: | |
-imagespng: | |
[echo] Optimizing images | |
BUILD FAILED | |
/Users/andrewle/Projects/html5-boilerplate/build/build.xml:133: The following error occurred while executing this line: | |
/Users/andrewle/Projects/html5-boilerplate/build/build.xml:646: Execute failed: java.io.IOException: Cannot run program "optipng" (in directory "/Users/andrewle/Projects/html5-boilerplate"): error=2, No such file or directory | |
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460) | |
at java.lang.Runtime.exec(Runtime.java:593) | |
at org.apache.tools.ant.taskdefs.Execute$Java13CommandLauncher.exec(Execute.java:827) | |
at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java:445) | |
at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java:459) | |
at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:635) | |
at org.apache.tools.ant.taskdefs.ExecuteOn.runExec(ExecuteOn.java:410) | |
at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:502) | |
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) | |
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) | |
at org.apache.tools.ant.Task.perform(Task.java:348) | |
at org.apache.tools.ant.Target.execute(Target.java:390) | |
at org.apache.tools.ant.Target.performTasks(Target.java:411) | |
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) | |
at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38) | |
at org.apache.tools.ant.Project.executeTargets(Project.java:1249) | |
at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:442) | |
at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105) | |
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) | |
at org.apache.tools.ant.Task.perform(Task.java:348) | |
at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:68) | |
at net.sf.antcontrib.logic.IfTask.execute(IfTask.java:217) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) | |
at org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:154) | |
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
at java.lang.reflect.Method.invoke(Method.java:597) | |
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) | |
at org.apache.tools.ant.Task.perform(Task.java:348) | |
at org.apache.tools.ant.Target.execute(Target.java:390) | |
at org.apache.tools.ant.Target.performTasks(Target.java:411) | |
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) | |
at org.apache.tools.ant.Project.executeTarget(Project.java:1366) | |
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) | |
at org.apache.tools.ant.Project.executeTargets(Project.java:1249) | |
at org.apache.tools.ant.Main.runBuild(Main.java:801) | |
at org.apache.tools.ant.Main.startAnt(Main.java:218) | |
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) | |
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) | |
Caused by: java.io.IOException: error=2, No such file or directory | |
at java.lang.UNIXProcess.forkAndExec(Native Method) | |
at java.lang.UNIXProcess.<init>(UNIXProcess.java:53) | |
at java.lang.ProcessImpl.start(ProcessImpl.java:91) | |
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453) | |
... 52 more | |
Total time: 15 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Proposed | |
$ ant build | |
Buildfile: /Users/andrewle/Projects/html5-boilerplate/build/build.xml | |
build: | |
[echo] Building a Production Environment... | |
-rev: | |
[echo] Increasing the build number... | |
[propertyfile] Updating property file: /Users/andrewle/Projects/html5-boilerplate/build/config/buildinfo.properties | |
[echo] Creating build 0089 | |
-clean: | |
[echo] Cleaning up previous build directory... | |
[delete] Deleting directory /Users/andrewle/Projects/html5-boilerplate/publish | |
-load-build-info: | |
-copy: | |
[echo] Copying over new files... | |
[copy] Copying 18 files to /Users/andrewle/Projects/html5-boilerplate/publish | |
-serverconfig: | |
[echo] Upgrading expires header timeouts for js/css | |
-usemin: | |
[echo] Switching to minified js files... | |
[echo] kill off those versioning flags: ?v=2 | |
-js.libs.minify: | |
[echo] Minifying helper JS files... | |
-js.all.minify: | |
[echo] Minifying concatenated script- and library-file | |
-js.main.concat: | |
[echo] Concatenating Main JS scripts... | |
-js.mylibs.concat: | |
[echo] Concatenating JS libraries | |
-js.scripts.concat: | |
[echo] Concatenating library file with main script file | |
[echo] Concatenating library file with main debug script file | |
-js.delete: | |
[echo] Deleting unoptimized files... | |
[delete] Deleting: /Users/andrewle/Projects/html5-boilerplate/publish/js/scripts-0089.js | |
-strip-console.log: | |
[echo] Commenting out console.log lines | |
-css: | |
[echo] Minifying css... | |
-html: | |
[echo] Clean up the html... | |
-htmlclean: | |
-imagespng: | |
[echo] Optimizing images | |
[echo] *** optipng NOT INSTALLED. SKIPPING OPTIMIZATION OF PNGs. | |
[echo] *** Install optipng to enable png optimization. | |
[echo] *** For instructions see 'Dependencies' at: http://html5boilerplate.com/docs/#Build-script.md | |
-imagesjpg: | |
[echo] Clean up those jpgs... | |
-build.production: | |
BUILD SUCCESSFUL | |
Total time: 14 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment