You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@harmony.apache.org by Tim Ellison <t....@gmail.com> on 2006/10/20 18:36:41 UTC

[build] ant help needed

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


Re: [build] ant help needed

Posted by Tim Ellison <t....@gmail.com>.
Matt Benson wrote:
> Tim: This should not be the case.  What version of Ant
> is this?

I'm using Ant 1.6.5

When I try that style I get:

BUILD FAILED
C:\Harmony\modules\logging\build.xml:76: Reference
${hy.required.metainf-files} not found.

Regards,
Tim


> --- Tim Ellison <t....@gmail.com> wrote:
> 
>> 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
>>
>>
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.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
> 
> 

-- 

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


Re: [build] ant help needed

Posted by Matt Benson <gu...@yahoo.com>.
Tim: This should not be the case.  What version of Ant
is this?

-Matt

--- Tim Ellison <t....@gmail.com> wrote:

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


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.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