I used Initializr to set up a new HTML5 project.
I am trying to use Ant Build Script to optimize the files for production : minization , and all that stuff.
I followed every instructions in the ReadMe, basically :
- Install JAVA JDK and WinAnt
- Go to project
root/build and executeant build
I have this error :
Buildfile: build.xml does not exist!
Build failed
Is this a file I'am supposed to write myself ? If so then I think it's weird the readme doesn't mention it at all.
Edit : Sorry I made a mistake in the path, I already was in the /build subfolder as specified in the readme.
Edit2 : Also I realize now that I skipped the "Add the build script to your project" part. When I execute "git checkout -b ant-build-script" I have the error :
fatal: Not a git repository (or any of the parent directories): .git
So I guess I need to set a git repo in my project first. Is there a way to retrieve the right files without using git ?
Edit3 : I set up a git repo and followed the instructions, but now I have errors during the build process. The problem seems to be concat.js. The errors seem to indicate missing files, for instance :
[concat] C:\wamp\www\MoviesLouis\intermediate\index.html does not exist.
The intermediate folder is made by Ant build script, I have no control on it.
The build still finishes with "BUILD SUCCESSFUL".
The result is in the /publish folder, and I can see that all my javascript files are missing (except the ones in the /js/vendor folder).
Should I make a new question ?