Code Monkey home page Code Monkey logo

Comments (5)

roblarsen avatar roblarsen commented on June 10, 2024

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.

dagoss avatar dagoss commented on June 10, 2024

Figured it out. There was two things that I needed to do:

  1. Run ant with ant -lib path/to/h5bp-ant/tools to pick up Ant contrib

  2. 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.

roblarsen avatar roblarsen commented on June 10, 2024

@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.

dagoss avatar dagoss commented on June 10, 2024

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.

dagoss avatar dagoss commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.