ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27463] New: - <jar doesn't translate property strings
Date Fri, 05 Mar 2004 05:56:05 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27463>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27463

<jar doesn't translate property strings

           Summary: <jar doesn't translate property strings
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: ddixon@leastsquares.com


Greetings,

I don't know if this is a bug or a feature.  There are some jarfiles 
associated with the application that I want to include on the 
classpath in the jarfile manifest.  I want to pass these as properties, but 
ant doesn't translate the ${...}, but puts it in the manifest 
as a literal.  Similarly, for ${version} and {$TODAY}.  See ant code and 
manifest below.

-dd

<target name="createJar" if="prodBuild">

 <jar destfile="${prodBuild}/application.jar"
    basedir="${prodBuild}"
   includes="com/"
   excludes="application.jar">

  <manifest>
   <attribute name="Main-Class" 
value="com.leastsquares.application.Application"/>
   <attribute name="Class-Path" value="${jarfile1} ${jarfile2} ${jarfile3}" />
         <attribute name="Specification-Title" value="APPLICATION"/>
         <attribute name="Specification-Version" value="${version}"/>
         <attribute name="Specification-Vendor" value="Least Squares 
Software,Inc."/>
         <attribute name="Implementation-Title" value="Application"/>
         <attribute name="Implementation-Version" value="${version} ${TODAY}"/>
         <attribute name="Implementation-Vendor" value="Least Squares 
Software,Inc."/>
    </manifest>
   </jar>
</target>

The manifest looks like this:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.1
Created-By: 1.4.0_02-b02 (Sun Microsystems Inc.)
Main-Class: com.leastsquares.application.Application
Specification-Title: APPLICATION
Specification-Version: ${version}
Specification-Vendor: Least Squares Software, Inc.
Implementation-Title: Policrash
Implementation-Version: ${version} ${TODAY}
Implementation-Vendor: Least Squares Software,Inc.
Class-Path: ${jarfile1} ${jarfile2} ${jarfile3}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message