Comments (5)
Hi,
You need the tools
folder and the config
folder as well as the build.xml itself.
Then, I think you can just edit the tasks in project.properties and it should work as long as everything maps correctly.
from ant-build-script.
Figured it out. There was two things that I needed to do:
-
Run ant with
ant -lib path/to/h5bp-ant/tools
to pick up Ant contrib -
Import default.properties in my build file like this:
It might be nice to add this to the README in the Add the build script to your project section.
from ant-build-script.
@dagoss Happy to hear you figured it out. FWIW, the path to the tools directory can be updated in the project.properties to point wherever you need it.
PRs always welcome for updated docs.
from ant-build-script.
Actually, I'm still not sure about this. I attempt to process a SCSS file and ran into this error:
/home/dagoss/projects/h5bp-ant/build.xml:1318: /home/dagoss/projects/initializr/home/dagoss/projects/h5bp-ant/tools does not exist.
(that looks like the ${basedir}/${dir.build.tools}. See below)
Here's what my project's build.xml looks like:
<project basedir='..' default="default_target">
<import file='../../h5bp-ant/build.xml'/>
<dirname property="imported.basedir" file="${ant.file.Boilerplate Build}"/>
<!-- before adding the line below, I got errors about there being no [my project]/build/tools -->
<property name="dir.build.tools" value="${imported.basedir}/tools"/>
<property name="build.css.scss" value="true"/>
<property name="file.root.stylesheet" value="test.scss"/>
<property file="${imported.basedir}/config/default.properties"/>
<target name="default_target">
<antcall target="build"/>
</target>
</project>
from ant-build-script.
I got this to work with this tweak to the H5BP build.xml:
Changed:
<path id="JRuby">
<fileset file="./${dir.build.tools}/jruby-complete-1.6.7.2.jar"/>
<fileset file="./${dir.build.tools}/gem-sass.jar"/>
</path>
To
<path id="JRuby">
<fileset file="${dir.build.tools}/jruby-complete-1.6.7.2.jar"/>
<fileset file="${dir.build.tools}/gem-sass.jar"/>
</path>
I tried replace ./
with ${basedir}/
, but that didn't work. I'm seeing similar errors compiler.jar
.
I don't like changing the H5BP build file by hand like that. Is there a better way to resolve this problem from my project's build file?
(Ant 1.9.6 on Linux)
from ant-build-script.
Related Issues (20)
- Change docs to address confusion HOT 2
- Can't copy minified js directory over to publish HOT 2
- Concatenation after minifying and ADVANCED_OPTIMIZATIONS HOT 5
- Image Optimization Broken on Linux/Mac HOT 9
- Minifying any unconcatenated css files... FileNotFoundException HOT 2
- The gem-sass.jar throws an exception with Foundation 4 HOT 3
- Image Optimization HOT 5
- Rework Image Optimization HOT 15
- CSS reference not updating w/php includes on build HOT 6
- Mavericks Upgrade: Busted Macports for Ant HOT 2
- Unicode characters being inserted between css imports upon concatenation. HOT 5
- css-references not updating in html-file HOT 17
- working with sass stylesheets HOT 1
- problem with advpng and java.. HOT 5
- set language_in option for closure compiler? HOT 6
- Port to NodeJs HOT 1
- css does not minify/concat correctly when using default main.css HOT 7
- ant validate only validates single page HOT 1
- JS files vanished in publish/ directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ant-build-script.