build.xml을 사용하여 파일 버전 특성을 WAR 파일에 추가하려고합니다. build.xml 파일에서 WAR 파일에 파일 버전 특성 추가 - build.xml 사용
나는 매니페스트 있습니다<manifest>
<attribute name="Implementation-Title" value="${ant.project.name}"/>
<attribute name="Implementation-Vendor" value="${ba.Version.Company}" />
<attribute name="Implementation-Version" value="${ba.Version.Major}.${ba.Version.Minor}.${ba.Version.Release}.${ba.Version.Build}" />
<attribute name="Build-Timestamp" value="${current.time}"/>
</manifest>
을하지만 속성처럼 사용하는 방법을 모르겠어요.
<?xml version="1.0"?>
<project name="Hello World Project" default="info">
<property version="1.0"/>
<target name="info">
<echo>Apache Ant version is ${ant.version} - You are at ${sitename} </echo>
</target>
</project>
감사합니다. 나에게도 좋습니다! – Rubin