harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject [build] ant help needed
Date Fri, 20 Oct 2006 16:36:41 GMT
So I'd like to avoid each module having to explicitly list the files
required to go into the meta-inf directory of their JAR, like this
example taken from LOGGING:


  <jar destfile="${hy.jdk}/jre/lib/boot/logging.jar"
     manifest="${hy.logging}/META-INF/MANIFEST.MF">
    <fileset refid="classes" />
    <manifest>
        <attribute name="Implementation-Version" value="${svn.info}"/>
    </manifest>

    <metainf file="${hy.hdk}/NOTICE"/>
    <metainf file="${hy.hdk}/LICENSE"/>
  </jar>


and would prefer to set up a fileset in properties.xml that can be
referenced by all modules' build.xml, kinda like this

properties.xml:
  ...
  <fileset id="hy.required.metainf-files" dir="${hy.hdk}">
      <include name="NOTICE" />
      <include name="LICENSE" />
  </fileset>

then reference it like this:

  <jar destfile="${hy.jdk}/jre/lib/boot/logging.jar"
     manifest="${hy.logging}/META-INF/MANIFEST.MF">
    <fileset refid="classes" />
    <manifest>
        <attribute name="Implementation-Version" value="${svn.info}"/>
    </manifest>

    <metainf refid="${hy.required.metainf-files}"/>
  </jar>


The problem is that it appears the fileset definition is not carried
into the modules' build.xml by virtue of importing the properties.xml.

Any clues?

Regards,
Tim

-- 

Tim Ellison (t.p.ellison@gmail.com)


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message