Guess I was not of much help then!!! Sorry!
Ylan. > -----Mensaje original----- > De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de Todd > Wilson > Enviado el: Martes, 12 de Marzo de 2002 04:05 p.m. > Para: Ant Users List > Asunto: Re: Using Main-Class and Class-Path in a manifest file > > > Thanks for your response, Ylan. That is, indeed, a space. The JAR spec > dictates that individual paths need to be separated by one or more > spaces (see > http://java.sun.com/j2se/1.4/docs/guide/jar/jar.html#JAR%20Manifest for > more info), so in our case we're designating the current directory as > the first path to search, and ./lib/log4j.jar as the second. We > actually did try removing that period and space to see if it made a > difference, and, unfortunately, it doesn't. > > In regard to your observation related to log4j, you might notice in the > source code in the main method that we're being lazy and simply > initializing log4j with > > BasicConfigurator.configure(); > > rather than bothering with a configuration file. > > Todd > > > > Ylan Segal wrote: > > > 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:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
