Topic: [Ant求助]如何在jar命令时指定MANIFEST.MF的main-class属性呢?

  Print this page

1.[Ant求助]如何在jar命令时指定MANIFEST.MF的main-class属性呢? Copy to clipboard
Posted by: jfml
Posted on: 2003-07-07 11:30

谢谢指点

另外在MANIFEST.MF中加其它属性该如何做呢?

2.Re:[Ant求助]如何在jar命令时指定MANIFEST.MF的main-class属性呢? [Re: CrazyJavar] Copy to clipboard
Posted by: jfml
Posted on: 2003-07-07 11:44

查到了,呵呵,自问自答

  <target name="" depends="">
    <jar destfile="" basedir="
      <manifest>
        <attribute name="Main-Class" value="${mainClass.name}"/>
      </manifest>
    </jar>
  </target>


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923