Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 5291 invoked from network); 6 Feb 2002 17:44:54 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 6 Feb 2002 17:44:54 -0000 Received: (qmail 14468 invoked by uid 97); 6 Feb 2002 17:44:49 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 14452 invoked by uid 97); 6 Feb 2002 17:44:48 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 14441 invoked from network); 6 Feb 2002 17:44:48 -0000 Message-ID: From: David Hurcomb To: "'ant-user@jakarta.apache.org'" Subject: Line numbers in exception stack trace Date: Wed, 6 Feb 2002 17:39:59 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C1AF35.4CDA7FC0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C1AF35.4CDA7FC0 Content-Type: text/plain; charset="iso-8859-1" Hello When I build my code manually using javac and jar and run using java I get line numbers in exception stack traces, however I get an "Unknown Source" message when I repeat the build using ant. I have narrowed this down to being in the compile target command as opposed to the jar target. I'm sure there is a very simple explanation for this so I will not go into detail about my build.xml file. I would be very grateful if someone could provide an explanation as to why I may be having this problem. Thanks in advance example of a stack trace showing this problem: [java] openLogFile: File error java.io.FileNotFoundException: null/datastore/logs/datastore.log.020206 (No such file or directory) [java] java.io.FileNotFoundException: null/datastore/logs/datastore.log.020206 (No such file or directory) [java] at java.io.FileOutputStream.openAppend(Native Method) [java] at java.io.FileOutputStream.(FileOutputStream.java:100) [java] at java.io.FileWriter.(FileWriter.java:52) [java] at com.viewgate.validator.share.Logger.openLogFile(Unknown Source) [java] at com.viewgate.validator.datastore.Datastore.(Unknown Source) [java] at com.viewgate.validator.datastore.Datastore.main(Unknown Source) [java] Java Result: 1 ------_=_NextPart_001_01C1AF35.4CDA7FC0--