ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ylan Segal" <y...@digiworks.tv>
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 HelloWorld.java code, there is no configuration
options for log4j (like appenders and stuff), so either you have to have a
log4j.properties 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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message