ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ylan Segal" <>
Subject RE: Using Main-Class and Class-Path in a manifest file
Date Tue, 12 Mar 2002 21:46:21 GMT
I am not to familiar with your problem, but this just jumped at me:
>      <!-- Put everything in ${build} into the HelloWorld.jar file -->
>      <jar jarfile="${dist}/HelloWorld.jar" basedir="${build}">
>        <manifest>
>          <attribute name="Class-Path" value=". ./lib/log4j.jar"/>
                                                ^----- Is this a space?

>          <attribute name="Main-Class" value="HelloWorld"/>
>        </manifest>
>      </jar>
>    </target>

And Another thing, in your code, there is no configuration
options for log4j (like appenders and stuff), so either you have to have a or log4j.xml in your classpath as well. But all that is
really not related to ant.

Hope this helps.

Ylan Segal.

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message